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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin607
RA = 331.914, Dec = 0.8907
tmin = 396662401, tmax = 396921601
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='200048', job_status='RUN', time_executed='2021-09-28 05:57:57.339729', time_epoch_executed='1632833877.34' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200048

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200048/ft1_4FGL_J2207.6+0053_daily_bin607.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200048/ft2_4FGL_J2207.6+0053_daily_bin607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200048/ft1_4FGL_J2207.6+0053_daily_bin607.fits outfile=/scratch/kocevski/200048/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin607.fits ra=331.914 dec=0.8907 rad=12.0 tmin=396662401.0 tmax=396921601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.37
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200048/ft2_4FGL_J2207.6+0053_daily_bin607.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/200048/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin607.fits evtable="EVENTS" outfile="/scratch/kocevski/200048/ft1_filtered_4FGL_J2207.6+0053_daily_bin607.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200048/ft1_filtered_4FGL_J2207.6+0053_daily_bin607.fits evtable="EVENTS" scfile=/scratch/kocevski/200048/ft2_4FGL_J2207.6+0053_daily_bin607.fits sctable="SC_DATA" expcube=/scratch/kocevski/200048/ltcube_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.fits outfile=/scratch/kocevski/200048/expmap_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.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/200048/ltcube_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.fits
.....................!
real 190.07
user 185.08
sys 4.64

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/200048/ft1_filtered_4FGL_J2207.6+0053_daily_bin607.fits scfile=/scratch/kocevski/200048/ft2_4FGL_J2207.6+0053_daily_bin607.fits outfile=/scratch/kocevski/200048/cmap_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200048/ft1_filtered_4FGL_J2207.6+0053_daily_bin607.fits scfile=/scratch/kocevski/200048/ft2_4FGL_J2207.6+0053_daily_bin607.fits outfile=/scratch/kocevski/200048/cmap_HighResolution_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7674       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.023       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 '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0795       1.0000         .10000E-03   10000.    
     9 'norm      '    .17687E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1748       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7725       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7312       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0779       1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.552       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74539       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93141       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=   7114.611     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2620 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7648        46.190        .81981E-06    .10601E-04
   2  Prefactor     .10000E-03    30.216        .34219E-05** at limit **
   3  Prefactor     1.2844        1.3490       -.91907E-07   -.54620E-03
   4  Prefactor     24.030        32.307       -.30613E-06   -.62850E-04
   5  Prefactor     .10000E-03    20.470        .19875E-05** at limit **
   6  Prefactor     .10000E-03    23.653       -.41127E-05** at limit **
   7  Prefactor     .10000E-03    54.153       -.19440E-05** at limit **
   8  norm          1.0774        2.0114        .22379E-06    .56882E-03
   9  norm          .10149E-03    16.009       -.56716E-05** at limit **
  10  Prefactor     7.1716        7.8849        .29496E-06    .27344E-03
  11  Prefactor     11.040        9.7650       -.13487E-06   -.13031E-04
  12  Prefactor     .10000E-03    10.584        .50419E-07** at limit **
  13  Prefactor     2.7725        7.8822       -.52664E-06    .83380E-05
  14  Prefactor     1.7314        9.1217        .11516E-04    .14526E-03
  15  Prefactor     .10000E-03    12.302       -.50875E-07** at limit **
  16  Prefactor     .10000E-03    2.6203        .14960E-07** at limit **
  17  Prefactor     .10000E-03    5.0611        .68108E-08** at limit **
  18  Prefactor     .10000E-03    1.4105       -.94473E-07** at limit **
  19  norm          .10000E-03    1.1578       -.85041E-07** at limit **
  20  Prefactor     3.0777        3.9097        .24397E-07    .30273E-05
  21  Prefactor     83.544        64.479        .10905E-05    .10065E-04
  22  Normalizat    .74496        .18680       -.12285E-05    .27824E-05
  23  Prefactor     .93162        .10549       -.13392E-06   -.41046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.76481
  Prefactor  = 0.0001
  Prefactor  = 1.28436
  Prefactor  = 24.0304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0774
  norm       = 0.000101486
  Prefactor  = 7.17165
  Prefactor  = 11.0395
  Prefactor  = 0.0001
  Prefactor  = 2.77252
  Prefactor  = 1.73139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07768
  Prefactor  = 83.5438
  Normalizat = 0.744959
  Prefactor  = 0.93162
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.611     FROM HESSE     STATUS=OK           378 CALLS     2998 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7648        46.169        .18427E-03   -1.5271    
   2  Prefactor     .10000E-03    30.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2844        1.3510        .96025E-04   -1.5481    
   4  Prefactor     24.030        32.233        .81726E-04   -1.4727    
   5  Prefactor     .10000E-03    20.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0774        1.9574        .15070E-03   -1.5500    
   9  norm          .10149E-03    17.485        .85985E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1716        7.8772        .14975E-03   -1.5172    
  11  Prefactor     11.040        9.7629        .12058E-03   -1.5043    
  12  Prefactor     .10000E-03    10.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7725        7.8553        .24441E-03   -1.5375    
  14  Prefactor     1.7314        9.2252        .15953E-02   -1.5445    
  15  Prefactor     .10000E-03    12.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6259        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3374        .19400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1735        .88578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0777        3.9052        .18351E-03   -1.5357    
  21  Prefactor     83.544        64.429        .43945E-04   -1.3877    
  22  Normalizat    .74496        .22090        .32523E-03   -1.0214    
  23  Prefactor     .93162        .12628        .16908E-03   -.95045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67729e-10
Minuit parameter uncertainties:
  1  29.6936
  2  6.89752e-06
  3  1.35104
  4  32.2561
  5  7.8593e-06
  6  2.80716e-06
  7  7.35431e-05
  8  1.9575
  9  0.0101986
  10  7.87838
  11  9.76435
  12  1.23306e-05
  13  7.8582
  14  7.99481
  15  1.23534e-05
  16  1.18378e-06
  17  2.08573e-06
  18  2.29739e-06
  19  4.81878e-06
  20  3.90552
  21  64.4825
  22  0.221167
  23  0.126316
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.731e+00  7.995e+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

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.316e-01  1.263e-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:  7.450e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/200048/likelihoodResults_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.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) = 7114.60517073
delta logL = 0.00554651179027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.60438461
delta logL = 0.00633262995052

Fit tolerance = 1e-08

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

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

 FCN=   7114.604     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      267 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4540        12.515        .17777E-02    .80483E-03
   2  Index         2.7620        2.7448        .65971E-02    .19082E-04
   3  Normalizat    .74316        .21693        .32560E-03   -.49582E-05
   4  Prefactor     .93216        .12540        .16904E-03   -.10142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45396
  Index      = 2.76201
  Normalizat = 0.743161
  Prefactor  = 0.932161
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.604     FROM HESSE     STATUS=OK            27 CALLS      294 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4540        9.4658        .35553E-03   -1.5467    
   2  Index         2.7620        2.4322        .13194E-02   -.46408    
   3  Normalizat    .74316        .21712        .13024E-04   -1.0221    
   4  Prefactor     .93216        .12548        .33808E-04   -.95026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84892e-13
Minuit parameter uncertainties:
  1  7.42113
  2  2.57165
  3  0.21737
  4  0.125522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200048': 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) = 7114.6043703
delta logL = 0.00634694404289

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.454e+00  7.421e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.762e+00  2.572e+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.322e-01  1.255e-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:  7.432e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/200048/cmap_HighResolution_396662401_396921601_4FGL_J2207.6+0053_daily_bin607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-28 06:09:47.083764', job_id='200048', GAL2='0.93', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632834587.08', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.35e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='607' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 200048: <4FGL_J2207.6+0053_daily_bin607> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin607 331.914 0.8907 396662401 396921601 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 :                             306.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

