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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin968
RA = 331.914, Dec = 0.8907
tmin = 490233601, tmax = 490492801
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='202172', job_status='RUN', time_executed='2021-09-28 06:04:33.466511', time_epoch_executed='1632834273.47' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202172

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202172/ft1_4FGL_J2207.6+0053_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202172/ft2_4FGL_J2207.6+0053_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202172/ft1_4FGL_J2207.6+0053_daily_bin968.fits outfile=/scratch/kocevski/202172/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin968.fits ra=331.914 dec=0.8907 rad=12.0 tmin=490233601.0 tmax=490492801.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.71
user 3.45
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202172/ft1_filtered_4FGL_J2207.6+0053_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/202172/ft2_4FGL_J2207.6+0053_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/202172/ltcube_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.fits outfile=/scratch/kocevski/202172/expmap_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.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/202172/ltcube_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.fits
.....................!
real 191.73
user 185.87
sys 5.18

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/202172/ft1_filtered_4FGL_J2207.6+0053_daily_bin968.fits scfile=/scratch/kocevski/202172/ft2_4FGL_J2207.6+0053_daily_bin968.fits outfile=/scratch/kocevski/202172/cmap_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202172/ft1_filtered_4FGL_J2207.6+0053_daily_bin968.fits scfile=/scratch/kocevski/202172/ft2_4FGL_J2207.6+0053_daily_bin968.fits outfile=/scratch/kocevski/202172/cmap_HighResolution_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21786E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.771       1.0000         .10000E-03   10000.    
     6 'Prefactor '    143.77       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6794       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3303       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.739       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.863       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.556       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7894       1.0000         .10000E-03   10000.    
    19 'norm      '    19.338       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.854       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95903       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88702       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=   6990.873     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2636 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.509       -.48512E-07** at limit **
   2  Prefactor     63.565        47.651        .15814E-04    .32890E-03
   3  Prefactor     .10043E-03    1.2800       -.22714E-05** at limit **
   4  Prefactor     84.402        48.383        .30558E-05    .38059E-03
   5  Prefactor     14.775        25.565       -.18285E-05    .15174E-03
   6  Prefactor     143.79        117.60        .85363E-05   -.63411E-04
   7  Prefactor     .10000E-03    58.634       -.75395E-06** at limit **
   8  norm          1.6791        3.5062       -.10678E-05   -.20350E-03
   9  norm          .10000E-03    16.517        .10243E-06** at limit **
  10  Prefactor     .10000E-03    3.3577       -.82377E-08** at limit **
  11  Prefactor     5.3296        13.896       -.23442E-06   -.12729E-03
  12  Prefactor     17.172        16.850        .63756E-06    .10186E-04
  13  Prefactor     34.740        21.170        .16750E-06    .49440E-04
  14  Prefactor     .10000E-03    7.8448       -.11653E-09** at limit **
  15  Prefactor     48.856        38.057       -.25908E-05    .10597E-03
  16  Prefactor     22.557        16.102        .46881E-06    .26524E-04
  17  Prefactor     28.033        24.147        .84627E-06   -.16696E-04
  18  Prefactor     1.7878        1.9298        .56778E-06   -.23822E-02
  19  norm          19.338        6.7606        .47423E-06    .92109E-04
  20  Prefactor     .10000E-03    4.8878        .10007E-07** at limit **
  21  Prefactor     41.831        91.861       -.28656E-04    .14076E-03
  22  Normalizat    .95891        .24774       -.15662E-05    .45698E-03
  23  Prefactor     .88711        .12591        .17143E-06    .60878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 63.5649
  Prefactor  = 0.000100428
  Prefactor  = 84.4023
  Prefactor  = 14.775
  Prefactor  = 143.786
  Prefactor  = 0.0001
  norm       = 1.67907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32958
  Prefactor  = 17.1722
  Prefactor  = 34.7396
  Prefactor  = 0.0001
  Prefactor  = 48.8557
  Prefactor  = 22.5573
  Prefactor  = 28.0334
  Prefactor  = 1.7878
  norm       = 19.3378
  Prefactor  = 0.0001
  Prefactor  = 41.8308
  Normalizat = 0.95891
  Prefactor  = 0.887109
 **********
 **   18 **HESSE 
 **********

 FCN=   6990.873     FROM HESSE     STATUS=OK           372 CALLS     3008 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     63.565        51.398        .50342E-04   -1.4112    
   3  Prefactor     .10043E-03    3.2737        .30854E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     84.402        48.676        .43727E-04   -1.3868    
   5  Prefactor     14.775        25.528        .10421E-03   -1.4939    
   6  Prefactor     143.79        115.15        .16801E-03   -1.3304    
   7  Prefactor     .10000E-03    58.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6791        3.4250        .17942E-03   -1.5449    
   9  norm          .10000E-03    16.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3685        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3296        13.975        .87039E-03   -1.5246    
  12  Prefactor     17.172        16.849        .96655E-04   -1.4879    
  13  Prefactor     34.740        21.145        .67991E-04   -1.4528    
  14  Prefactor     .10000E-03    7.8547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.856        38.085        .57366E-04   -1.4309    
  16  Prefactor     22.557        17.703        .84339E-04   -1.4758    
  17  Prefactor     28.033        24.146        .75664E-04   -1.4649    
  18  Prefactor     1.7878        6.5043        .15635E-02   -1.5441    
  19  norm          19.338        6.8152        .91080E-04   -1.4828    
  20  Prefactor     .10000E-03    4.9180        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.831        91.084        .61963E-04   -1.4414    
  22  Normalizat    .95891        .28832        .36080E-03   -.94420    
  23  Prefactor     .88711        .14747        .20351E-03   -.96593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59772e-08
Minuit parameter uncertainties:
  1  4.12348e-06
  2  51.4338
  3  0.00236706
  4  48.6991
  5  25.5466
  6  115.332
  7  2.51454e-05
  8  3.42535
  9  2.9796e-05
  10  2.48109e-06
  11  13.9839
  12  16.8535
  13  21.1494
  14  1.82841e-06
  15  38.1035
  16  17.707
  17  24.154
  18  6.50692
  19  6.81552
  20  1.72651e-06
  21  91.3892
  22  0.288785
  23  0.147535
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.828e-06  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  8.871e-01  1.475e-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:  9.589e-01  2.888e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202172/likelihoodResults_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.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) = 6990.87381932
delta logL = -0.000606558965956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6990.87321322
delta logL = -4.56788256997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4714       1.0000          .0000       10.000    
     3 'Normalizat'    .95875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88720       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=   6990.873     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    173.82        .18142E-02** at limit **
   2  Index         2.3675        8.7972        .50000        .10270E-04
   3  Normalizat    .95891        .27107E-01    .36080E-03    .10272E-04
   4  Prefactor     .88711        .14867E-01    .20351E-03    .14748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101871
  Index      = 2.36753
  Normalizat = 0.958906
  Prefactor  = 0.887109
 **********
 **   18 **HESSE 
 **********

 FCN=   6990.873     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    690.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3675        8.8162        .50000       -.55447    
   3  Normalizat    .95891        .59526E-01    .14432E-04   -.94420    
   4  Prefactor     .88711        .32641E-01    .81402E-05   -.96593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.68652e-08
Minuit parameter uncertainties:
  1  0.0727564
  2  1807.21
  3  0.0595304
  4  0.0326417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202172': 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) = 6990.87321255
delta logL = 2.14076862903e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.019e-04  7.276e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.368e+00  1.807e+03  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  8.871e-01  3.264e-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:  9.589e-01  5.953e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/202172/cmap_HighResolution_490233601_490492801_4FGL_J2207.6+0053_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.22e-08', time_completed='2021-09-28 06:16:35.327913', job_id='202172', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632834995.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='968' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:16:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 202172: <4FGL_J2207.6+0053_daily_bin968> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin968 331.914 0.8907 490233601 490492801 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 :                                   718.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            972 sec.

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

