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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin971
RA = 331.914, Dec = 0.8907
tmin = 491011201, tmax = 491270401
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='202178', job_status='RUN', time_executed='2021-09-28 06:00:39.585402', time_epoch_executed='1632834039.59' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202178

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202178/ft1_4FGL_J2207.6+0053_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202178/ft1_4FGL_J2207.6+0053_daily_bin971.fits outfile=/scratch/kocevski/202178/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin971.fits ra=331.914 dec=0.8907 rad=12.0 tmin=491011201.0 tmax=491270401.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.60
user 3.30
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202178/ft1_filtered_4FGL_J2207.6+0053_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/202178/ltcube_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.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/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits
.....................!
real 12.11
user 11.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202178/ft1_filtered_4FGL_J2207.6+0053_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/202178/ltcube_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.fits outfile=/scratch/kocevski/202178/expmap_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.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/202178/ltcube_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.fits
.....................!
real 191.36
user 185.35
sys 5.37

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/202178/ft1_filtered_4FGL_J2207.6+0053_daily_bin971.fits scfile=/scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits outfile=/scratch/kocevski/202178/cmap_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202178/ft1_filtered_4FGL_J2207.6+0053_daily_bin971.fits scfile=/scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits outfile=/scratch/kocevski/202178/cmap_HighResolution_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/202178/ft1_filtered_4FGL_J2207.6+0053_daily_bin971.fits', '/scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits', expMap='/scratch/kocevski/202178/expmap_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.fits', expCube='/scratch/kocevski/202178/ltcube_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/202178/Model_4FGL_J2207.6+0053_daily_bin971.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/202178/ft1_filtered_4FGL_J2207.6+0053_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/202178/ft2_4FGL_J2207.6+0053_daily_bin971.fits
Exposure map: /scratch/kocevski/202178/expmap_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.fits
Exposure cube: /scratch/kocevski/202178/ltcube_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/202178/Model_4FGL_J2207.6+0053_daily_bin971.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) = 5664.86734877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.642       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.597       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.139       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13995       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.634       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.199       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.3826       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    47.392       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5664.858     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     2226 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.646        1.9853       -.81959E-06    .50937E-03
   2  Prefactor     12.564        2.9004        .75093E-06   -.10943E-02
   3  Prefactor     .68392        2.6592       -.11322E-05    .12189E-04
   4  Prefactor     13.840        8.8353        .56056E-05   -.37966E-02
   5  Prefactor     42.138        1.2772       -.32469E-06    .26683E-03
   6  Prefactor     45.230        1.0401       -.48229E-07    .31144E-03
   7  Prefactor     .10003E-03    583.62       -.51789E-04** at limit **
   8  norm          .10000E-03    3.9881       -.37505E-07** at limit **
   9  norm          16.625        17.305        .70972E-05    .94211E-03
  10  Prefactor     4.6356        6.4602       -.16620E-06    .28798E-04
  11  Prefactor     .10000E-03    12.260        .19847E-05** at limit **
  12  Prefactor     .10000E-03    8.1077       -.26027E-05** at limit **
  13  Prefactor     38.309        1.7478        .51313E-06    .53601E-03
  14  Prefactor     .10000E-03    5.4303        .54713E-06** at limit **
  15  Prefactor     53.033        7.4914        .24220E-05   -.57113E-02
  16  Prefactor     18.201        11.455        .61090E-05    .88113E-02
  17  Prefactor     3.8040        14.465        .71702E-05   -.11133E-02
  18  Prefactor     .10000E-03    1.8302        .22972E-06** at limit **
  19  norm          8.3845        4.8368       -.35021E-06   -.20317E-03
  20  Prefactor     1.9108        4.7143       -.12845E-04   -.85800E-03
  21  Prefactor     47.342        7.5744       -.32610E-05    .84171E-02
  22  Normalizat    1.0242        .28493       -.97013E-06    .98989E-04
  23  Prefactor     .78439        .15146       -.95620E-06    .21755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6463
  Prefactor  = 12.5643
  Prefactor  = 0.683925
  Prefactor  = 13.84
  Prefactor  = 42.1383
  Prefactor  = 45.2296
  Prefactor  = 0.000100027
  norm       = 0.0001
  norm       = 16.6254
  Prefactor  = 4.63563
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 38.3091
  Prefactor  = 0.0001
  Prefactor  = 53.0331
  Prefactor  = 18.2009
  Prefactor  = 3.80403
  Prefactor  = 0.0001
  norm       = 8.38451
  Prefactor  = 1.91079
  Prefactor  = 47.3424
  Normalizat = 1.02424
  Prefactor  = 0.784393
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.858     FROM HESSE     STATUS=OK           436 CALLS     2662 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.646        25.268        .19403E-02   -1.4675    
   2  Prefactor     12.564        44.039        .28216E-02   -1.4999    
   3  Prefactor     .68392        4.5560        .11970E-01   -1.5543    
   4  Prefactor     13.840        33.278        .26884E-02   -1.4964    
   5  Prefactor     42.138        50.097        .15439E-02   -1.4409    
   6  Prefactor     45.230        51.139        .14904E-02   -1.4362    
   7  Prefactor     .10003E-03    61.127        .13812       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7493        .29968E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.625        22.281        .24551E-02   -1.4892    
  10  Prefactor     4.6356        6.7249        .46711E-02   -1.5277    
  11  Prefactor     .10000E-03    12.173        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.309        19.228        .16189E-02   -1.4469    
  14  Prefactor     .10000E-03    5.4271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.033        30.302        .13765E-02   -1.4250    
  16  Prefactor     18.201        14.034        .23471E-02   -1.4854    
  17  Prefactor     3.8040        22.850        .51817E-02   -1.5318    
  18  Prefactor     .10000E-03    1.8231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.3845        4.9937        .34616E-02   -1.5129    
  20  Prefactor     1.9108        4.7572        .75182E-02   -1.5431    
  21  Prefactor     47.342        113.82        .14561E-02   -1.4331    
  22  Normalizat    1.0242        .24410        .70303E-01   -.92223    
  23  Prefactor     .78439        .12652        .43514E-01   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21811e-06
Minuit parameter uncertainties:
  1  25.2781
  2  44.1527
  3  3.53053
  4  33.3226
  5  50.1474
  6  51.1886
  7  0.00258032
  8  5.37178e-07
  9  22.2922
  10  6.726
  11  8.05448e-05
  12  0.000147566
  13  19.2311
  14  4.59438e-06
  15  30.3108
  16  14.036
  17  18.6569
  18  4.57184e-06
  19  4.99395
  20  4.75817
  21  114.344
  22  0.244371
  23  0.126568
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.594e-06  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:  7.844e-01  1.266e-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:  1.024e+00  2.444e-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: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202178/likelihoodResults_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.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) = 5664.85872724
delta logL = -0.000874684281371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5664.85785255
delta logL = 8.6174622993e-09

Fit tolerance = 1e-08

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

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

 FCN=   5664.858     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.213        .17365E-01** at limit **
   2  Index         1.8152        8.4595        .50000        .32549E-06
   3  Normalizat    1.0242        .10658E-01    .31105E-03    .11400E-03
   4  Prefactor     .78439        .59370E-02    .19424E-03    .18749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81525
  Normalizat = 1.02424
  Prefactor  = 0.784393
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.858     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    250.55        .19802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8152        8.1037        .50000       -.69054    
   3  Normalizat    1.0242        .34906E-01    .12442E-04   -.92223    
   4  Prefactor     .78439        .19445E-01    .38848E-04   -1.0031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.54414e-09
Minuit parameter uncertainties:
  1  7.14698e-05
  2  1036.24
  3  0.0349071
  4  0.0194455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202178': 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) = 5664.85785024
delta logL = 2.31910235016e-06

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.147e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.815e+00  1.036e+03  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:  7.844e-01  1.945e-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:  1.024e+00  3.491e-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/202178/cmap_HighResolution_491011201_491270401_4FGL_J2207.6+0053_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-28 06:11:09.813354', job_id='202178', GAL2='0.78', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632834669.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='971' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:11:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 202178: <4FGL_J2207.6+0053_daily_bin971> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin971> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 06:00:26 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:00:28 2021
Terminated at Tue Sep 28 06:11:10 2021
Results reported at Tue Sep 28 06:11:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin971 331.914 0.8907 491011201 491270401 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 :                                   625.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            644 sec.

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

