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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin140
RA = 331.914, Dec = 0.8907
tmin = 275616001, tmax = 275875201
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='197098', job_status='RUN', time_executed='2021-09-28 05:49:03.562612', time_epoch_executed='1632833343.56' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197098/ft1_4FGL_J2207.6+0053_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197098/ft2_4FGL_J2207.6+0053_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197098/ft1_4FGL_J2207.6+0053_daily_bin140.fits outfile=/scratch/kocevski/197098/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin140.fits ra=331.914 dec=0.8907 rad=12.0 tmin=275616001.0 tmax=275875201.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 4.17
user 3.97
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197098/ft1_filtered_4FGL_J2207.6+0053_daily_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/197098/ft2_4FGL_J2207.6+0053_daily_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/197098/ltcube_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.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/197098/ft2_4FGL_J2207.6+0053_daily_bin140.fits
.....................!
real 11.54
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197098/ft1_filtered_4FGL_J2207.6+0053_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/197098/ft2_4FGL_J2207.6+0053_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/197098/ltcube_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.fits outfile=/scratch/kocevski/197098/expmap_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.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/197098/ltcube_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.fits
.....................!
real 189.25
user 184.84
sys 4.06

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/197098/ft1_filtered_4FGL_J2207.6+0053_daily_bin140.fits scfile=/scratch/kocevski/197098/ft2_4FGL_J2207.6+0053_daily_bin140.fits outfile=/scratch/kocevski/197098/cmap_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.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.54
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.679       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3686       1.0000         .10000E-03   10000.    
     9 'norm      '    16.073       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2795       1.0000         .10000E-03   10000.    
    19 'norm      '    .98429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61366       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90598       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=   5260.305     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2518 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.445        37.106       -.15843E-04    .64718E-05
   2  Prefactor     .10000E-03    17.435       -.56276E-07** at limit **
   3  Prefactor     5.5143        2.9886       -.29070E-07    .11318E-03
   4  Prefactor     55.031        38.196        .31158E-06    .64031E-04
   5  Prefactor     .10000E-03    56.344       -.12723E-04** at limit **
   6  Prefactor     .10000E-03    29.950        .91023E-05** at limit **
   7  Prefactor     29.677        37.344       -.11650E-05    .26033E-04
   8  norm          5.3687        2.6488       -.87183E-08   -.10198E-03
   9  norm          16.070        20.102       -.19185E-06    .86352E-05
  10  Prefactor     .10000E-03    5.3466        .15879E-06** at limit **
  11  Prefactor     .84579        9.6374       -.22055E-05   -.15803E-03
  12  Prefactor     .10000E-03    7.9190       -.43401E-05** at limit **
  13  Prefactor     .10000E-03    11.641       -.12438E-06** at limit **
  14  Prefactor     .10000E-03    11.759        .12934E-05** at limit **
  15  Prefactor     .10000E-03    25.780       -.80172E-05** at limit **
  16  Prefactor     .10000E-03    7.3913        .49090E-05** at limit **
  17  Prefactor     .10000E-03    4.5136        .15515E-07** at limit **
  18  Prefactor     6.2780        4.8086       -.52417E-06   -.27182E-03
  19  norm          .98547        3.4324       -.12740E-05   -.10399E-02
  20  Prefactor     .10000E-03    6.4951       -.12228E-05** at limit **
  21  Prefactor     .10000E-03    52.506        .10838E-04** at limit **
  22  Normalizat    .61354        .23132        .28023E-05    .12540E-03
  23  Prefactor     .90602        .12459        .38574E-06    .28270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4447
  Prefactor  = 0.0001
  Prefactor  = 5.51431
  Prefactor  = 55.0308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.6767
  norm       = 5.36871
  norm       = 16.0705
  Prefactor  = 0.0001
  Prefactor  = 0.845789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.27802
  norm       = 0.985471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.613539
  Prefactor  = 0.906016
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.305     FROM HESSE     STATUS=OK           366 CALLS     2884 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.445        36.930        .58202E-04   -1.4329    
   2  Prefactor     .10000E-03    17.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5143        2.9843        .86501E-04   -1.5238    
   4  Prefactor     55.031        38.188        .54072E-04   -1.4223    
   5  Prefactor     .10000E-03    56.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.677        37.304        .73544E-04   -1.4618    
   8  norm          5.3687        2.6453        .78604E-04   -1.5245    
   9  norm          16.070        20.074        .99902E-04   -1.4906    
  10  Prefactor     .10000E-03    5.3955        .16366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .84579        26.350        .42490E-02   -1.5524    
  12  Prefactor     .10000E-03    7.9220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5163        .15049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2780        4.7860        .12975E-03   -1.5207    
  19  norm          .98547        3.4142        .23845E-03   -1.5509    
  20  Prefactor     .10000E-03    6.5972        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    52.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61354        .26867        .35918E-03   -1.0741    
  23  Prefactor     .90602        .14709        .16907E-03   -.95931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53163e-09
Minuit parameter uncertainties:
  1  36.9479
  2  2.18032e-06
  3  2.98436
  4  38.2049
  5  5.27572e-05
  6  1.45193e-06
  7  37.3336
  8  2.64538
  9  20.0829
  10  6.3698e-06
  11  9.44573
  12  3.46498e-06
  13  9.60974e-06
  14  1.04218e-05
  15  2.24949e-05
  16  1.2048e-05
  17  1.86846e-06
  18  4.78632
  19  3.41483
  20  3.72937e-06
  21  1.60633e-05
  22  0.269248
  23  0.14715
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.042e-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:  9.060e-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:  6.135e-01  2.692e-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: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197098/likelihoodResults_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.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) = 5260.30518818
delta logL = -0.000403614118113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5260.30478539
delta logL = -8.32143086882e-07

Fit tolerance = 1e-08

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

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

 FCN=   5260.305     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10228E-03    5.7229        .18142E-01** at limit **
   2  Index         2.3799        6.0203        .50000        .11922E-04
   3  Normalizat    .61354        .36291E-02    .35918E-03    .14750E-04
   4  Prefactor     .90602        .20649E-02    .16907E-03    .28202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102284
  Index      = 2.37986
  Normalizat = 0.613539
  Prefactor  = 0.906015
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.305     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10228E-03    106.47        .25127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3799        7.2933        .50000       -.55157    
   3  Normalizat    .61354        .15681E-01    .14367E-04   -1.0741    
   4  Prefactor     .90602        .89222E-02    .33814E-04   -.95931    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.79466e-09
Minuit parameter uncertainties:
  1  0.0312429
  2  450.798
  3  0.0156813
  4  0.00892224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197098': 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) = 5260.30478433
delta logL = 2.33914761338e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.023e-04  3.124e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.380e+00  4.508e+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:  9.060e-01  8.922e-03  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:  6.135e-01  1.568e-02  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/197098/cmap_HighResolution_275616001_275875201_4FGL_J2207.6+0053_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.94e-03', job_status='DONE', photon_flux_upper_limit='8.94e-08', time_completed='2021-09-28 05:58:53.744467', job_id='197098', GAL2='0.91', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632833933.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='140' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:58:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 197098: <4FGL_J2207.6+0053_daily_bin140> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin140> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:42 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45:43 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:43 2021
Terminated at Tue Sep 28 05:58:54 2021
Results reported at Tue Sep 28 05:58:54 2021

Your job looked like:

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

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

