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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin416
RA = 331.914, Dec = 0.8907
tmin = 347155201, tmax = 347414401
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='198708', job_status='RUN', time_executed='2021-09-28 05:52:55.682701', time_epoch_executed='1632833575.68' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198708/ft1_4FGL_J2207.6+0053_daily_bin416.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198708/ft2_4FGL_J2207.6+0053_daily_bin416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198708/ft1_4FGL_J2207.6+0053_daily_bin416.fits outfile=/scratch/kocevski/198708/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin416.fits ra=331.914 dec=0.8907 rad=12.0 tmin=347155201.0 tmax=347414401.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.46
user 3.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198708/ft1_filtered_4FGL_J2207.6+0053_daily_bin416.fits evtable="EVENTS" scfile=/scratch/kocevski/198708/ft2_4FGL_J2207.6+0053_daily_bin416.fits sctable="SC_DATA" expcube=/scratch/kocevski/198708/ltcube_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.fits outfile=/scratch/kocevski/198708/expmap_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.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/198708/ltcube_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.fits
.....................!
real 192.04
user 186.51
sys 5.10

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/198708/ft1_filtered_4FGL_J2207.6+0053_daily_bin416.fits scfile=/scratch/kocevski/198708/ft2_4FGL_J2207.6+0053_daily_bin416.fits outfile=/scratch/kocevski/198708/cmap_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198708/ft1_filtered_4FGL_J2207.6+0053_daily_bin416.fits scfile=/scratch/kocevski/198708/ft2_4FGL_J2207.6+0053_daily_bin416.fits outfile=/scratch/kocevski/198708/cmap_HighResolution_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.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/198708/ft1_filtered_4FGL_J2207.6+0053_daily_bin416.fits evtable="EVENTS" scfile=/scratch/kocevski/198708/ft2_4FGL_J2207.6+0053_daily_bin416.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198708/Model_4FGL_J2207.6+0053_daily_bin416.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/198708/ft1_filtered_4FGL_J2207.6+0053_daily_bin416.fits.....................!
real 71.31
user 70.02
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0809       1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.086       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8825       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3313       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8784       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19738E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    137.34       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70806       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0185       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=   7271.332     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2601 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.739        .93758E-06** at limit **
   2  Prefactor     .10002E-03    79.115       -.53880E-05** at limit **
   3  Prefactor     1.5735        1.9480        .54856E-07    .23863E-04
   4  Prefactor     74.001        38.441       -.76621E-07    .11467E-03
   5  Prefactor     .10000E-03    18.671       -.96889E-07** at limit **
   6  Prefactor     8.0826        37.149        .79305E-06    .10404E-04
   7  Prefactor     78.099        56.534        .22911E-05    .14038E-03
   8  norm          .10000E-03    .93917        .10528E-06** at limit **
   9  norm          .10003E-03    48.158        .89224E-05** at limit **
  10  Prefactor     .10000E-03    11.978       -.17785E-06** at limit **
  11  Prefactor     4.8825        12.611        .67496E-05   -.44242E-03
  12  Prefactor     .10000E-03    10.386        .41552E-06** at limit **
  13  Prefactor     .10000E-03    4.5475       -.15326E-06** at limit **
  14  Prefactor     .10000E-03    5.9056       -.11991E-06** at limit **
  15  Prefactor     .10001E-03    34.828       -.28696E-05** at limit **
  16  Prefactor     8.3311        13.401        .35595E-07   -.34457E-04
  17  Prefactor     .10000E-03    8.0623       -.58999E-07** at limit **
  18  Prefactor     5.8787        5.2942        .21079E-06   -.12176E-03
  19  norm          2.4208        3.3509        .37856E-06   -.11102E-03
  20  Prefactor     .10017E-03    3.6383       -.67757E-06** at limit **
  21  Prefactor     137.34        76.656       -.31701E-06   -.51479E-04
  22  Normalizat    .70799        .22324       -.24291E-05   -.37657E-04
  23  Prefactor     1.0185        .11688        .84591E-07   -.10593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100019
  Prefactor  = 1.57345
  Prefactor  = 74.001
  Prefactor  = 0.0001
  Prefactor  = 8.08263
  Prefactor  = 78.0993
  norm       = 0.0001
  norm       = 0.000100026
  Prefactor  = 0.000100001
  Prefactor  = 4.88254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 8.33112
  Prefactor  = 0.0001
  Prefactor  = 5.87866
  norm       = 2.42075
  Prefactor  = 0.000100168
  Prefactor  = 137.342
  Normalizat = 0.707994
  Prefactor  = 1.01854
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.332     FROM HESSE     STATUS=OK           370 CALLS     2971 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    82.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5735        1.9153        .12348E-03   -1.5457    
   4  Prefactor     74.001        38.330        .46674E-04   -1.3985    
   5  Prefactor     .10000E-03    18.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0826        36.853        .14104E-03   -1.5139    
   7  Prefactor     78.099        56.267        .45445E-04   -1.3938    
   8  norm          .10000E-03    .94849        .80317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10003E-03    51.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8825        13.150        .91019E-03   -1.5266    
  12  Prefactor     .10000E-03    10.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5527        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    35.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3311        13.338        .13889E-03   -1.5131    
  17  Prefactor     .10000E-03    8.0992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8787        5.2596        .15522E-03   -1.5223    
  19  norm          2.4208        3.3353        .17447E-03   -1.5397    
  20  Prefactor     .10017E-03    3.5613        .59449E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     137.34        76.637        .17184E-03   -1.3359    
  22  Normalizat    .70799        .26005        .36558E-03   -1.0358    
  23  Prefactor     1.0185        .13784        .17496E-03   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18552e-09
Minuit parameter uncertainties:
  1  0.000201216
  2  0.00250035
  3  1.91539
  4  38.3425
  5  1.26025e-05
  6  34.5527
  7  56.3052
  8  2.53146e-06
  9  0.00233363
  10  0.000265141
  11  13.1576
  12  6.34406e-05
  13  1.38065e-05
  14  1.21226e-05
  15  0.000938847
  16  13.343
  17  6.47782e-06
  18  5.26004
  19  3.33557
  20  0.00154688
  21  76.6929
  22  0.260502
  23  0.137885
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.212e-05  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:  1.019e+00  1.379e-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.080e-01  2.605e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198708/likelihoodResults_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.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) = 7271.33276387
delta logL = -0.000805330198091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7271.33195852
delta logL = 2.18033164856e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4760       1.0000          .0000       10.000    
     3 'Normalizat'    .70799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7271.332     FROM MIGRAD    STATUS=FAILED        86 CALLS      243 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10164E-03    287.71        .18142E-02** at limit **
   2  Index         2.3274        8.8193        .50000        .81045E-05
   3  Normalizat    .70800        .36028E-01    .36558E-03   -.12688E-04
   4  Prefactor     1.0185        .20522E-01    .17496E-03   -.22973E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7271.332     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      376 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10164E-03    287.71        .43366E-03** at limit **
   2  Index         2.3274        8.8193        .10912E-03    .81045E-05
   3  Normalizat    .70800        .36028E-01    .21919E-05   -.12688E-04
   4  Prefactor     1.0185        .20522E-01    .56914E-06   -.22973E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7271.332     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      418 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1470.3        .36285E-03** at limit **
   2  Index         2.0478        5.0979        .50000       -.46452E-07
   3  Normalizat    .70800        .19132        .14623E-04    .25002E-03
   4  Prefactor     1.0185        .10887        .34992E-04    .40878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04779
  Normalizat = 0.707996
  Prefactor  = 1.01854
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.332     FROM HESSE     STATUS=OK            29 CALLS      447 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7073        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0478        5.2023        .50000       -.63161    
   3  Normalizat    .70800        .23836        .29247E-05   -1.0358    
   4  Prefactor     1.0185        .13596        .69984E-05   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33012e-10
Minuit parameter uncertainties:
  1  7.82841e-06
  2  228.618
  3  0.238709
  4  0.136008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198708': 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) = 7271.3319579
delta logL = 6.42971826892e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.828e-06  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.048e+00  2.286e+02  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:  1.019e+00  1.360e-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.080e-01  2.387e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198708/cmap_HighResolution_347155201_347414401_4FGL_J2207.6+0053_daily_bin416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 06:05:10.371625', job_id='198708', GAL2='1.02', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632834310.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='416' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 198708: <4FGL_J2207.6+0053_daily_bin416> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin416> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:54 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:50:56 2021
Terminated at Tue Sep 28 06:05:11 2021
Results reported at Tue Sep 28 06:05:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin416 331.914 0.8907 347155201 347414401 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 :                                   731.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            857 sec.

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

