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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin426
RA = 331.914, Dec = 0.8907
tmin = 349747201, tmax = 350006401
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='198725', job_status='RUN', time_executed='2021-09-28 05:51:14.259347', time_epoch_executed='1632833474.26' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198725

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198725/ft1_4FGL_J2207.6+0053_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198725/ft2_4FGL_J2207.6+0053_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198725/ft1_4FGL_J2207.6+0053_daily_bin426.fits outfile=/scratch/kocevski/198725/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin426.fits ra=331.914 dec=0.8907 rad=12.0 tmin=349747201.0 tmax=350006401.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.44
user 3.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198725/ft1_filtered_4FGL_J2207.6+0053_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/198725/ft2_4FGL_J2207.6+0053_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/198725/ltcube_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.fits outfile=/scratch/kocevski/198725/expmap_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.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/198725/ltcube_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.fits
.....................!
real 190.35
user 184.87
sys 5.12

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/198725/ft1_filtered_4FGL_J2207.6+0053_daily_bin426.fits scfile=/scratch/kocevski/198725/ft2_4FGL_J2207.6+0053_daily_bin426.fits outfile=/scratch/kocevski/198725/cmap_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198725/ft1_filtered_4FGL_J2207.6+0053_daily_bin426.fits scfile=/scratch/kocevski/198725/ft2_4FGL_J2207.6+0053_daily_bin426.fits outfile=/scratch/kocevski/198725/cmap_HighResolution_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.594       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15118E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.815       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20759E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4751       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9367       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42469       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19299       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3498       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6244.962     FROM MIGRAD    STATUS=FAILED       971 CALLS     3357 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.566        38.612        .25986E-03   -.16187E-04
   2  Prefactor     .10000E-03    23.880        .18142E-02** at limit **
   3  Prefactor     1.3669        2.2364        .14679E-03    .10789E-03
   4  Prefactor     .10000E-03    45.777        .18142E-02** at limit **
   5  Prefactor     .10000E-03    215.40        .21358E-02** at limit **
   6  Prefactor     .10000E-03    29.186        .18142E-02** at limit **
   7  Prefactor     54.751        60.310        .27089E-03    .47843E-05
   8  norm          .10000E-03    1.2096        .16756E-03** at limit **
   9  norm          .10000E-03    67.957        .36285E-03** at limit **
  10  Prefactor     5.5718        8.0391        .17021E-03   -.37805E-04
  11  Prefactor     .10000E-03    8.0499        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.6838        .18142E-02** at limit **
  13  Prefactor     25.615        17.408        .79150E-04   -.20252E-04
  14  Prefactor     .10000E-03    6.6213        .18142E-02** at limit **
  15  Prefactor     .10000E-03    6.7196        .18142E-02** at limit **
  16  Prefactor     .10000E-03    6.4171        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.6235        .16589E-02** at limit **
  18  Prefactor     5.4758        5.0718        .79745E-03    .50766E-04
  19  norm          3.9388        4.6001        .84956E-03    .10238E-03
  20  Prefactor     .42072        17.080        .35291E-02    .25518E-02
  21  Prefactor     .10007E-03    112.60        .21924    ** at limit **
  22  Normalizat    1.3496        .27036        .28295E-03   -.38090E-04
  23  Prefactor     .69573        .14212        .20450E-03   -.11569E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6244.962     FROM SIMPLEX   STATUS=PROGRESS    1307 CALLS     4664 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.566        38.612        .31725E-06   -1.4163    
   2  Prefactor     .10000E-03    23.880        .89360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3669        2.2364        .33230E-06   -1.5474    
   4  Prefactor     .10000E-03    45.777        .45725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    215.40        .15713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.186        .73119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.751        60.310        .30537E-06   -1.4227    
   8  norm          .10000E-03    1.2096        .11436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    67.957        .14825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5718        8.0391        .32725E-06   -1.5236    
  11  Prefactor     .10000E-03    8.0499        .18051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6838        .19323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.615        17.408        .31538E-06   -1.4695    
  14  Prefactor     .10000E-03    6.6213        .20957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7196        .29392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4171        .12861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6235        .19930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4758        5.0718        .32725E-06   -1.5240    
  19  norm          3.9388        4.6001        .32879E-06   -1.5311    
  20  Prefactor     .42072        17.080        .33478E-06   -1.5578    
  21  Prefactor     .10007E-03    112.60        .31115E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3496        .27036        .17637E-06   -.82097    
  23  Prefactor     .69573        .14212        .22266E-06   -1.0369    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6244.962     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     5029 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.566        38.611        .10394E-04    .43749E-07
   2  Prefactor     .10000E-03    23.880        .36285E-03** at limit **
   3  Prefactor     1.3669        2.2362        .58716E-05    .11617E-05
   4  Prefactor     .10000E-03    45.792        .36285E-03** at limit **
   5  Prefactor     .10000E-03    215.58        .42716E-03** at limit **
   6  Prefactor     .10000E-03    29.186        .36285E-03** at limit **
   7  Prefactor     54.751        60.295        .10836E-04   -.20984E-06
   8  norm          .10000E-03    1.2096        .33513E-04** at limit **
   9  norm          .10000E-03    67.961        .72569E-04** at limit **
  10  Prefactor     5.5718        8.0375        .68084E-05    .20038E-06
  11  Prefactor     .10000E-03    8.0512        .36285E-03** at limit **
  12  Prefactor     .10000E-03    8.6844        .36285E-03** at limit **
  13  Prefactor     25.615        17.407        .31660E-05    .28727E-06
  14  Prefactor     .10000E-03    6.6215        .36285E-03** at limit **
  15  Prefactor     .10000E-03    6.7197        .36285E-03** at limit **
  16  Prefactor     .10000E-03    6.4178        .36285E-03** at limit **
  17  Prefactor     .10000E-03    4.6237        .33177E-03** at limit **
  18  Prefactor     5.4758        5.0690        .31898E-04    .14256E-05
  19  norm          3.9388        4.5974        .33983E-04    .13382E-05
  20  Prefactor     .42072        17.202        .70582E-03    .10190E-03
  21  Prefactor     .10007E-03    115.87        .21514    ** at limit **
  22  Normalizat    1.3496        .27055        .11318E-04    .12054E-05
  23  Prefactor     .69573        .14219        .81800E-05    .11119E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5659
  Prefactor  = 0.0001
  Prefactor  = 1.36689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.7506
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.57184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.47584
  norm       = 3.93884
  Prefactor  = 0.420723
  Prefactor  = 0.000100072
  Normalizat = 1.34961
  Prefactor  = 0.695729
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.962     FROM HESSE     STATUS=OK           358 CALLS     5387 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.566        38.610        .10394E-04   -1.4163    
   2  Prefactor     .10000E-03    23.880        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3669        2.2362        .11743E-05   -1.5474    
   4  Prefactor     .10000E-03    45.793        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    215.59        .85432E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.187        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.751        60.221        .21671E-05   -1.4227    
   8  norm          .10000E-03    1.2097        .67025E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    67.961        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5718        8.0361        .68084E-05   -1.5236    
  11  Prefactor     .10000E-03    8.0513        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.6844        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.615        17.407        .31660E-05   -1.4695    
  14  Prefactor     .10000E-03    6.6215        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7197        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4179        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6237        .66355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4758        5.0677        .12759E-05   -1.5240    
  19  norm          3.9388        4.5967        .13593E-05   -1.5311    
  20  Prefactor     .42072        17.202        .14116E-03   -1.5578    
  21  Prefactor     .10007E-03    114.74        .21651       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3496        .27056        .22636E-05   -.82098    
  23  Prefactor     .69573        .14223        .16360E-05   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06802e-13
Minuit parameter uncertainties:
  1  38.6264
  2  2.3692e-07
  3  2.23633
  4  1.64925e-07
  5  2.28809e-06
  6  1.14564e-07
  7  60.2878
  8  3.69524e-09
  9  2.14107e-07
  10  8.03767
  11  9.72362e-08
  12  5.92355e-08
  13  17.4103
  14  3.64906e-08
  15  3.79508e-08
  16  5.38985e-08
  17  2.2226e-08
  18  5.06814
  19  4.59707
  20  5.38141
  21  0.00577564
  22  0.270843
  23  0.142308
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.649e-08  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:  6.957e-01  1.423e-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:  1.350e+00  2.708e-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: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198725/likelihoodResults_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.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) = 6244.96273916
delta logL = -0.000718226664503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6244.96202092
delta logL = 1.40216798172e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4761       1.0000          .0000       10.000    
     3 'Normalizat'    1.3496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69573       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=   6244.962     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      249 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    288.08        .18142E-01** at limit **
   2  Index         2.0165        5.7837        .94481E-01    .21659E-08
   3  Normalizat    1.3496        .36984E-01    .28295E-03    .57255E-04
   4  Prefactor     .69573        .19983E-01    .20450E-03    .10246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01654
  Normalizat = 1.34961
  Prefactor  = 0.695729
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.962     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2508        .20740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0165        5.8057        .37793E-02   -.63937    
   3  Normalizat    1.3496        .26038        .11318E-04   -.82098    
   4  Prefactor     .69573        .14077        .81800E-05   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73097e-12
Minuit parameter uncertainties:
  1  1.4076e-05
  2  380.266
  3  0.260634
  4  0.140839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198725': 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) = 6244.9620203
delta logL = 6.33261151961e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.408e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.017e+00  3.803e+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:  6.957e-01  1.408e-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:  1.350e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/198725/cmap_HighResolution_349747201_350006401_4FGL_J2207.6+0053_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-28 06:05:18.633174', job_id='198725', GAL2='0.70', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632834318.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='426' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 198725: <4FGL_J2207.6+0053_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin426 331.914 0.8907 349747201 350006401 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 :                                   826.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

