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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin549
RA = 331.914, Dec = 0.8907
tmin = 381628801, tmax = 381888001
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='199952', job_status='RUN', time_executed='2021-09-28 05:58:06.209737', time_epoch_executed='1632833886.21' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199952

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199952/ft1_4FGL_J2207.6+0053_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199952/ft2_4FGL_J2207.6+0053_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199952/ft1_4FGL_J2207.6+0053_daily_bin549.fits outfile=/scratch/kocevski/199952/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin549.fits ra=331.914 dec=0.8907 rad=12.0 tmin=381628801.0 tmax=381888001.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.97
user 3.72
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199952/ft1_filtered_4FGL_J2207.6+0053_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/199952/ft2_4FGL_J2207.6+0053_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/199952/ltcube_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.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/199952/ft2_4FGL_J2207.6+0053_daily_bin549.fits
.....................!
real 12.20
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199952/ft1_filtered_4FGL_J2207.6+0053_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/199952/ft2_4FGL_J2207.6+0053_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/199952/ltcube_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.fits outfile=/scratch/kocevski/199952/expmap_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.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/199952/ltcube_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.fits
.....................!
real 192.40
user 186.78
sys 5.21

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/199952/ft1_filtered_4FGL_J2207.6+0053_daily_bin549.fits scfile=/scratch/kocevski/199952/ft2_4FGL_J2207.6+0053_daily_bin549.fits outfile=/scratch/kocevski/199952/cmap_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.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/199952/ft1_filtered_4FGL_J2207.6+0053_daily_bin549.fits scfile=/scratch/kocevski/199952/ft2_4FGL_J2207.6+0053_daily_bin549.fits outfile=/scratch/kocevski/199952/cmap_HighResolution_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.755       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.835       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10685E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14549E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.581       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99598       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0148       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=   6227.067     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2541 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.765        36.375        .22824E-05    .14658E-04
   2  Prefactor     .10000E-03    18.183       -.11594E-05** at limit **
   3  Prefactor     .66872        2.3319       -.13870E-05   -.13824E-02
   4  Prefactor     .10000E-03    21.896       -.30319E-05** at limit **
   5  Prefactor     .10000E-03    22.659       -.15954E-04** at limit **
   6  Prefactor     .10000E-03    21.249        .15606E-04** at limit **
   7  Prefactor     40.766        54.726       -.47843E-04    .51820E-05
   8  norm          .10000E-03    .64475        .36450E-07** at limit **
   9  norm          .10000E-03    8.5606        .39005E-06** at limit **
  10  Prefactor     15.229        10.643        .53094E-05    .74450E-04
  11  Prefactor     8.0177        11.927        .94051E-05    .18555E-03
  12  Prefactor     .10000E-03    78.518        .14998E-04** at limit **
  13  Prefactor     .63841        8.8325       -.58553E-05    .57108E-03
  14  Prefactor     10.573        14.400        .33128E-05    .22504E-03
  15  Prefactor     .10000E-03    217.27        .19487E-05** at limit **
  16  Prefactor     10.531        13.679        .32668E-06    .16189E-03
  17  Prefactor     .10000E-03    49.811       -.13971E-04** at limit **
  18  Prefactor     .10000E-03    1.3178        .11637E-07** at limit **
  19  norm          1.6408        4.0234       -.12130E-05   -.88497E-03
  20  Prefactor     .10000E-03    4.7150       -.28660E-07** at limit **
  21  Prefactor     .10000E-03    25.632        .23165E-05** at limit **
  22  Normalizat    .99617        .24263        .34982E-05    .22764E-03
  23  Prefactor     1.0149        .13167       -.24039E-06    .57071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.7653
  Prefactor  = 0.0001
  Prefactor  = 0.668718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.7658
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2294
  Prefactor  = 8.0177
  Prefactor  = 0.000100001
  Prefactor  = 0.638414
  Prefactor  = 10.5734
  Prefactor  = 0.0001
  Prefactor  = 10.531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.996168
  Prefactor  = 1.01485
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.067     FROM HESSE     STATUS=OK           368 CALLS     2909 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.765        36.373        .63572E-04   -1.4446    
   2  Prefactor     .10000E-03    18.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66872        2.3556        .21526E-03   -1.5544    
   4  Prefactor     .10000E-03    21.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.766        54.670        .62728E-04   -1.4430    
   8  norm          .10000E-03    .65463        .61859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.5946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.229        10.623        .10263E-03   -1.4927    
  11  Prefactor     8.0177        11.893        .14153E-03   -1.5142    
  12  Prefactor     .10000E-03    80.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63841        42.174        .44127E-02   -1.5548    
  14  Prefactor     10.573        14.358        .12317E-03   -1.5058    
  15  Prefactor     .10000E-03    226.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.531        13.695        .12347E-03   -1.5059    
  17  Prefactor     .10000E-03    50.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3197        .88421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6408        4.0191        .23844E-03   -1.5452    
  20  Prefactor     .10000E-03    4.7578        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99617        .28667        .34049E-03   -.93159    
  23  Prefactor     1.0149        .15691        .18931E-03   -.92236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0045e-09
Minuit parameter uncertainties:
  1  36.3934
  2  2.26892e-05
  3  2.35593
  4  0.000108002
  5  8.11106e-07
  6  5.48442e-06
  7  54.7369
  8  3.799e-06
  9  0.000111741
  10  10.6243
  11  11.8965
  12  0.000406208
  13  10.3845
  14  14.3622
  15  0.000435944
  16  13.6994
  17  7.15822e-05
  18  2.62236e-06
  19  4.01976
  20  3.07465e-06
  21  4.14039e-06
  22  0.287113
  23  0.156984
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.057e+01  1.436e+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:  1.015e+00  1.570e-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.962e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 7.60e-06 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/199952/likelihoodResults_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.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) = 6227.06596851
delta logL = 0.00104040718088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6227.06553415
delta logL = 0.00147476452821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.006       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4216       1.0000          .0000       10.000    
     3 'Normalizat'    .99808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0145       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=   6227.066     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      225 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.043        540.76        .30191E-02    .40427E-04
   2  Index         2.4264        5.9359        .23821        .62317E-04
   3  Normalizat    .99773        .98468E-01    .76886E-01   -.83569E-04
   4  Prefactor     1.0143        .43142E-01    .42742E-01   -.18791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0431
  Index      = 2.42639
  Normalizat = 0.997733
  Prefactor  = 1.01435
 **********
 **   18 **HESSE 
 **********

 FCN=   6227.066     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.043        17.591        .12077E-03   -1.5043    
   2  Index         2.4264        1.0789        .10908E-01   -.54068    
   3  Normalizat    .99773        .27826        .34025E-03   -.93106    
   4  Prefactor     1.0143        .15611        .18935E-03   -.92253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54782e-11
Minuit parameter uncertainties:
  1  17.5993
  2  1.0906
  3  0.278662
  4  0.156178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199952': 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) = 6227.06550734
delta logL = 0.00150157500138

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.104e+01  1.760e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.426e+00  1.091e+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:  1.014e+00  1.562e-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.977e-01  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.43 +/- 1.09
Photon Flux (Free Index): 2.44e-08 +/- 4.04e-08
Energy Flux (Free Index): 7.72e-06 +/- 1.09e-05

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/199952/cmap_HighResolution_381628801_381888001_4FGL_J2207.6+0053_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='7.72e-06', photon_flux_error='3.49e-08', dlogl='1.50e-03', energy_flux='7.60e-06', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-28 06:09:12.863643', photon_index_error2='1.09', photon_index2='2.43', ts='1.02', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.09e-05', EG='1.00', time_epoch_completed='1632834552.86', return_code='0', job_id='199952', GAL2='1.01', EG2='1.00', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.04e-08', ts2='1.02', photon_index='2.48' WHERE bin_id='549' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 199952: <4FGL_J2207.6+0053_daily_bin549> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin549> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:12 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:55:14 2021
Terminated at Tue Sep 28 06:09:13 2021
Results reported at Tue Sep 28 06:09:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin549 331.914 0.8907 381628801 381888001 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 :                                   665.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

