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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin558
RA = 331.914, Dec = 0.8907
tmin = 383961601, tmax = 384220801
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='199966', job_status='RUN', time_executed='2021-09-28 05:58:50.787158', time_epoch_executed='1632833930.79' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199966/ft1_4FGL_J2207.6+0053_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199966/ft2_4FGL_J2207.6+0053_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199966/ft1_4FGL_J2207.6+0053_daily_bin558.fits outfile=/scratch/kocevski/199966/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin558.fits ra=331.914 dec=0.8907 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.60
user 8.22
sys 0.33

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199966/ft1_filtered_4FGL_J2207.6+0053_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/199966/ft2_4FGL_J2207.6+0053_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/199966/ltcube_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.fits outfile=/scratch/kocevski/199966/expmap_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.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/199966/ltcube_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.fits
.....................!
real 190.50
user 184.68
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/199966/ft1_filtered_4FGL_J2207.6+0053_daily_bin558.fits scfile=/scratch/kocevski/199966/ft2_4FGL_J2207.6+0053_daily_bin558.fits outfile=/scratch/kocevski/199966/cmap_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199966/ft1_filtered_4FGL_J2207.6+0053_daily_bin558.fits scfile=/scratch/kocevski/199966/ft2_4FGL_J2207.6+0053_daily_bin558.fits outfile=/scratch/kocevski/199966/cmap_HighResolution_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.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/199966/ft1_filtered_4FGL_J2207.6+0053_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/199966/ft2_4FGL_J2207.6+0053_daily_bin558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/199966/Model_4FGL_J2207.6+0053_daily_bin558.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/199966/ft1_filtered_4FGL_J2207.6+0053_daily_bin558.fits.....................!
real 50.83
user 49.53
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.948       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32314E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.918       1.0000         .10000E-03   10000.    
     8 'norm      '    .31144       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0432       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0066       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
    19 'norm      '    .10899E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.719       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .32519       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2619       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=   4787.229     FROM MIGRAD    STATUS=FAILED       933 CALLS     3090 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.622        .18142E-02** at limit **
   2  Prefactor     36.018        47.109        .66841E-04   -.20135E-03
   3  Prefactor     .10000E-03    7.5766        .16982E-02** at limit **
   4  Prefactor     .52622        58.626        .11604        .55462E-04
   5  Prefactor     40.132        40.045        .63274E-04    .29970E-04
   6  Prefactor     .10000E-03    66.927        .18142E-02** at limit **
   7  Prefactor     64.963        92.582        .49808E-04   -.21300E-03
   8  norm          .30982        6.1244        .17475E-02    .25881E-03
   9  norm          .10000E-03    9.2845        .18142E-02** at limit **
  10  Prefactor     .30904        136.51        .39995E-02    .10338E-02
  11  Prefactor     .10000E-03    7.5542        .18142E-02** at limit **
  12  Prefactor     5.0429        12.754        .89528E-03    .17104E-03
  13  Prefactor     5.1586        13.551        .88511E-03    .16355E-03
  14  Prefactor     .10000E-03    39.429        .18142E-02** at limit **
  15  Prefactor     .10000E-03    10.053        .18142E-02** at limit **
  16  Prefactor     3.0075        10.678        .23408E-03    .35697E-04
  17  Prefactor     .10000E-03    7.5356        .18142E-02** at limit **
  18  Prefactor     14.771        8.3880        .10424E-03   -.50169E-04
  19  norm          .10001E-03    33.903        .23224E-02** at limit **
  20  Prefactor     .10000E-03    8.1675        .18142E-02** at limit **
  21  Prefactor     72.671        159.23        .47080E-04    .72299E-04
  22  Normalizat    .32490        .30085        .52954E-03   -.17955E-03
  23  Prefactor     1.2622        .16784        .16496E-03   -.27313E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4787.229     FROM SIMPLEX   STATUS=UNCHANGED   1072 CALLS     4162 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.622        .84021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.018        47.109        .66271E-06   -1.4507    
   3  Prefactor     .10000E-03    7.5766        .30218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52622        58.626        .70748E-06   -1.5563    
   5  Prefactor     40.132        40.045        .65875E-06   -1.4440    
   6  Prefactor     .10000E-03    66.927        .11168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.963        92.582        .64244E-06   -1.4094    
   8  norm          .30982        6.1244        .71137E-06   -1.5597    
   9  norm          .10000E-03    9.2845        .39995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30904        136.51        .75170E-06   -1.5597    
  11  Prefactor     .10000E-03    7.5542        .19500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0429        12.754        .69624E-06   -1.5259    
  13  Prefactor     5.1586        13.551        .69762E-06   -1.5254    
  14  Prefactor     .10000E-03    39.429        .31410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.053        .38207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0075        10.678        .70077E-06   -1.5361    
  17  Prefactor     .10000E-03    7.5356        .65766E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.771        8.3880        .68153E-06   -1.4939    
  19  norm          .10001E-03    33.903        .54980E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1675        .33620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.671        159.23        .63851E-06   -1.4001    
  22  Normalizat    .32490        .30085        .55373E-06   -1.2138    
  23  Prefactor     1.2622        .16784        .38521E-06   -.84439    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4787.229     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     4530 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.626        .36285E-03** at limit **
   2  Prefactor     36.019        47.056        .13368E-04    .13607E-05
   3  Prefactor     .10000E-03    7.6164        .33964E-03** at limit **
   4  Prefactor     .52619        52.784        .12356        .62751E-04
   5  Prefactor     40.132        40.043        .12655E-04    .80854E-05
   6  Prefactor     .10000E-03    66.928        .36285E-03** at limit **
   7  Prefactor     64.965        84.093        .99617E-05    .10499E-04
   8  norm          .30979        6.0837        .69899E-04    .76443E-05
   9  norm          .10000E-03    9.2848        .36285E-03** at limit **
  10  Prefactor     .30894        114.23        .79990E-03   -.11811E-04
  11  Prefactor     .10000E-03    7.5558        .36285E-03** at limit **
  12  Prefactor     5.0428        12.752        .35811E-04    .13333E-04
  13  Prefactor     5.1584        13.547        .35404E-04    .12844E-04
  14  Prefactor     .10000E-03    39.446        .36285E-03** at limit **
  15  Prefactor     .10000E-03    10.053        .36285E-03** at limit **
  16  Prefactor     3.0074        10.674        .93633E-05    .50995E-05
  17  Prefactor     .10000E-03    7.5359        .36285E-03** at limit **
  18  Prefactor     14.771        8.3859        .41696E-05    .21813E-04
  19  norm          .10000E-03    34.379        .46448E-03** at limit **
  20  Prefactor     .10000E-03    8.1708        .36285E-03** at limit **
  21  Prefactor     72.668        158.98        .94159E-05    .96591E-05
  22  Normalizat    .32491        .30003        .21181E-04    .14814E-04
  23  Prefactor     1.2622        .16739        .32991E-04    .52999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.0187
  Prefactor  = 0.0001
  Prefactor  = 0.526186
  Prefactor  = 40.1319
  Prefactor  = 0.0001
  Prefactor  = 64.9647
  norm       = 0.309785
  norm       = 0.0001
  Prefactor  = 0.308939
  Prefactor  = 0.0001
  Prefactor  = 5.04276
  Prefactor  = 5.15845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.00741
  Prefactor  = 0.0001
  Prefactor  = 14.7715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.6682
  Normalizat = 0.324909
  Prefactor  = 1.26217
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.229     FROM HESSE     STATUS=OK           358 CALLS     4888 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.626        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.019        47.066        .26737E-05   -1.4507    
   3  Prefactor     .10000E-03    7.6180        .67927E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52619        54.830        .12077       -1.5563    
   5  Prefactor     40.132        40.064        .25309E-05   -1.4440    
   6  Prefactor     .10000E-03    66.928        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.965        82.317        .19923E-05   -1.4094    
   8  norm          .30979        6.0826        .27959E-05   -1.5597    
   9  norm          .10000E-03    9.2848        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30894        109.29        .31996E-04   -1.5597    
  11  Prefactor     .10000E-03    7.5558        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0428        12.751        .14324E-05   -1.5259    
  13  Prefactor     5.1584        13.549        .14162E-05   -1.5254    
  14  Prefactor     .10000E-03    39.446        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.053        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0074        10.678        .18727E-05   -1.5361    
  17  Prefactor     .10000E-03    7.5359        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.771        8.3824        .83391E-06   -1.4939    
  19  norm          .10000E-03    34.399        .92897E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1709        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.668        159.19        .18832E-05   -1.4001    
  22  Normalizat    .32491        .30013        .42363E-05   -1.2138    
  23  Prefactor     1.2622        .16736        .65982E-05   -.84439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11354e-10
Minuit parameter uncertainties:
  1  2.54733e-05
  2  47.1143
  3  1.23202e-07
  4  10.7516
  5  40.0913
  6  5.41432e-06
  7  82.4614
  8  2.74526
  9  6.63684e-08
  10  11.6411
  11  3.50617e-06
  12  12.7574
  13  13.5573
  14  3.17852e-05
  15  3.17542e-07
  16  10.6848
  17  2.97377e-06
  18  8.38302
  19  0.000102017
  20  1.35306e-06
  21  160.132
  22  0.301633
  23  0.167427
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.179e-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:  1.262e+00  1.674e-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:  3.249e-01  3.016e-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: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/199966/likelihoodResults_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.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) = 4787.22908385
delta logL = -0.000120785579384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4787.22896354
delta logL = -4.8187757784e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6449       1.0000          .0000       10.000    
     3 'Normalizat'    .32491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2622       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=   4787.229     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      298 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    .74540        .86876E-01** at limit **
   2  Index         2.5676        8.6135        .50000        .12722E-04
   3  Normalizat    .32491        .13114E-02    .52956E-03    .24152E-04
   4  Prefactor     1.2622        .77876E-03    .16496E-03    .99934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102153
  Index      = 2.56756
  Normalizat = 0.324909
  Prefactor  = 1.26217
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.229     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10215E-03    44.666        .54280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5676        7.7452        .50000       -.50807    
   3  Normalizat    .32491        .70061E-02    .21182E-04   -1.2138    
   4  Prefactor     1.2622        .41603E-02    .65982E-05   -.84439    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.88572e-10
Minuit parameter uncertainties:
  1  0.0196255
  2  104.697
  3  0.00700608
  4  0.0041603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199966': 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) = 4787.22896329
delta logL = -2.28427779803e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.022e-04  1.963e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.568e+00  1.047e+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:  1.262e+00  4.160e-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:  3.249e-01  7.006e-03  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/199966/cmap_HighResolution_383961601_384220801_4FGL_J2207.6+0053_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-28 06:10:50.056435', job_id='199966', GAL2='1.26', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1632834650.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='-2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='558' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 199966: <4FGL_J2207.6+0053_daily_bin558> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin558> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:13 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55:15 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:15 2021
Terminated at Tue Sep 28 06:10:50 2021
Results reported at Tue Sep 28 06:10:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin558 331.914 0.8907 383961601 384220801 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

