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


Performing analysis on: 4FGL_J0638.6+7320_daily_bin1224
RA = 99.6711, Dec = 73.3438
tmin = 556588801, tmax = 556848001
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='590419', job_status='RUN', time_executed='2021-08-25 13:55:43.516677', time_epoch_executed='1629924943.52' WHERE source_name='4FGL J0638.6+7320' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590419/ft1_4FGL_J0638.6+7320_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590419/ft2_4FGL_J0638.6+7320_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590419/ft1_4FGL_J0638.6+7320_daily_bin1224.fits outfile=/scratch/kocevski/590419/ft1_filteredMKT_4FGL_J0638.6+7320_daily_bin1224.fits ra=99.6711 dec=73.3438 rad=12.0 tmin=556588801.0 tmax=556848001.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.39
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590419/ft1_filtered_4FGL_J0638.6+7320_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/590419/ft2_4FGL_J0638.6+7320_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/590419/ltcube_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.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/590419/ft2_4FGL_J0638.6+7320_daily_bin1224.fits
.....................!
real 12.15
user 11.54
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590419/ft1_filtered_4FGL_J0638.6+7320_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/590419/ft2_4FGL_J0638.6+7320_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/590419/ltcube_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.fits outfile=/scratch/kocevski/590419/expmap_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.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/590419/ltcube_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.fits
.....................!
real 190.44
user 185.06
sys 4.88

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/590419/ft1_filtered_4FGL_J0638.6+7320_daily_bin1224.fits scfile=/scratch/kocevski/590419/ft2_4FGL_J0638.6+7320_daily_bin1224.fits outfile=/scratch/kocevski/590419/cmap_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.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.99
user 0.36
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590419/ft1_filtered_4FGL_J0638.6+7320_daily_bin1224.fits scfile=/scratch/kocevski/590419/ft2_4FGL_J0638.6+7320_daily_bin1224.fits outfile=/scratch/kocevski/590419/cmap_HighResolution_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.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.89
user 0.39
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.7526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20317E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.867       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5789       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.251       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89328       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4124       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=   4512.877     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2131 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5896       -.11079E-07** at limit **
   2  Prefactor     4.7537        11.989        .63422E-05   -.14480E-03
   3  Prefactor     16.010        42.635       -.57750E-07   -.72233E-05
   4  Prefactor     .10000E-03    10.960       -.20909E-07** at limit **
   5  norm          .10000E-03    128.30        .11249E-05** at limit **
   6  Prefactor     .10000E-03    34.450       -.41198E-06** at limit **
   7  Prefactor     .10000E-03    28.500       -.28861E-06** at limit **
   8  Prefactor     8.3543        32.718        .55277E-06    .66206E-06
   9  Prefactor     .10000E-03    31.329        .18496E-06** at limit **
  10  norm          .10000E-03    16.514        .15905E-06** at limit **
  11  norm          6.1092        1.7462        .27604E-07   -.31974E-04
  12  Prefactor     .10008E-03    390.02       -.62559E-05** at limit **
  13  Prefactor     .10000E-03    30.926        .34418E-06** at limit **
  14  norm          .10000E-03    31.415        .76205E-06** at limit **
  15  Prefactor     .10000E-03    80.307       -.56618E-06** at limit **
  16  Prefactor     98.909        89.050        .16820E-05    .87477E-04
  17  Prefactor     .10000E-03    5.7129        .51789E-06** at limit **
  18  norm          3.5792        4.9120        .27762E-06   -.22943E-04
  19  Prefactor     43.256        51.747        .44540E-07    .11986E-04
  20  Normalizat    .89294        .33842       -.22212E-05   -.33809E-05
  21  Prefactor     1.4124        .16345        .10553E-06   -.36222E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.75368
  Prefactor  = 16.0105
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35431
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.10919
  Prefactor  = 0.000100084
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.9087
  Prefactor  = 0.0001
  norm       = 3.57918
  Prefactor  = 43.2563
  Normalizat = 0.892936
  Prefactor  = 1.41245
 **********
 **   18 **HESSE 
 **********

 FCN=   4512.877     FROM HESSE     STATUS=OK           313 CALLS     2444 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5972        .14056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7537        12.061        .92282E-03   -1.5272    
   3  Prefactor     16.010        42.698        .10008E-03   -1.4907    
   4  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    128.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3543        32.702        .13871E-03   -1.5130    
   9  Prefactor     .10000E-03    31.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    16.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1092        1.7477        .45558E-04   -1.5214    
  12  Prefactor     .10008E-03    391.99        .20215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    31.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    80.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     98.909        89.822        .20215E-03   -1.3716    
  17  Prefactor     .10000E-03    5.7325        .15668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5792        4.8981        .15284E-03   -1.5330    
  19  Prefactor     43.256        51.706        .60958E-04   -1.4392    
  20  Normalizat    .89294        .36880        .43622E-03   -.96709    
  21  Prefactor     1.4124        .17892        .17923E-03   -.80022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78065e-10
Minuit parameter uncertainties:
  1  1.72971e-06
  2  12.0668
  3  42.7799
  4  8.0949e-07
  5  0.00127532
  6  0.000160746
  7  0.000127658
  8  32.7717
  9  0.000113302
  10  8.56933e-07
  11  1.74769
  12  0.0115507
  13  0.000104416
  14  7.88636e-05
  15  0.00025206
  16  89.9457
  17  9.13104e-06
  18  4.89868
  19  51.7601
  20  0.369852
  21  0.179004
Done.

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

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.133e-04  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.412e+00  1.790e-01  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:  8.929e-01  3.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590419/likelihoodResults_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.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) = 4512.87736609
delta logL = -0.000151706757606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4512.87721597
delta logL = -1.59355749929e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4512.877     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      299 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    211.28        .18142E-01** at limit **
   2  Index         2.5965        5.2461        .50000       -.17803E-07
   3  Normalizat    .89294        .20081E-01    .43623E-03    .30987E-04
   4  Prefactor     1.4124        .10165E-01    .17923E-03    .76244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.59648
  Normalizat = 0.892936
  Prefactor  = 1.41245
 **********
 **   18 **HESSE 
 **********

 FCN=   4512.877     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1001.2        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5965        6.2512        .50000       -.50146    
   3  Normalizat    .89294        .45187E-01    .17449E-04   -.96709    
   4  Prefactor     1.4124        .22875E-01    .71692E-05   -.80022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.06601e-11
Minuit parameter uncertainties:
  1  0.000214006
  2  1512.86
  3  0.0451892
  4  0.0228754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590419': 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) = 4512.8772141
delta logL = 2.74297235592e-07

Extracting fit parameters...

4FGL J0638.6+7320
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.140e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.596e+00  1.513e+03  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.412e+00  2.288e-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:  8.929e-01  4.519e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 99.671 73.344

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/590419/cmap_HighResolution_556588801_556848001_4FGL_J0638.6+7320_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-08-25 14:06:08.313968', job_id='590419', GAL2='1.41', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629925568.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='2.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.03' WHERE bin_id='1224' AND source_name='4FGL J0638.6+7320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 25 14:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 590419: <4FGL_J0638.6+7320_daily_bin1224> in cluster <slac> Done

Job <4FGL_J0638.6+7320_daily_bin1224> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 25 13:50:44 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 25 13:53:22 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:53:22 2021
Terminated at Wed Aug 25 14:06:08 2021
Results reported at Wed Aug 25 14:06:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0638.6+7320_daily_bin1224 99.6711 73.3438 556588801 556848001 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 :                                   624.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            924 sec.

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

