/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 160 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin245
RA = 331.914, Dec = 0.8907
tmin = 302832001, tmax = 303091201
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='198432', job_status='RUN', time_executed='2021-09-28 05:53:18.868575', time_epoch_executed='1632833598.87' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198432/ft1_4FGL_J2207.6+0053_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198432/ft1_4FGL_J2207.6+0053_daily_bin245.fits outfile=/scratch/kocevski/198432/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin245.fits ra=331.914 dec=0.8907 rad=12.0 tmin=302832001.0 tmax=303091201.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.53
user 3.29
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.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/198432/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin245.fits evtable="EVENTS" outfile="/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/198432/ltcube_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.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/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits
.....................!
real 12.03
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/198432/ltcube_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.fits outfile=/scratch/kocevski/198432/expmap_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.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/198432/ltcube_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.fits
.....................!
real 190.69
user 186.12
sys 4.26

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

Setting source of interest to:
4FGL J2207.6+0053 @ 331.914 0.8907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits scfile=/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits outfile=/scratch/kocevski/198432/cmap_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.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=331.914 yref=0.8907 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits scfile=/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits outfile=/scratch/kocevski/198432/cmap_HighResolution_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.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=331.914 yref=0.8907 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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198432/Model_4FGL_J2207.6+0053_daily_bin245.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/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits.....................!
real 55.42
user 54.12
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits', '/scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits', expMap='/scratch/kocevski/198432/expmap_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.fits', expCube='/scratch/kocevski/198432/ltcube_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198432/Model_4FGL_J2207.6+0053_daily_bin245.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.6+0053'

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.216e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/198432/ft1_filtered_4FGL_J2207.6+0053_daily_bin245.fits
Spacecraft file(s): /scratch/kocevski/198432/ft2_4FGL_J2207.6+0053_daily_bin245.fits
Exposure map: /scratch/kocevski/198432/expmap_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.fits
Exposure cube: /scratch/kocevski/198432/ltcube_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198432/Model_4FGL_J2207.6+0053_daily_bin245.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) = 5506.17843899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73913       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.305       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .77190E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.665       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    28.532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4866       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7508       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.477       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.948       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.816       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.9356       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5720       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86458       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5506.154     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2626 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90885        78.112       -.77377E-05    .14095E-03
   2  Prefactor     17.969        68.748        .36762E-05    .23833E-04
   3  Prefactor     .21601        13.229       -.33491E-05    .19690E-04
   4  Prefactor     15.267        47.033        .16085E-05    .41096E-04
   5  Prefactor     .10002E-03    347.40       -.13943E-04** at limit **
   6  Prefactor     .10000E-03    26.365        .20112E-06** at limit **
   7  Prefactor     47.646        65.575        .80939E-07    .54089E-05
   8  norm          .10000E-03    1.1770        .98769E-06** at limit **
   9  norm          28.532        22.028       -.24157E-06   -.14093E-04
  10  Prefactor     8.8201        9.6290        .11557E-06    .22551E-04
  11  Prefactor     3.4895        11.811        .14686E-05    .29859E-04
  12  Prefactor     8.7505        12.648        .24070E-06   -.22403E-04
  13  Prefactor     11.474        21.726       -.44733E-06    .13665E-04
  14  Prefactor     .10000E-03    13.882        .48834E-05** at limit **
  15  Prefactor     21.971        27.642        .30703E-06   -.16592E-04
  16  Prefactor     17.814        15.335       -.31347E-06    .20235E-03
  17  Prefactor     .10000E-03    4.5649        .61472E-07** at limit **
  18  Prefactor     .10004E-03    6.5142        .15031E-06** at limit **
  19  norm          8.9361        5.2278       -.49428E-07    .13139E-03
  20  Prefactor     3.5731        5.2088       -.10443E-06   -.49808E-04
  21  Prefactor     .10000E-03    43.201        .15412E-06** at limit **
  22  Normalizat    .86492        .24864        .13649E-05   -.42969E-04
  23  Prefactor     .90461        .13113       -.20977E-05    .73853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.908853
  Prefactor  = 17.9686
  Prefactor  = 0.216015
  Prefactor  = 15.2674
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 47.6463
  norm       = 0.0001
  norm       = 28.532
  Prefactor  = 8.82014
  Prefactor  = 3.48955
  Prefactor  = 8.7505
  Prefactor  = 11.4741
  Prefactor  = 0.000100001
  Prefactor  = 21.9714
  Prefactor  = 17.8139
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  norm       = 8.93609
  Prefactor  = 3.57308
  Prefactor  = 0.0001
  Normalizat = 0.864925
  Prefactor  = 0.904609
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.154     FROM HESSE     STATUS=OK           384 CALLS     3010 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90885        362.30        .81588E-02   -1.5517    
   2  Prefactor     17.969        74.671        .95094E-04   -1.4860    
   3  Prefactor     .21601        18.044        .17516E-02   -1.5615    
   4  Prefactor     15.267        47.297        .10238E-03   -1.4926    
   5  Prefactor     .10002E-03    355.22        .41847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.646        65.457        .58079E-04   -1.4326    
   8  norm          .10000E-03    1.2354        .15731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.532        22.023        .75003E-04   -1.4639    
  10  Prefactor     8.8201        9.6040        .13499E-03   -1.5114    
  11  Prefactor     3.4895        11.779        .21655E-03   -1.5334    
  12  Prefactor     8.7505        12.641        .13550E-03   -1.5116    
  13  Prefactor     11.474        21.690        .11825E-03   -1.5030    
  14  Prefactor     .10000E-03    14.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.971        27.724        .85497E-04   -1.4770    
  16  Prefactor     17.814        14.598        .94889E-04   -1.4864    
  17  Prefactor     .10000E-03    4.5690        .15484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    14.096        .30939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.9361        5.2075        .12424E-03   -1.5110    
  20  Prefactor     3.5731        5.2004        .19945E-03   -1.5330    
  21  Prefactor     .10000E-03    43.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86492        .28843        .32945E-03   -.97704    
  23  Prefactor     .90461        .14919        .18208E-03   -.95980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01264e-09
Minuit parameter uncertainties:
  1  36.5145
  2  73.4169
  3  3.94885
  4  47.4132
  5  0.00472963
  6  1.69939e-05
  7  65.5561
  8  1.46164e-05
  9  22.0296
  10  9.60565
  11  11.787
  12  12.6452
  13  21.705
  14  0.000275755
  15  27.7403
  16  14.601
  17  2.91022e-06
  18  0.00149627
  19  5.20781
  20  5.2011
  21  3.90393e-05
  22  0.288948
  23  0.149259
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.758e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.046e-01  1.493e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.649e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198432/likelihoodResults_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.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) = 5506.15438707
delta logL = -0.000337753323947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5506.15405025
delta logL = -9.33150658966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4582       1.0000          .0000       10.000    
     3 'Normalizat'    .86456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5506.154     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11293E-03    18.319        .18142E-01** at limit **
   2  Index         2.1307        8.8536        .50000        .89420E-05
   3  Normalizat    .86493        .55058E-02    .32945E-03    .32541E-04
   4  Prefactor     .90461        .31283E-02    .18208E-03    .55307E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5506.154     FROM SIMPLEX   STATUS=PROGRESS     100 CALLS      344 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10344E-03    18.319        .66533E-03** at limit **
   2  Index         2.1175        8.8536        .44564E-02    .89420E-05
   3  Normalizat    .86491        .55058E-02    .82275E-05    .32541E-04
   4  Prefactor     .90460        .31283E-02    .49694E-05    .55307E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5506.154     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      381 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    11.147        .31954E-01** at limit **
   2  Index         1.9524        5.2778        .50000        .34850E-05
   3  Normalizat    .86491        .41373E-02    .13178E-04   -.55806E-02
   4  Prefactor     .90460        .23507E-02    .36416E-04   -.10140E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101059
  Index      = 1.9524
  Normalizat = 0.86491
  Prefactor  = 0.904598
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.154     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      412 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10106E-03    236.71        .66307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9524        8.5990        .50000       -.65545    
   3  Normalizat    .86491        .18900E-01    .26356E-05   -.97704    
   4  Prefactor     .90460        .10736E-01    .72832E-05   -.95981    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.65888e-09
Minuit parameter uncertainties:
  1  0.031799
  2  790.501
  3  0.0188997
  4  0.0107362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198432': 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) = 5506.15404811
delta logL = 1.20793629321e-06

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.011e-04  3.180e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.952e+00  7.905e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.046e-01  1.074e-02  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.649e-01  1.890e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.914 0.891

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/198432/cmap_HighResolution_302832001_303091201_4FGL_J2207.6+0053_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-09-28 06:03:55.707003', job_id='198432', GAL2='0.90', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632834235.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='245' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 198432: <4FGL_J2207.6+0053_daily_bin245> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin245> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:29 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:50:31 2021
Terminated at Tue Sep 28 06:03:56 2021
Results reported at Tue Sep 28 06:03:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin245 331.914 0.8907 302832001 303091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.6+0053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            807 sec.

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

