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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin256
RA = 331.914, Dec = 0.8907
tmin = 305683201, tmax = 305942401
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='198449', job_status='RUN', time_executed='2021-09-28 05:53:00.328672', time_epoch_executed='1632833580.33' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198449/ft1_4FGL_J2207.6+0053_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198449/ft2_4FGL_J2207.6+0053_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198449/ft1_4FGL_J2207.6+0053_daily_bin256.fits outfile=/scratch/kocevski/198449/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin256.fits ra=331.914 dec=0.8907 rad=12.0 tmin=305683201.0 tmax=305942401.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 4.96
user 4.48
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198449/ft1_filtered_4FGL_J2207.6+0053_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/198449/ft2_4FGL_J2207.6+0053_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/198449/ltcube_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.fits outfile=/scratch/kocevski/198449/expmap_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.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/198449/ltcube_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.fits
.....................!
real 190.80
user 186.01
sys 4.47

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/198449/ft1_filtered_4FGL_J2207.6+0053_daily_bin256.fits scfile=/scratch/kocevski/198449/ft2_4FGL_J2207.6+0053_daily_bin256.fits outfile=/scratch/kocevski/198449/cmap_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198449/ft1_filtered_4FGL_J2207.6+0053_daily_bin256.fits scfile=/scratch/kocevski/198449/ft2_4FGL_J2207.6+0053_daily_bin256.fits outfile=/scratch/kocevski/198449/cmap_HighResolution_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .56771       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0714       1.0000         .10000E-03   10000.    
     9 'norm      '    .57897E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6075       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13883E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7531       1.0000         .10000E-03   10000.    
    19 'norm      '    11.967       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8402       1.0000         .10000E-03   10000.    
    21 'Prefactor '    67.879       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96730       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83372       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=   6897.768     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2613 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.763        23.809        .86340E-07   -.15381E-04
   2  Prefactor     .10000E-03    57.759       -.33087E-06** at limit **
   3  Prefactor     .56776        1.7970        .31778E-06   -.33482E-03
   4  Prefactor     .10000E-03    14.387       -.32192E-07** at limit **
   5  Prefactor     .10000E-03    18.778       -.37096E-07** at limit **
   6  Prefactor     .10000E-03    60.146       -.13096E-06** at limit **
   7  Prefactor     .10000E-03    89.272        .42729E-06** at limit **
   8  norm          1.0708        1.8669        .36030E-06   -.10065E-03
   9  norm          .10003E-03    14.082        .73785E-06** at limit **
  10  Prefactor     6.6062        8.0153       -.11073E-06   -.91071E-04
  11  Prefactor     5.3796        10.328        .54554E-05   -.17623E-03
  12  Prefactor     .10000E-03    19.708        .26148E-06** at limit **
  13  Prefactor     .10000E-03    20.885       -.19331E-06** at limit **
  14  Prefactor     10.435        20.611       -.11344E-05   -.35239E-04
  15  Prefactor     .10000E-03    9.2769        .80537E-07** at limit **
  16  Prefactor     .10000E-03    2.5894       -.18925E-08** at limit **
  17  Prefactor     .10000E-03    20.403        .18969E-06** at limit **
  18  Prefactor     5.7534        3.7866        .62378E-07   -.12515E-04
  19  norm          11.969        4.9375        .12638E-06   -.20209E-04
  20  Prefactor     8.8403        6.7551        .52530E-07    .74201E-06
  21  Prefactor     67.780        90.865       -.14335E-05   -.15073E-03
  22  Normalizat    .96727        .20360       -.21486E-06   -.16528E-03
  23  Prefactor     .83372        .10803       -.85870E-06   -.13384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7634
  Prefactor  = 0.0001
  Prefactor  = 0.567765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07085
  norm       = 0.000100032
  Prefactor  = 6.60619
  Prefactor  = 5.37962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75336
  norm       = 11.9686
  Prefactor  = 8.84029
  Prefactor  = 67.7797
  Normalizat = 0.967266
  Prefactor  = 0.83372
 **********
 **   18 **HESSE 
 **********

 FCN=   6897.768     FROM HESSE     STATUS=OK           372 CALLS     2985 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.763        23.811        .10088E-03   -1.4914    
   2  Prefactor     .10000E-03    58.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56776        2.2033        .18219E-02   -1.5557    
   4  Prefactor     .10000E-03    14.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    89.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0708        1.7867        .14125E-03   -1.5501    
   9  norm          .10003E-03    84.728        .57991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6062        7.9646        .15611E-03   -1.5194    
  11  Prefactor     5.3796        10.340        .86624E-03   -1.5244    
  12  Prefactor     .10000E-03    19.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.435        20.606        .12405E-03   -1.5062    
  15  Prefactor     .10000E-03    9.2845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5931        .13050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7534        3.7832        .12466E-03   -1.5228    
  19  norm          11.969        4.9383        .10947E-03   -1.5016    
  20  Prefactor     8.8403        6.7558        .13481E-03   -1.5113    
  21  Prefactor     67.780        90.724        .24359E-03   -1.4060    
  22  Normalizat    .96727        .23917        .30761E-03   -.94135    
  23  Prefactor     .83372        .12780        .18312E-03   -.98497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86732e-08
Minuit parameter uncertainties:
  1  23.8249
  2  0.000127815
  3  2.20358
  4  1.62512e-05
  5  1.89326e-05
  6  2.44619e-05
  7  4.70762e-05
  8  1.78681
  9  0.0032812
  10  7.96586
  11  10.3434
  12  2.465e-05
  13  3.78414e-05
  14  20.6197
  15  3.75359e-06
  16  9.96254e-07
  17  1.74425e-05
  18  3.7834
  19  4.93847
  20  6.75638
  21  90.9099
  22  0.239431
  23  0.127844
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.043e+01  2.062e+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:  8.337e-01  1.278e-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:  9.673e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198449/likelihoodResults_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6896.75172778
delta logL = 1.01662048994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6896.68296523
delta logL = 1.08538304554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68838       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5200       1.0000          .0000       10.000    
     3 'Normalizat'    .88722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86294       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=   6896.683     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      281 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68893        7.1332        .11019E-01    .98709E-03
   2  Index         4.5198        2.2742        .12406        .16687E-03
   3  Normalizat    .88724        .47183E-01    .72198E-01    .23656E-04
   4  Prefactor     .86293        .26400E-01    .44531E-01    .69544E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.68893
  Index      = 4.51978
  Normalizat = 0.88724
  Prefactor  = 0.862935
 **********
 **   18 **HESSE 
 **********

 FCN=   6896.683     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      316 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68893        18.522        .50348E-03   -1.5542    
   2  Index         4.5198        4.1131        .44720E-02   -.96192E-01
   3  Normalizat    .88724        .18224        .31947E-03   -.96910    
   4  Prefactor     .86293        .10053        .18022E-03   -.97449    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.67296e-08
Minuit parameter uncertainties:
  1  7.1462
  2  4.84132
  3  0.182365
  4  0.100555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198449': 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) = 6896.68296502
delta logL = 1.08538325734

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  6.889e-01  7.146e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  4.520e+00  4.841e+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:  8.629e-01  1.006e-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.872e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 331.914 0.891
Photon Index (Free Index): 4.52 +/- 4.84
Photon Flux (Free Index): 8.83e-08 +/- 6.69e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/198449/cmap_HighResolution_305683201_305942401_4FGL_J2207.6+0053_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='1.09e+00', photon_flux2='8.83e-08', job_status='DONE', time_completed='2021-09-28 06:04:53.986925', photon_index_error2='4.84', photon_index2='4.52', ts='0.32', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.32e-05', EG='0.97', time_epoch_completed='1632834293.99', return_code='0', job_id='198449', GAL2='0.86', EG2='0.89', return_code2='102', photon_flux_error2='6.69e-08', ts2='2.78', photon_index='2.48' WHERE bin_id='256' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 198449: <4FGL_J2207.6+0053_daily_bin256> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin256> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:31 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:32 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:32 2021
Terminated at Tue Sep 28 06:04:54 2021
Results reported at Tue Sep 28 06:04:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin256 331.914 0.8907 305683201 305942401 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

