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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin812
RA = 331.914, Dec = 0.8907
tmin = 449798401, tmax = 450057601
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='200371', job_status='RUN', time_executed='2021-09-28 05:57:40.556273', time_epoch_executed='1632833860.56' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='812'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200371

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200371/ft1_4FGL_J2207.6+0053_daily_bin812.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200371/ft2_4FGL_J2207.6+0053_daily_bin812.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200371/ft1_4FGL_J2207.6+0053_daily_bin812.fits outfile=/scratch/kocevski/200371/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin812.fits ra=331.914 dec=0.8907 rad=12.0 tmin=449798401.0 tmax=450057601.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.38
user 4.14
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200371/ft1_filtered_4FGL_J2207.6+0053_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/200371/ft2_4FGL_J2207.6+0053_daily_bin812.fits sctable="SC_DATA" expcube=/scratch/kocevski/200371/ltcube_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.fits outfile=/scratch/kocevski/200371/expmap_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.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/200371/ltcube_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.fits
.....................!
real 190.67
user 185.70
sys 4.61

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/200371/ft1_filtered_4FGL_J2207.6+0053_daily_bin812.fits scfile=/scratch/kocevski/200371/ft2_4FGL_J2207.6+0053_daily_bin812.fits outfile=/scratch/kocevski/200371/cmap_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200371/ft1_filtered_4FGL_J2207.6+0053_daily_bin812.fits scfile=/scratch/kocevski/200371/ft2_4FGL_J2207.6+0053_daily_bin812.fits outfile=/scratch/kocevski/200371/cmap_HighResolution_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.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/200371/ft1_filtered_4FGL_J2207.6+0053_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/200371/ft2_4FGL_J2207.6+0053_daily_bin812.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/200371/Model_4FGL_J2207.6+0053_daily_bin812.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/200371/ft1_filtered_4FGL_J2207.6+0053_daily_bin812.fits.....................!
real 67.16
user 65.82
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.263       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.449       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12838E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.712       1.0000         .10000E-03   10000.    
     8 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0756       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1731       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.693       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72070       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=   6396.253     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2519 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9363        19.008       -.62745E-06   -.53631E-03
   2  Prefactor     22.256        32.937       -.63327E-05   -.24147E-04
   3  Prefactor     .10000E-03    1.1850        .14142E-06** at limit **
   4  Prefactor     16.451        27.340        .26931E-05    .63088E-05
   5  Prefactor     .10000E-03    63.656       -.16729E-05** at limit **
   6  Prefactor     .10000E-03    26.815        .77660E-05** at limit **
   7  Prefactor     93.694        54.925       -.14045E-04   -.14002E-03
   8  norm          .10000E-03    1.2625        .99395E-07** at limit **
   9  norm          .10000E-03    7.4773        .59167E-05** at limit **
  10  Prefactor     3.0790        6.5431        .32864E-05   -.98322E-03
  11  Prefactor     1.4055        6.9402       -.13297E-05   -.12684E-02
  12  Prefactor     .10000E-03    16.157       -.72585E-06** at limit **
  13  Prefactor     4.1763        15.353        .64394E-06   -.25221E-03
  14  Prefactor     16.114        21.571       -.19554E-05   -.35424E-05
  15  Prefactor     48.482        32.298        .35478E-05    .29887E-04
  16  Prefactor     .10000E-03    9.2917        .11621E-05** at limit **
  17  Prefactor     5.6355        17.747       -.78824E-06   -.50752E-05
  18  Prefactor     .10000E-03    1.6404       -.36567E-07** at limit **
  19  norm          12.694        4.9988        .99617E-06    .11364E-03
  20  Prefactor     .10000E-03    7.5626       -.63503E-05** at limit **
  21  Prefactor     .10000E-03    25.455       -.59476E-05** at limit **
  22  Normalizat    1.2145        .22134        .21208E-05   -.10537E-03
  23  Prefactor     .72076        .11651       -.35637E-06    .93536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93633
  Prefactor  = 22.2562
  Prefactor  = 0.0001
  Prefactor  = 16.4505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.6939
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07903
  Prefactor  = 1.40547
  Prefactor  = 0.0001
  Prefactor  = 4.17626
  Prefactor  = 16.114
  Prefactor  = 48.4817
  Prefactor  = 0.0001
  Prefactor  = 5.6355
  Prefactor  = 0.0001
  norm       = 12.6942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21449
  Prefactor  = 0.720758
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.253     FROM HESSE     STATUS=OK           372 CALLS     2891 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9363        22.383        .14917E-02   -1.5430    
   2  Prefactor     22.256        32.844        .84891E-04   -1.4764    
   3  Prefactor     .10000E-03    1.2087        .16923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.451        27.374        .98753E-04   -1.4897    
   5  Prefactor     .10000E-03    64.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     93.694        55.367        .41516E-04   -1.3769    
   8  norm          .10000E-03    2.5898        .17352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.5330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0790        6.8159        .11564E-02   -1.5357    
  11  Prefactor     1.4055        19.389        .18299E-02   -1.5471    
  12  Prefactor     .10000E-03    16.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1763        15.267        .98646E-03   -1.5299    
  14  Prefactor     16.114        21.623        .99764E-04   -1.4905    
  15  Prefactor     48.482        32.319        .57594E-04   -1.4314    
  16  Prefactor     .10000E-03    9.3676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6355        17.747        .16923E-03   -1.5233    
  18  Prefactor     .10000E-03    1.6637        .10000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.694        5.0053        .10853E-03   -1.4995    
  20  Prefactor     .10000E-03    7.6476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2145        .26610        .28789E-03   -.86156    
  23  Prefactor     .72076        .14070        .19897E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63967e-08
Minuit parameter uncertainties:
  1  13.1725
  2  32.8706
  3  1.55741e-05
  4  27.3947
  5  8.73418e-05
  6  6.5496e-05
  7  55.3973
  8  1.52812e-05
  9  8.05652e-05
  10  6.81757
  11  10.4442
  12  1.22901e-05
  13  15.2815
  14  21.6333
  15  32.3312
  16  2.50113e-05
  17  17.764
  18  6.74532e-06
  19  5.0055
  20  7.81051e-06
  21  6.93315e-05
  22  0.266393
  23  0.140767
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.611e+01  2.163e+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:  7.208e-01  1.408e-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.214e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/200371/likelihoodResults_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.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) = 6396.24571003
delta logL = 0.00737079852934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6396.2387892
delta logL = 0.0142916239547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.070       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7054       1.0000          .0000       10.000    
     3 'Normalizat'    1.2025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72547       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6396.239     FROM MIGRAD    STATUS=FAILED       102 CALLS      270 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.032        40.251        .55399E-03    .32055E-04
   2  Index         2.7073        2.0715        .95040E-02    .40136E-03
   3  Normalizat    1.2026        .27702        .28911E-03   -.39323E-07
   4  Prefactor     .72539        .14669        .19840E-03   -.10314E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6396.239     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      342 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.032        40.251        .34932E-03   -1.4986    
   2  Index         2.7073        2.0715        .12250E-02   -.47634    
   3  Normalizat    1.2026        .27702        .32580E-03   -.86524    
   4  Prefactor     .72539        .14669        .20455E-03   -1.0254    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6396.239     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      371 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.032        28.193        .11080E-03   -.10261E-06
   2  Index         2.7073        1.4749        .19008E-02    .16000E-04
   3  Normalizat    1.2026        .26823        .11564E-04   -.19661E-06
   4  Prefactor     .72539        .14306        .79361E-05   -.11460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0322
  Index      = 2.70734
  Normalizat = 1.20256
  Prefactor  = 0.725389
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.239     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .44E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.032        26.952        .44319E-05   -1.4986    
   2  Index         2.7073        1.4111        .38016E-03   -.47634    
   3  Normalizat    1.2026        .26725        .23129E-05   -.86524    
   4  Prefactor     .72539        .14265        .15872E-05   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35076e-15
Minuit parameter uncertainties:
  1  26.977
  2  1.43598
  3  0.267559
  4  0.142719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200371': 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) = 6396.23878766
delta logL = 0.0142931681967

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.303e+01  2.698e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.707e+00  1.436e+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:  7.254e-01  1.427e-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.203e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
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/200371/cmap_HighResolution_449798401_450057601_4FGL_J2207.6+0053_daily_bin812.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-28 06:09:03.792887', job_id='200371', GAL2='0.73', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1632834543.79', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.43e-02', ts2='0.88', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='812' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:09:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 200371: <4FGL_J2207.6+0053_daily_bin812> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin812 331.914 0.8907 449798401 450057601 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 :                                   680.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

