/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 98 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin29
RA = 331.914, Dec = 0.8907
tmin = 246844801, tmax = 247104001
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='196937', job_status='RUN', time_executed='2021-09-28 05:47:19.489934', time_epoch_executed='1632833239.49' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196937/ft1_4FGL_J2207.6+0053_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196937/ft2_4FGL_J2207.6+0053_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196937/ft1_4FGL_J2207.6+0053_daily_bin29.fits outfile=/scratch/kocevski/196937/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin29.fits ra=331.914 dec=0.8907 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.43
user 1.24
sys 0.16

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196937/ft1_filtered_4FGL_J2207.6+0053_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/196937/ft2_4FGL_J2207.6+0053_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/196937/ltcube_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.fits outfile=/scratch/kocevski/196937/expmap_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.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/196937/ltcube_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.fits
.....................!
real 191.17
user 185.93
sys 4.84

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/196937/ft1_filtered_4FGL_J2207.6+0053_daily_bin29.fits scfile=/scratch/kocevski/196937/ft2_4FGL_J2207.6+0053_daily_bin29.fits outfile=/scratch/kocevski/196937/cmap_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196937/ft1_filtered_4FGL_J2207.6+0053_daily_bin29.fits scfile=/scratch/kocevski/196937/ft2_4FGL_J2207.6+0053_daily_bin29.fits outfile=/scratch/kocevski/196937/cmap_HighResolution_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.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/196937/ft1_filtered_4FGL_J2207.6+0053_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/196937/ft2_4FGL_J2207.6+0053_daily_bin29.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196937/Model_4FGL_J2207.6+0053_daily_bin29.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/196937/ft1_filtered_4FGL_J2207.6+0053_daily_bin29.fits.....................!
real 75.41
user 73.81
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.677       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12350E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21882E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7077       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21496E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37488E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.535       1.0000         .10000E-03   10000.    
     9 'norm      '    15.942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40282E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21008E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.616       1.0000         .10000E-03   10000.    
    15 'Prefactor '    147.33       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8503       1.0000         .10000E-03   10000.    
    19 'norm      '    21.798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.734       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58609       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92947       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=   7825.167     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     3209 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.692        29.761        .19411E-06   -.49025E-06
   2  Prefactor     .10000E-03    34.665       -.65332E-06** at limit **
   3  Prefactor     .85902        1.8054        .26688E-05    .62784E-04
   4  Prefactor     .10000E-03    19.039       -.44793E-06** at limit **
   5  Prefactor     2.7565        99.185       -.12732E-04   -.21600E-04
   6  Prefactor     .10000E-03    43.531        .20274E-06** at limit **
   7  Prefactor     .10000E-03    26.823        .67395E-06** at limit **
   8  norm          15.537        3.4765        .87698E-07   -.96100E-04
   9  norm          15.926        17.094        .15316E-06   -.15630E-04
  10  Prefactor     .84824        9.4007        .32367E-05    .25866E-04
  11  Prefactor     .10000E-03    21.013        .21576E-05** at limit **
  12  Prefactor     .10000E-03    17.515       -.18502E-06** at limit **
  13  Prefactor     .10001E-03    9.0886       -.39859E-06** at limit **
  14  Prefactor     19.629        19.075       -.52864E-06   -.25396E-04
  15  Prefactor     147.31        39.397        .24089E-06   -.42543E-04
  16  Prefactor     11.043        10.068        .17809E-06   -.14918E-04
  17  Prefactor     9.2297        14.850        .25648E-06    .20860E-06
  18  Prefactor     7.8374        4.7271        .82719E-07    .25405E-05
  19  norm          21.780        5.5226        .13987E-06   -.39886E-04
  20  Prefactor     .10000E-03    2.7226        .18445E-08** at limit **
  21  Prefactor     76.955        75.034       -.83547E-06   -.55272E-04
  22  Normalizat    .58598        .21494       -.13260E-05   -.13565E-03
  23  Prefactor     .92958        .11409       -.74750E-06   -.12067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6916
  Prefactor  = 0.000100002
  Prefactor  = 0.859018
  Prefactor  = 0.0001
  Prefactor  = 2.75652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.537
  norm       = 15.9261
  Prefactor  = 0.848241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 19.6292
  Prefactor  = 147.309
  Prefactor  = 11.0434
  Prefactor  = 9.22973
  Prefactor  = 7.8374
  norm       = 21.7799
  Prefactor  = 0.0001
  Prefactor  = 76.9553
  Normalizat = 0.585979
  Prefactor  = 0.929576
 **********
 **   18 **HESSE 
 **********

 FCN=   7825.167     FROM HESSE     STATUS=OK           376 CALLS     3585 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.692        29.749        .69051E-04   -1.4546    
   2  Prefactor     .10000E-03    35.055        .20617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .85902        1.8077        .16282E-03   -1.5523    
   4  Prefactor     .10000E-03    19.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7565        100.99        .24754E-03   -1.5376    
   6  Prefactor     .10000E-03    43.563        .20163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.915        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.537        3.4736        .36526E-03   -1.4919    
   9  norm          15.926        17.084        .10031E-03   -1.4910    
  10  Prefactor     .84824        9.4708        .25326E-02   -1.5524    
  11  Prefactor     .10000E-03    21.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.812        .21260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    42.533        .48522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.629        18.410        .90432E-04   -1.4822    
  15  Prefactor     147.31        39.346        .16600E-03   -1.3275    
  16  Prefactor     11.043        10.040        .12055E-03   -1.5043    
  17  Prefactor     9.2297        14.840        .13194E-03   -1.5100    
  18  Prefactor     7.8374        4.7154        .13506E-03   -1.5148    
  19  norm          21.780        5.5225        .85790E-04   -1.4774    
  20  Prefactor     .10000E-03    2.7364        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     76.955        74.868        .22920E-03   -1.3951    
  22  Normalizat    .58598        .24418        .39490E-03   -1.0858    
  23  Prefactor     .92958        .13171        .18103E-03   -.95115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93553e-10
Minuit parameter uncertainties:
  1  29.7618
  2  0.000521264
  3  1.80778
  4  0.000106749
  5  33.4301
  6  2.7923e-05
  7  8.17673e-06
  8  3.47362
  9  17.0897
  10  5.66949
  11  3.98091e-05
  12  5.69529e-05
  13  0.00140871
  14  18.4154
  15  39.3527
  16  10.0419
  17  14.8459
  18  4.71566
  19  5.52261
  20  1.81533e-06
  21  74.9599
  22  0.24463
  23  0.131755
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.963e+01  1.842e+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:  9.296e-01  1.318e-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:  5.860e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/196937/likelihoodResults_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.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) = 7823.37061423
delta logL = 1.79634532899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7823.30717394
delta logL = 1.85978562515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6046       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2910       1.0000          .0000       10.000    
     3 'Normalizat'    .46273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97792       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=   7823.307     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      269 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5966        10.924        .83641E-02   -.92247E-03
   2  Index         4.2936        2.1488        .91914E-01    .18625E-04
   3  Normalizat    .46237        .61359E-01    .99637E-01   -.34030E-04
   4  Prefactor     .97823        .34729E-01    .45991E-01   -.99254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59658
  Index      = 4.2936
  Normalizat = 0.462366
  Prefactor  = 0.978228
 **********
 **   18 **HESSE 
 **********

 FCN=   7823.307     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      300 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5966        19.224        .53584E-04   -1.5455    
   2  Index         4.2936        3.0952        .36364E-02   -.14175    
   3  Normalizat    .46237        .21436        .44155E-03   -1.1419    
   4  Prefactor     .97823        .12148        .17681E-03   -.93459    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.83345e-10
Minuit parameter uncertainties:
  1  11.0843
  2  3.34384
  3  0.214743
  4  0.121518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196937': 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) = 7823.30716904
delta logL = 1.85979051835

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.597e+00  1.108e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  4.294e+00  3.344e+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.782e-01  1.215e-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:  4.624e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.18
Ra Dec: 331.914 0.891
Photon Index (Free Index): 4.29 +/- 3.34
Photon Flux (Free Index): 1.28e-07 +/- 6.45e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.25e-05

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/196937/cmap_HighResolution_246844801_247104001_4FGL_J2207.6+0053_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.83e-05', photon_flux_error='4.47e-08', dlogl='1.86e+00', energy_flux='1.41e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-28 06:00:59.548993', photon_index_error2='3.34', photon_index2='4.29', ts='1.67', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.25e-05', EG='0.59', time_epoch_completed='1632834059.55', return_code='0', job_id='196937', GAL2='0.98', EG2='0.46', return_code2='102', energy_flux_error='1.32e-05', photon_flux_error2='6.45e-08', ts2='6.18', photon_index='2.48' WHERE bin_id='29' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 196937: <4FGL_J2207.6+0053_daily_bin29> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin29> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:31 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45:33 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:45:33 2021
Terminated at Tue Sep 28 06:01:00 2021
Results reported at Tue Sep 28 06:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin29 331.914 0.8907 246844801 247104001 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

