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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin695
RA = 331.914, Dec = 0.8907
tmin = 419472001, tmax = 419731201
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='200196', job_status='RUN', time_executed='2021-09-28 05:58:41.630244', time_epoch_executed='1632833921.63' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200196/ft1_4FGL_J2207.6+0053_daily_bin695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200196/ft2_4FGL_J2207.6+0053_daily_bin695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200196/ft1_4FGL_J2207.6+0053_daily_bin695.fits outfile=/scratch/kocevski/200196/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin695.fits ra=331.914 dec=0.8907 rad=12.0 tmin=419472001.0 tmax=419731201.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 5.80
user 5.51
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200196/ft1_filtered_4FGL_J2207.6+0053_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/200196/ft2_4FGL_J2207.6+0053_daily_bin695.fits sctable="SC_DATA" expcube=/scratch/kocevski/200196/ltcube_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.fits outfile=/scratch/kocevski/200196/expmap_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.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/200196/ltcube_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.fits
.....................!
real 192.84
user 187.33
sys 5.04

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/200196/ft1_filtered_4FGL_J2207.6+0053_daily_bin695.fits scfile=/scratch/kocevski/200196/ft2_4FGL_J2207.6+0053_daily_bin695.fits outfile=/scratch/kocevski/200196/cmap_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200196/ft1_filtered_4FGL_J2207.6+0053_daily_bin695.fits scfile=/scratch/kocevski/200196/ft2_4FGL_J2207.6+0053_daily_bin695.fits outfile=/scratch/kocevski/200196/cmap_HighResolution_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.461       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    197.37       1.0000         .10000E-03   10000.    
     8 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .19982E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11923E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8771       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13320E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52728E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .35649       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1221       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=   3511.458     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2557 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.593        45.651       -.28885E-04    .14341E-04
   2  Prefactor     .10000E-03    22.257        .50797E-05** at limit **
   3  Prefactor     .10000E-03    1.4084        .24436E-06** at limit **
   4  Prefactor     24.428        43.347       -.11714E-04    .35518E-04
   5  Prefactor     .10000E-03    29.727       -.16276E-04** at limit **
   6  Prefactor     .10000E-03    59.084       -.52290E-04** at limit **
   7  Prefactor     197.40        111.37        .23770E-04   -.47537E-04
   8  norm          .10000E-03    2.2280       -.24116E-06** at limit **
   9  norm          .10001E-03    75.864        .38120E-04** at limit **
  10  Prefactor     .10000E-03    6.0514       -.34685E-06** at limit **
  11  Prefactor     .10001E-03    31.079       -.12372E-05** at limit **
  12  Prefactor     6.6928        81.877       -.67143E-04   -.52559E-04
  13  Prefactor     .10001E-03    18.502       -.32331E-05** at limit **
  14  Prefactor     23.298        38.444        .45616E-04    .22945E-03
  15  Prefactor     .10001E-03    102.50        .10070E-04** at limit **
  16  Prefactor     .90681        19.520       -.66299E-05    .75643E-04
  17  Prefactor     .10000E-03    15.595        .34610E-06** at limit **
  18  Prefactor     .10000E-03    2.7087        .32263E-07** at limit **
  19  norm          24.454        8.4988        .72296E-07    .44785E-03
  20  Prefactor     .10000E-03    5.2952        .16681E-06** at limit **
  21  Prefactor     .10000E-03    38.391        .27484E-04** at limit **
  22  Normalizat    .35746        .41493       -.15749E-04    .88839E-04
  23  Prefactor     1.1216        .20603        .37817E-05    .38684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 197.396
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 6.69284
  Prefactor  = 0.000100008
  Prefactor  = 23.2983
  Prefactor  = 0.000100009
  Prefactor  = 0.906815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.4535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.357461
  Prefactor  = 1.12164
 **********
 **   18 **HESSE 
 **********

 FCN=   3511.458     FROM HESSE     STATUS=OK           360 CALLS     2917 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.593        45.511        .92669E-04   -1.4845    
   2  Prefactor     .10000E-03    22.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4458        .13722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.428        42.986        .80993E-04   -1.4719    
   5  Prefactor     .10000E-03    29.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     197.40        109.84        .14379E-03   -1.2889    
   8  norm          .10000E-03    2.2608        .86330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    75.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0578        .14232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    31.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6928        80.271        .15299E-03   -1.5190    
  13  Prefactor     .10001E-03    18.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.298        38.367        .82908E-04   -1.4742    
  15  Prefactor     .10001E-03    102.95        .21131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .90681        67.119        .46474E-02   -1.5518    
  17  Prefactor     .10000E-03    15.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7181        .95136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.454        8.4482        .80998E-04   -1.4719    
  20  Prefactor     .10000E-03    5.2997        .13318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .35746        .38397        .50633E-03   -1.1956    
  23  Prefactor     1.1216        .19995        .16555E-03   -.88778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89892e-09
Minuit parameter uncertainties:
  1  45.5963
  2  4.47348e-05
  3  1.01153e-05
  4  43.0409
  5  3.73782e-05
  6  4.11041e-06
  7  109.954
  8  9.26735e-06
  9  0.00155225
  10  9.20785e-05
  11  0.00107545
  12  46.4345
  13  0.000785939
  14  38.4072
  15  0.00190478
  16  15.6204
  17  1.35122e-05
  18  1.38296e-05
  19  8.44862
  20  3.68475e-07
  21  7.66564e-06
  22  0.386843
  23  0.200086
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.330e+01  3.841e+01  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:  1.122e+00  2.001e-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:  3.575e-01  3.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 2.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200196/likelihoodResults_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.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) = 3509.50424659
delta logL = 1.95395078261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3509.29994834
delta logL = 2.15824902999

Fit tolerance = 1e-08

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

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

 FCN=   3509.300     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      405 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46300E-01    .39752        .14074E-02    .19336E-02
   2  Index         6.3712        2.4273        .61505E-01    .11687E-03
   3  Normalizat    .33515E-01    .12796        .32490E-01    .81266E-04
   4  Prefactor     1.2555        .61937E-01    .33444E-01    .11832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0463004
  Index      = 6.37115
  Normalizat = 0.0335146
  Prefactor  = 1.25549
 **********
 **   18 **HESSE 
 **********

 FCN=   3509.300     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      438 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46300E-01    .57819        .62586E-05   -1.5665    
   2  Index         6.3712        2.9854        .26229E-02    .27779    
   3  Normalizat    .33515E-01    1.2113        .12996E-02   -1.4737    
   4  Prefactor     1.2555        .18866        .15714E-03   -.84640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2078e-10
Minuit parameter uncertainties:
  1  0.326884
  2  3.22094
  3  0.3452
  4  0.188766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200196': 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) = 3509.29994122
delta logL = 2.15825614699

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  4.630e-02  3.269e-01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  6.371e+00  3.221e+00  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:  1.255e+00  1.888e-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:  3.351e-02  3.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 331.914 0.891
Photon Index (Free Index): 6.37 +/- 3.22
Photon Flux (Free Index): 3.15e-07 +/- 1.66e-07
Energy Flux (Free Index): 3.86e-05 +/- 2.11e-05

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/200196/cmap_HighResolution_419472001_419731201_4FGL_J2207.6+0053_daily_bin695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-02', comment='SUCCESS', energy_flux2='3.86e-05', dlogl='2.16e+00', photon_flux2='3.15e-07', job_status='DONE', time_completed='2021-09-28 06:07:24.212649', photon_index_error2='3.22', photon_index2='6.37', ts='0.53', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.55e-07', energy_flux_error2='2.11e-05', EG='0.36', time_epoch_completed='1632834444.21', return_code='0', job_id='200196', GAL2='1.26', EG2='0.03', return_code2='102', photon_flux_error2='1.66e-07', ts2='6.07', photon_index='2.48' WHERE bin_id='695' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 200196: <4FGL_J2207.6+0053_daily_bin695> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin695> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:29 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55: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:55:31 2021
Terminated at Tue Sep 28 06:07:27 2021
Results reported at Tue Sep 28 06:07:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin695 331.914 0.8907 419472001 419731201 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 :                                   521.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            718 sec.

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

