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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin898
RA = 331.914, Dec = 0.8907
tmin = 472089601, tmax = 472348801
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='202069', job_status='RUN', time_executed='2021-09-28 06:03:08.936115', time_epoch_executed='1632834188.94' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202069

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202069/ft1_4FGL_J2207.6+0053_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202069/ft2_4FGL_J2207.6+0053_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202069/ft1_4FGL_J2207.6+0053_daily_bin898.fits outfile=/scratch/kocevski/202069/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin898.fits ra=331.914 dec=0.8907 rad=12.0 tmin=472089601.0 tmax=472348801.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.48
user 3.30
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202069/ft1_filtered_4FGL_J2207.6+0053_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/202069/ft2_4FGL_J2207.6+0053_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/202069/ltcube_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.fits outfile=/scratch/kocevski/202069/expmap_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.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/202069/ltcube_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.fits
.....................!
real 190.78
user 185.24
sys 5.15

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/202069/ft1_filtered_4FGL_J2207.6+0053_daily_bin898.fits scfile=/scratch/kocevski/202069/ft2_4FGL_J2207.6+0053_daily_bin898.fits outfile=/scratch/kocevski/202069/cmap_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202069/ft1_filtered_4FGL_J2207.6+0053_daily_bin898.fits scfile=/scratch/kocevski/202069/ft2_4FGL_J2207.6+0053_daily_bin898.fits outfile=/scratch/kocevski/202069/cmap_HighResolution_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1598       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.613       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6436       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20883E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1504       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0178       1.0000         .10000E-03   10000.    
    19 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14409E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0138       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89998       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=   6019.109     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2178 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1318        60.695        .23269E-04   -.58448E-04
   2  Prefactor     .10000E-03    30.184        .19970E-05** at limit **
   3  Prefactor     1.1772        2.1923       -.62554E-07   -.82443E-03
   4  Prefactor     26.594        31.279       -.11937E-05   -.56080E-04
   5  Prefactor     .10000E-03    16.673        .83252E-05** at limit **
   6  Prefactor     .10000E-03    36.812       -.28767E-04** at limit **
   7  Prefactor     .10000E-03    18.228       -.12418E-04** at limit **
   8  norm          1.6429        2.0706       -.18570E-06   -.51638E-03
   9  norm          .10000E-03    5.7790        .29409E-06** at limit **
  10  Prefactor     .10000E-03    8.8044        .29686E-06** at limit **
  11  Prefactor     .10000E-03    49.621        .17811E-04** at limit **
  12  Prefactor     6.1400        20.731        .46541E-05   -.76194E-04
  13  Prefactor     .10000E-03    9.9855       -.27167E-06** at limit **
  14  Prefactor     21.118        18.888       -.20877E-05   -.15259E-03
  15  Prefactor     .10000E-03    26.836        .16209E-04** at limit **
  16  Prefactor     18.082        16.127        .39008E-06   -.34621E-04
  17  Prefactor     7.4951        17.755        .14385E-05   -.45588E-04
  18  Prefactor     3.0054        6.9338       -.14272E-05   -.50314E-03
  19  norm          .10000E-03    3.5764        .13663E-06** at limit **
  20  Prefactor     8.5115        7.3586        .14682E-06   -.49061E-04
  21  Prefactor     .10000E-03    187.51       -.23012E-04** at limit **
  22  Normalizat    1.0143        .23156        .94234E-06   -.29455E-03
  23  Prefactor     .89985        .12312       -.11537E-05   -.28632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13175
  Prefactor  = 0.0001
  Prefactor  = 1.17716
  Prefactor  = 26.5936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64295
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14001
  Prefactor  = 0.0001
  Prefactor  = 21.1182
  Prefactor  = 0.0001
  Prefactor  = 18.0816
  Prefactor  = 7.49508
  Prefactor  = 3.00542
  norm       = 0.0001
  Prefactor  = 8.51149
  Prefactor  = 0.0001
  Normalizat = 1.01426
  Prefactor  = 0.899849
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.109     FROM HESSE     STATUS=OK           366 CALLS     2544 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1318        60.002        .28029E-03   -1.5416    
   2  Prefactor     .10000E-03    30.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1772        2.1320        .14720E-03   -1.5491    
   4  Prefactor     26.594        31.114        .77654E-04   -1.4676    
   5  Prefactor     .10000E-03    16.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6429        2.0544        .12006E-03   -1.5452    
   9  norm          .10000E-03    5.7862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1400        20.674        .16188E-03   -1.5212    
  13  Prefactor     .10000E-03    9.9999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.118        18.930        .87177E-04   -1.4789    
  15  Prefactor     .10000E-03    26.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.082        16.023        .94207E-04   -1.4857    
  17  Prefactor     7.4951        17.737        .14642E-03   -1.5160    
  18  Prefactor     3.0054        6.8618        .23362E-03   -1.5361    
  19  norm          .10000E-03    3.6342        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5115        7.3577        .13740E-03   -1.5124    
  21  Prefactor     .10000E-03    188.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0143        .27567        .31979E-03   -.92554    
  23  Prefactor     .89985        .14705        .18679E-03   -.96146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15446e-10
Minuit parameter uncertainties:
  1  22.644
  2  1.44648e-05
  3  2.13215
  4  31.1332
  5  1.97024e-06
  6  2.37186e-05
  7  3.39093e-06
  8  2.05454
  9  1.02611e-06
  10  4.11869e-07
  11  0.000315926
  12  20.6983
  13  1.35199e-05
  14  18.935
  15  8.61684e-05
  16  16.0272
  17  17.7496
  18  6.86361
  19  1.68053e-05
  20  7.35845
  21  0.000456098
  22  0.276055
  23  0.147116
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.112e+01  1.894e+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.998e-01  1.471e-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.014e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.65
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 5.13e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/202069/likelihoodResults_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.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) = 6018.84396398
delta logL = 0.265275440591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6018.83997644
delta logL = 0.269262981888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.189       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7113       1.0000          .0000       10.000    
     3 'Normalizat'    1.0545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88957       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=   6018.840     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.189        21.250        .22858E-02    .45135E-03
   2  Index         1.7114        .65002        .27771       -.52224E-04
   3  Normalizat    1.0547        .22150        .71034E-01    .97863E-05
   4  Prefactor     .88945        .12192        .44872E-01    .44585E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1885
  Index      = 1.7114
  Normalizat = 1.05472
  Prefactor  = 0.889453
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.840     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.189        23.124        .91433E-04   -1.4832    
   2  Index         1.7114        .88720        .11930E-01   -.71779    
   3  Normalizat    1.0547        .26192        .31431E-03   -.91219    
   4  Prefactor     .88945        .14540        .18777E-03   -.96511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36101e-10
Minuit parameter uncertainties:
  1  23.1345
  2  0.895617
  3  0.262238
  4  0.145464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202069': 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) = 6018.83997612
delta logL = 0.269263303868

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.919e+01  2.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  1.711e+00  8.956e-01  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.895e-01  1.455e-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.055e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 331.914 0.891
Photon Index (Free Index): 1.71 +/- 0.90
Photon Flux (Free Index): 1.55e-08 +/- 2.86e-08
Energy Flux (Free Index): 2.44e-05 +/- 4.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/202069/cmap_HighResolution_472089601_472348801_4FGL_J2207.6+0053_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='5.13e-08', energy_flux2='2.44e-05', photon_flux_error='4.60e-08', dlogl='2.69e-01', energy_flux='1.52e-05', photon_flux2='1.55e-08', job_status='DONE', time_completed='2021-09-28 06:13:26.976931', photon_index_error2='0.90', photon_index2='1.71', ts='3.65', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='4.05e-05', EG='1.01', time_epoch_completed='1632834806.98', return_code='0', job_id='202069', GAL2='0.89', EG2='1.05', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.86e-08', ts2='4.13', photon_index='2.48' WHERE bin_id='898' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 202069: <4FGL_J2207.6+0053_daily_bin898> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin898> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 06:00:17 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:00:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:00:18 2021
Terminated at Tue Sep 28 06:13:29 2021
Results reported at Tue Sep 28 06:13:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin898 331.914 0.8907 472089601 472348801 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

