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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin573
RA = 99.6711, Dec = 73.3438
tmin = 387849601, tmax = 388108801
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='585390', job_status='RUN', time_executed='2021-08-25 13:36:10.052381', time_epoch_executed='1629923770.05' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/585390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/585390/ft1_4FGL_J0638.6+7320_daily_bin573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/585390/ft1_4FGL_J0638.6+7320_daily_bin573.fits outfile=/scratch/kocevski/585390/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin573.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=387849601.0 tmax=388108801.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.96
user 3.27
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.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/585390/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin573.fits evtable="EVENTS" outfile="/scratch/kocevski/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.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.90
user 0.27
sys 0.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.fits" evtable="EVENTS" scfile=/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits sctable="SC_DATA" outfile=/scratch/kocevski/585390/ltcube_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.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/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits
.....................!
real 9.64
user 8.75
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.fits evtable="EVENTS" scfile=/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits sctable="SC_DATA" expcube=/scratch/kocevski/585390/ltcube_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.fits outfile=/scratch/kocevski/585390/expmap_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.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/585390/ltcube_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.fits
.....................!
real 143.27
user 139.21
sys 3.74

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/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.fits scfile=/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits outfile=/scratch/kocevski/585390/cmap_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.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.97
user 0.29
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.fits scfile=/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits outfile=/scratch/kocevski/585390/cmap_HighResolution_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.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.97
user 0.30
sys 0.59

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.fits', '/scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits', expMap='/scratch/kocevski/585390/expmap_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.fits', expCube='/scratch/kocevski/585390/ltcube_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/585390/Model_4FGL_J0638.6+7320_daily_bin573.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/585390/ft1_filtered_4FGL_J0638.6+7320_daily_bin573.fits
Spacecraft file(s): /scratch/kocevski/585390/ft2_4FGL_J0638.6+7320_daily_bin573.fits
Exposure map: /scratch/kocevski/585390/expmap_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.fits
Exposure cube: /scratch/kocevski/585390/ltcube_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/585390/Model_4FGL_J0638.6+7320_daily_bin573.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) = 10901.2573878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.4294       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.188       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5688       1.0000         .10000E-03   10000.    
     5 'norm      '    .51460E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.985       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3700       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.758       1.0000         .10000E-03   10000.    
    14 'norm      '    23.281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0945       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .99742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.842       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78094       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1182       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=   10901.14     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2200 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1902        .15286E-07** at limit **
   2  Prefactor     7.4300        8.4274        .15146E-05   -.88631E-03
   3  Prefactor     37.191        30.955        .17510E-06    .54502E-05
   4  Prefactor     5.5694        12.246        .22922E-05   -.48499E-03
   5  norm          .10033E-03    357.65       -.48627E-04** at limit **
   6  Prefactor     .10000E-03    20.700        .88428E-07** at limit **
   7  Prefactor     33.985        27.334        .21802E-06    .60381E-05
   8  Prefactor     .10000E-03    17.026       -.11145E-06** at limit **
   9  Prefactor     6.3693        18.889        .25488E-05   -.23826E-03
  10  norm          .10000E-03    13.671        .41377E-07** at limit **
  11  norm          11.540        1.3570       -.13975E-08   -.80117E-04
  12  Prefactor     .10000E-03    180.10        .47541E-05** at limit **
  13  Prefactor     16.760        35.016       -.20316E-06   -.13476E-05
  14  norm          23.277        20.275        .11615E-05    .14083E-03
  15  Prefactor     7.0932        11.115       -.14193E-06   -.35535E-04
  16  Prefactor     .10000E-03    39.187        .82096E-08** at limit **
  17  Prefactor     .10000E-03    2.0088        .37522E-07** at limit **
  18  norm          .99469        3.1082        .10095E-05   -.65593E-03
  19  Prefactor     31.869        35.623       -.52093E-07    .14549E-03
  20  Normalizat    .78101        .17629       -.13935E-05   -.32444E-04
  21  Prefactor     1.1182        .88047E-01   -.43601E-07   -.40517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.42999
  Prefactor  = 37.1905
  Prefactor  = 5.56935
  norm       = 0.000100335
  Prefactor  = 0.0001
  Prefactor  = 33.9854
  Prefactor  = 0.0001
  Prefactor  = 6.3693
  norm       = 0.0001
  norm       = 11.5405
  Prefactor  = 0.000100004
  Prefactor  = 16.7605
  norm       = 23.2768
  Prefactor  = 7.09319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.994691
  Prefactor  = 31.8695
  Normalizat = 0.781014
  Prefactor  = 1.11819
 **********
 **   18 **HESSE 
 **********

 FCN=   10901.14     FROM HESSE     STATUS=OK           317 CALLS     2517 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1943        .15090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4300        8.8998        .73571E-03   -1.5163    
   3  Prefactor     37.191        31.034        .65721E-04   -1.4488    
   4  Prefactor     5.5694        12.776        .85122E-03   -1.5236    
   5  norm          .10033E-03    399.73        .21143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.985        27.338        .68739E-04   -1.4541    
   8  Prefactor     .10000E-03    17.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3693        19.307        .79516E-03   -1.5203    
  10  norm          .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.540        1.3581        .38646E-04   -1.5028    
  12  Prefactor     .10000E-03    181.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.760        35.192        .97839E-04   -1.4889    
  14  norm          23.277        20.314        .83018E-04   -1.4743    
  15  Prefactor     7.0932        11.111        .15061E-03   -1.5175    
  16  Prefactor     .10000E-03    39.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0212        .14446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .99469        2.9944        .23107E-03   -1.5509    
  19  Prefactor     31.869        33.784        .71008E-04   -1.4578    
  20  Normalizat    .78101        .19425        .38752E-03   -1.0078    
  21  Prefactor     1.1182        .98128E-01    .17178E-03   -.88887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40761e-09
Minuit parameter uncertainties:
  1  1.28207e-06
  2  8.90137
  3  31.047
  4  12.7821
  5  0.0232934
  6  2.22199e-05
  7  27.3481
  8  8.31224e-06
  9  19.3263
  10  2.16573e-06
  11  1.3581
  12  0.00161363
  13  35.2352
  14  20.3204
  15  11.1142
  16  8.31763e-06
  17  1.149e-06
  18  2.9949
  19  33.8045
  20  0.194421
  21  0.0981434
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  6.369e+00  1.933e+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:  1.118e+00  9.814e-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:  7.810e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 99.671 73.344
Photon Flux Upper Limit: 9.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/585390/likelihoodResults_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.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) = 10900.8553449
delta logL = 0.283441198997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10900.8312053
delta logL = 0.307580753595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9090       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0277       1.0000          .0000       10.000    
     3 'Normalizat'    .78688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1147       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=   10900.83     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      224 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9136        17.265        .27643E-05   -.86953E-03
   2  Index         2.0276        .94310        .37498E-04    .59968E-04
   3  Normalizat    .78688        .16040       -.96577E-06   -.13885E-03
   4  Prefactor     1.1147        .83880E-01    .28582E-06   -.26250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.9136
  Index      = 2.02757
  Normalizat = 0.786879
  Prefactor  = 1.11468
 **********
 **   18 **HESSE 
 **********

 FCN=   10900.83     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9136        17.102        .12730E-03   -1.5078    
   2  Index         2.0276        .90176        .14645E-01   -.63663    
   3  Normalizat    .78688        .17430        .38618E-03   -1.0056    
   4  Prefactor     1.1147        .91519E-01    .17197E-03   -.88999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91731e-09
Minuit parameter uncertainties:
  1  17.1107
  2  0.909494
  3  0.17442
  4  0.0915321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/585390': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10900.8312053
delta logL = 0.307580840255

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  9.914e+00  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.028e+00  9.095e-01  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:  1.115e+00  9.153e-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:  7.869e-01  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 99.671 73.344

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/585390/cmap_HighResolution_387849601_388108801_4FGL_J0638.6+7320_daily_bin573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.43e-08', time_completed='2021-08-25 13:49:26.401661', job_id='585390', GAL2='1.11', fit_tolerance='1e-08', EG2='0.79', EG='0.78', time_epoch_completed='1629924566.4', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.08e-01', ts2='0.74', photon_index_error='0.00', photon_index='3.03' WHERE bin_id='573' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 13:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 585390: <4FGL_J0638.6+7320_daily_bin573> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin573> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 25 13:35:43 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:35:44 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:35:44 2021
Terminated at Wed Aug 25 13:49:29 2021
Results reported at Wed Aug 25 13:49:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin573 99.6711 73.3438 387849601 388108801 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 :                                   789.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

