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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin544
RA = 331.914, Dec = 0.8907
tmin = 380332801, tmax = 380592001
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='199945', job_status='RUN', time_executed='2021-09-28 05:58:17.609318', time_epoch_executed='1632833897.61' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199945/ft1_4FGL_J2207.6+0053_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199945/ft2_4FGL_J2207.6+0053_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199945/ft1_4FGL_J2207.6+0053_daily_bin544.fits outfile=/scratch/kocevski/199945/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin544.fits ra=331.914 dec=0.8907 rad=12.0 tmin=380332801.0 tmax=380592001.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.56
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199945/ft1_filtered_4FGL_J2207.6+0053_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/199945/ft2_4FGL_J2207.6+0053_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/199945/ltcube_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.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/199945/ft2_4FGL_J2207.6+0053_daily_bin544.fits
.....................!
real 14.95
user 14.55
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199945/ft1_filtered_4FGL_J2207.6+0053_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/199945/ft2_4FGL_J2207.6+0053_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/199945/ltcube_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.fits outfile=/scratch/kocevski/199945/expmap_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.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/199945/ltcube_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.fits
.....................!
real 194.05
user 188.37
sys 5.32

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/199945/ft1_filtered_4FGL_J2207.6+0053_daily_bin544.fits scfile=/scratch/kocevski/199945/ft2_4FGL_J2207.6+0053_daily_bin544.fits outfile=/scratch/kocevski/199945/cmap_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199945/ft1_filtered_4FGL_J2207.6+0053_daily_bin544.fits scfile=/scratch/kocevski/199945/ft2_4FGL_J2207.6+0053_daily_bin544.fits outfile=/scratch/kocevski/199945/cmap_HighResolution_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.254       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1305       1.0000         .10000E-03   10000.    
     9 'norm      '    16.366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28818E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.513       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.753       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.473       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78978       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91398       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=   5975.217     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2567 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.223       -.10972E-06** at limit **
   2  Prefactor     46.238        49.836       -.22522E-05   -.14136E-03
   3  Prefactor     .10000E-03    2.2603        .61539E-06** at limit **
   4  Prefactor     22.261        32.195       -.13721E-05   -.70507E-04
   5  Prefactor     36.751        46.525        .89200E-06   -.30081E-04
   6  Prefactor     .10000E-03    272.92       -.17317E-04** at limit **
   7  Prefactor     .10000E-03    10.997        .12361E-06** at limit **
   8  norm          1.1299        2.1560        .31735E-06   -.49386E-03
   9  norm          16.365        17.646       -.42545E-05   -.16130E-04
  10  Prefactor     .10000E-03    1.7406        .24115E-07** at limit **
  11  Prefactor     .10115E-03    8.4673       -.18354E-05** at limit **
  12  Prefactor     24.083        23.014       -.48053E-06    .17376E-04
  13  Prefactor     24.986        19.417        .88791E-05    .18649E-03
  14  Prefactor     .10000E-03    18.587       -.75860E-06** at limit **
  15  Prefactor     20.512        38.179       -.55900E-06    .10351E-06
  16  Prefactor     25.754        14.227        .36017E-05    .39769E-04
  17  Prefactor     .10000E-03    12.320       -.15812E-06** at limit **
  18  Prefactor     .10000E-03    1.2650       -.11003E-06** at limit **
  19  norm          4.0634        4.3735       -.30641E-06   -.34527E-03
  20  Prefactor     .10000E-03    2.3560        .53940E-07** at limit **
  21  Prefactor     64.473        68.485       -.15143E-06    .59969E-06
  22  Normalizat    .78975        .23965       -.29334E-05    .83321E-04
  23  Prefactor     .91402        .12468        .46458E-06    .68668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.2376
  Prefactor  = 0.000100001
  Prefactor  = 22.2607
  Prefactor  = 36.751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12992
  norm       = 16.3648
  Prefactor  = 0.0001
  Prefactor  = 0.000101146
  Prefactor  = 24.0833
  Prefactor  = 24.9856
  Prefactor  = 0.000100001
  Prefactor  = 20.5117
  Prefactor  = 25.7536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06345
  Prefactor  = 0.0001
  Prefactor  = 64.473
  Normalizat = 0.78975
  Prefactor  = 0.914019
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.217     FROM HESSE     STATUS=OK           374 CALLS     2941 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.238        46.377        .58963E-04   -1.4347    
   3  Prefactor     .10000E-03    3.5447        .20069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.261        31.759        .84908E-04   -1.4764    
   5  Prefactor     36.751        46.382        .66112E-04   -1.4495    
   6  Prefactor     .10000E-03    273.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1299        2.1055        .14615E-03   -1.5495    
   9  norm          16.365        17.527        .99003E-04   -1.4899    
  10  Prefactor     .10000E-03    1.7420        .99594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10115E-03    15.041        .67759E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.083        22.998        .81624E-04   -1.4726    
  13  Prefactor     24.986        19.652        .80149E-04   -1.4708    
  14  Prefactor     .10000E-03    18.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.512        38.202        .88434E-04   -1.4802    
  16  Prefactor     25.754        14.207        .78939E-04   -1.4693    
  17  Prefactor     .10000E-03    12.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.2675        .84884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0634        4.3766        .15971E-03   -1.5305    
  20  Prefactor     .10000E-03    2.3598        .11588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     64.473        68.473        .49979E-04   -1.4100    
  22  Normalizat    .78975        .28202        .34823E-03   -1.0045    
  23  Prefactor     .91402        .14870        .18120E-03   -.95653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49108e-09
Minuit parameter uncertainties:
  1  8.00508e-06
  2  46.4131
  3  0.000120128
  4  31.7828
  5  46.4275
  6  0.000237577
  7  2.05919e-05
  8  2.10565
  9  17.5326
  10  2.56643e-06
  11  0.00830422
  12  23.0065
  13  19.6568
  14  0.000311584
  15  38.2477
  16  14.2093
  17  1.33484e-05
  18  9.85773e-06
  19  4.37697
  20  5.58571e-07
  21  68.5568
  22  0.282543
  23  0.148761
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.116e-04  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.140e-01  1.488e-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.898e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/199945/likelihoodResults_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.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): 102
logL (Free Index) = 5975.2174587
delta logL = -0.000254623912952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5975.21720407
delta logL = 8.69022187544e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4970       1.0000          .0000       10.000    
     3 'Normalizat'    .78973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91404       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=   5975.217     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1802.7        .90712E-02** at limit **
   2  Index         2.5100        8.6052        .50000       -.62449E-05
   3  Normalizat    .78975        .64595E-01    .78662E-01    .12903E-04
   4  Prefactor     .91402        .36069E-01    .45184E-01   -.44628E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50998
  Normalizat = 0.789749
  Prefactor  = 0.91402
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.217     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6725.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5100        5.4088        .50000       -.52130    
   3  Normalizat    .78975        .13460        .34823E-03   -1.0045    
   4  Prefactor     .91402        .75475E-01    .18119E-03   -.95653    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64825e-08
Minuit parameter uncertainties:
  1  0.0014488
  2  62.7133
  3  0.134652
  4  0.0754833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199945': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5975.21720404
delta logL = 3.67808752344e-08

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.449e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.510e+00  6.271e+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:  9.140e-01  7.548e-02  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.897e-01  1.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/199945/cmap_HighResolution_380332801_380592001_4FGL_J2207.6+0053_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 06:09:12.489217', job_id='199945', GAL2='0.91', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632834552.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='544' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 199945: <4FGL_J2207.6+0053_daily_bin544> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin544 331.914 0.8907 380332801 380592001 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 :                                   652.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

