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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin219
RA = 331.914, Dec = 0.8907
tmin = 296092801, tmax = 296352001
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='198394', job_status='RUN', time_executed='2021-09-28 05:53:07.920919', time_epoch_executed='1632833587.92' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198394/ft1_4FGL_J2207.6+0053_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198394/ft1_4FGL_J2207.6+0053_daily_bin219.fits outfile=/scratch/kocevski/198394/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin219.fits ra=331.914 dec=0.8907 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.48
user 2.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.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/198394/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin219.fits evtable="EVENTS" outfile="/scratch/kocevski/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/198394/ltcube_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.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/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits
.....................!
real 12.37
user 11.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/198394/ltcube_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.fits outfile=/scratch/kocevski/198394/expmap_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.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/198394/ltcube_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.fits
.....................!
real 191.07
user 185.52
sys 5.23

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/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.fits scfile=/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits outfile=/scratch/kocevski/198394/cmap_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.fits scfile=/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits outfile=/scratch/kocevski/198394/cmap_HighResolution_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.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/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/198394/ft2_4FGL_J2207.6+0053_daily_bin219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198394/Model_4FGL_J2207.6+0053_daily_bin219.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/198394/ft1_filtered_4FGL_J2207.6+0053_daily_bin219.fits.....................!
real 75.78
user 74.38
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9040       1.0000         .10000E-03   10000.    
     8 'norm      '    .28182E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4234       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67106       1.0000         .10000E-03   10000.    
    19 'norm      '    21.557       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67610       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93323       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=   8098.222     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2554 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.821        .35603E-06** at limit **
   2  Prefactor     .10000E-03    29.291       -.64922E-06** at limit **
   3  Prefactor     2.7516        2.3436       -.18876E-07   -.99396E-04
   4  Prefactor     43.885        33.244        .11101E-05   -.25440E-04
   5  Prefactor     .10000E-03    14.843       -.12251E-05** at limit **
   6  Prefactor     .10000E-03    17.192       -.77043E-06** at limit **
   7  Prefactor     8.9184        87.523        .30099E-04   -.80577E-04
   8  norm          .46077E-02    94.175        .61512E-04    .12813E-03
   9  norm          6.8449        14.226        .16041E-06    .73844E-04
  10  Prefactor     1.5519        11.642       -.81784E-06   -.15293E-03
  11  Prefactor     5.1028        12.481        .13975E-05   -.58750E-04
  12  Prefactor     13.878        12.376        .30778E-06   -.34265E-04
  13  Prefactor     14.469        16.732       -.56624E-06    .25455E-04
  14  Prefactor     2.4233        19.037        .14125E-05    .31260E-04
  15  Prefactor     13.222        23.534        .36533E-07    .18828E-04
  16  Prefactor     3.0973        8.6531       -.28955E-06    .11923E-03
  17  Prefactor     .10000E-03    4.1834       -.24708E-06** at limit **
  18  Prefactor     .66964        3.1011       -.38950E-06    .15487E-04
  19  norm          21.557        4.8825        .18327E-06    .54579E-03
  20  Prefactor     .10000E-03    1.8230       -.14995E-06** at limit **
  21  Prefactor     .10000E-03    20.930        .10438E-05** at limit **
  22  Normalizat    .67605        .19194       -.52109E-06    .40340E-03
  23  Prefactor     .93324        .10368        .28212E-06    .27430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75158
  Prefactor  = 43.8846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9184
  norm       = 0.00460773
  norm       = 6.84491
  Prefactor  = 1.55186
  Prefactor  = 5.10278
  Prefactor  = 13.8779
  Prefactor  = 14.469
  Prefactor  = 2.42329
  Prefactor  = 13.2223
  Prefactor  = 3.0973
  Prefactor  = 0.0001
  Prefactor  = 0.669642
  norm       = 21.5574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.676049
  Prefactor  = 0.933245
 **********
 **   18 **HESSE 
 **********

 FCN=   8098.222     FROM HESSE     STATUS=OK           382 CALLS     2936 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7516        2.3242        .11326E-03   -1.5376    
   4  Prefactor     43.885        33.123        .60519E-04   -1.4382    
   5  Prefactor     .10000E-03    14.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9184        86.727        .13432E-03   -1.5111    
   8  norm          .46077E-02    1.3765        .26715E-01   -1.5695    
   9  norm          6.8449        14.166        .15332E-03   -1.5185    
  10  Prefactor     1.5519        11.779        .34208E-03   -1.5459    
  11  Prefactor     5.1028        12.410        .17798E-03   -1.5256    
  12  Prefactor     13.878        12.372        .10752E-03   -1.4963    
  13  Prefactor     14.469        16.702        .10530E-03   -1.4947    
  14  Prefactor     2.4233        19.112        .13145E-02   -1.5397    
  15  Prefactor     13.222        23.516        .11016E-03   -1.4981    
  16  Prefactor     3.0973        8.3802        .23048E-03   -1.5356    
  17  Prefactor     .10000E-03    4.1893        .17977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .66964        2.9015        .28099E-03   -1.5544    
  19  norm          21.557        4.8800        .86269E-04   -1.4779    
  20  Prefactor     .10000E-03    1.8254        .11866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67605        .22115        .34978E-03   -1.0485    
  23  Prefactor     .93324        .12100        .17275E-03   -.94989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11622e-09
Minuit parameter uncertainties:
  1  1.07146e-05
  2  0.000103465
  3  2.32424
  4  33.1368
  5  0.000114768
  6  0.000109966
  7  55.728
  8  0.157547
  9  14.173
  10  8.55295
  11  12.4166
  12  12.3745
  13  16.707
  14  13.6167
  15  23.5321
  16  8.38336
  17  5.86814e-06
  18  2.78781
  19  4.88005
  20  2.69457e-06
  21  0.000162708
  22  0.221443
  23  0.121034
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.423e+00  1.362e+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:  9.332e-01  1.210e-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:  6.760e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198394/likelihoodResults_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.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) = 8098.19449155
delta logL = 0.0272144998025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8098.1928869
delta logL = 0.0288191496047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9788       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9696       1.0000          .0000       10.000    
     3 'Normalizat'    .66988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93498       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=   8098.193     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      257 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9785        14.516        .29466E-03   -.13056E-03
   2  Index         2.9702        2.3027        .65746E-02   -.84841E-04
   3  Normalizat    .66982        .20925        .35129E-03    .34933E-03
   4  Prefactor     .93501        .11947        .17260E-03    .59562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97852
  Index      = 2.97015
  Normalizat = 0.669824
  Prefactor  = 0.935005
 **********
 **   18 **HESSE 
 **********

 FCN=   8098.193     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9785        10.873        .11787E-04   -1.5427    
   2  Index         2.9702        2.0159        .26298E-03   -.41804    
   3  Normalizat    .66982        .20945        .14051E-04   -1.0510    
   4  Prefactor     .93501        .11952        .34520E-04   -.94928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46673e-09
Minuit parameter uncertainties:
  1  9.27847
  2  2.08777
  3  0.209702
  4  0.119553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198394': 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): 0
logL (Free Index) = 8098.1928868
delta logL = 0.0288192476974

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.979e+00  9.278e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.970e+00  2.088e+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:  9.350e-01  1.196e-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:  6.698e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198394/cmap_HighResolution_296092801_296352001_4FGL_J2207.6+0053_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.65e-08', time_completed='2021-09-28 06:05:47.893805', job_id='198394', GAL2='0.94', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1632834347.89', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.88e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='219' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 198394: <4FGL_J2207.6+0053_daily_bin219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin219 331.914 0.8907 296092801 296352001 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 :                                   755.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

