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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin153
RA = 331.914, Dec = 0.8907
tmin = 278985601, tmax = 279244801
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='197117', job_status='RUN', time_executed='2021-09-28 05:48:18.419234', time_epoch_executed='1632833298.42' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197117/ft1_4FGL_J2207.6+0053_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197117/ft2_4FGL_J2207.6+0053_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197117/ft1_4FGL_J2207.6+0053_daily_bin153.fits outfile=/scratch/kocevski/197117/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin153.fits ra=331.914 dec=0.8907 rad=12.0 tmin=278985601.0 tmax=279244801.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.80
user 3.58
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197117/ft2_4FGL_J2207.6+0053_daily_bin153.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/197117/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin153.fits evtable="EVENTS" outfile="/scratch/kocevski/197117/ft1_filtered_4FGL_J2207.6+0053_daily_bin153.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.48
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197117/ft1_filtered_4FGL_J2207.6+0053_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/197117/ft2_4FGL_J2207.6+0053_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/197117/ltcube_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.fits outfile=/scratch/kocevski/197117/expmap_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.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/197117/ltcube_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.fits
.....................!
real 191.23
user 186.43
sys 4.47

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/197117/ft1_filtered_4FGL_J2207.6+0053_daily_bin153.fits scfile=/scratch/kocevski/197117/ft2_4FGL_J2207.6+0053_daily_bin153.fits outfile=/scratch/kocevski/197117/cmap_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197117/ft1_filtered_4FGL_J2207.6+0053_daily_bin153.fits scfile=/scratch/kocevski/197117/ft2_4FGL_J2207.6+0053_daily_bin153.fits outfile=/scratch/kocevski/197117/cmap_HighResolution_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34762E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11559E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.3434       1.0000         .10000E-03   10000.    
     9 'norm      '    13.389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0181       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.788       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32449       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0936       1.0000         .10000E-03   10000.    
    19 'norm      '    6.6721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    138.19       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71077       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98088       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=   6350.527     FROM MIGRAD    STATUS=FAILED       902 CALLS     2956 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.576        39.401        .50329E-04   -.38401E-05
   2  Prefactor     40.900        43.908        .62695E-04    .83558E-04
   3  Prefactor     .10000E-03    4.8220        .17307E-02** at limit **
   4  Prefactor     .10000E-03    71.860        .18142E-02** at limit **
   5  Prefactor     .10000E-03    16.694        .18142E-02** at limit **
   6  Prefactor     .10000E-03    40.112        .18142E-02** at limit **
   7  Prefactor     .10000E-03    107.62        .18142E-02** at limit **
   8  norm          7.3438        2.9092        .80023E-04    .28513E-03
   9  norm          13.385        18.431        .10947E-03    .14467E-03
  10  Prefactor     .10000E-03    6.9710        .18142E-02** at limit **
  11  Prefactor     2.0128        11.540        .14567E-02   -.18934E-04
  12  Prefactor     23.775        27.104        .82129E-04    .53293E-04
  13  Prefactor     .10000E-03    12.791        .18142E-02** at limit **
  14  Prefactor     5.1382        20.312        .17749E-03   -.19215E-06
  15  Prefactor     1.0603        188.40        .72123E-02    .71715E-03
  16  Prefactor     .35231        108.53        .38855E-02    .27883E-03
  17  Prefactor     .10000E-03    3.6208        .14807E-02** at limit **
  18  Prefactor     3.0910        3.4155        .14228E-03   -.97723E-04
  19  norm          6.6721        5.2287        .14812E-03   -.78287E-04
  20  Prefactor     .10000E-03    4.6771        .16721E-02** at limit **
  21  Prefactor     138.20        105.62        .34264E-04   -.12210E-04
  22  Normalizat    .71071        .26961        .36183E-03    .42417E-05
  23  Prefactor     .98084        .14008        .17689E-03   -.19675E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6350.527     FROM SIMPLEX   STATUS=PROGRESS    1092 CALLS     4048 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.576        39.401        .25987E-06   -1.4112    
   2  Prefactor     40.899        43.908        .46170E-06   -1.4428    
   3  Prefactor     .10000E-03    4.8220        .22933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.860        .10228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.694        .37710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.112        .45544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    107.62        .53910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3438        2.9092        .22894E-06   -1.5166    
   9  norm          13.385        18.431        .22628E-06   -1.4976    
  10  Prefactor     .10000E-03    6.9710        .69837E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0128        11.540        .23369E-06   -1.5424    
  12  Prefactor     23.775        27.104        .22238E-06   -1.4732    
  13  Prefactor     .10000E-03    12.791        .40525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1382        20.312        .22991E-06   -1.5255    
  15  Prefactor     1.0603        188.40        .70789E-06   -1.5502    
  16  Prefactor     .35231        108.53        .40284E-06   -1.5589    
  17  Prefactor     .10000E-03    3.6208        .30463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0910        3.4155        .23201E-06   -1.5356    
  19  norm          6.6721        5.2287        .22955E-06   -1.5191    
  20  Prefactor     .10000E-03    4.6771        .21407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     138.20        105.62        .20128E-06   -1.3351    
  22  Normalizat    .71071        .26961        .15621E-06   -1.0347    
  23  Prefactor     .98084        .14008        .14097E-06   -.93371    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6350.527     FROM MIGRAD    STATUS=CONVERGED    355 CALLS     4403 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.576        39.381        .20132E-05    .11294E-05
   2  Prefactor     40.899        43.808        .12539E-04    .18315E-04
   3  Prefactor     .10000E-03    4.8379        .34613E-03** at limit **
   4  Prefactor     .10000E-03    71.906        .36285E-03** at limit **
   5  Prefactor     .10000E-03    16.695        .36285E-03** at limit **
   6  Prefactor     .10000E-03    40.113        .36285E-03** at limit **
   7  Prefactor     .10000E-03    107.66        .36285E-03** at limit **
   8  norm          7.3438        2.9076        .32009E-05    .21310E-05
   9  norm          13.385        18.423        .43786E-05    .10386E-05
  10  Prefactor     .10000E-03    6.9759        .36285E-03** at limit **
  11  Prefactor     2.0128        11.509        .58267E-04    .64387E-05
  12  Prefactor     23.774        26.935        .32852E-05    .20764E-05
  13  Prefactor     .10000E-03    12.792        .36285E-03** at limit **
  14  Prefactor     5.1382        20.299        .70998E-05    .11529E-04
  15  Prefactor     1.0604        186.97        .14425E-02    .28298E-04
  16  Prefactor     .35166        104.57        .15542E-03   -.18287E-05
  17  Prefactor     .10000E-03    3.6209        .29614E-03** at limit **
  18  Prefactor     3.0911        3.3779        .56911E-05    .14383E-03
  19  norm          6.6722        5.2275        .59249E-05    .52191E-04
  20  Prefactor     .10000E-03    4.6791        .33442E-03** at limit **
  21  Prefactor     138.20        105.61        .68528E-05    .89585E-05
  22  Normalizat    .71071        .26642        .14473E-04    .68338E-04
  23  Prefactor     .98084        .13994        .35378E-04    .10527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.5755
  Prefactor  = 40.8992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.34381
  norm       = 13.3848
  Prefactor  = 0.0001
  Prefactor  = 2.0128
  Prefactor  = 23.7744
  Prefactor  = 0.0001
  Prefactor  = 5.13818
  Prefactor  = 1.06042
  Prefactor  = 0.351658
  Prefactor  = 0.0001
  Prefactor  = 3.09108
  norm       = 6.67216
  Prefactor  = 0.0001
  Prefactor  = 138.197
  Normalizat = 0.710713
  Prefactor  = 0.980839
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.527     FROM HESSE     STATUS=OK           348 CALLS     4751 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.576        39.702        .40263E-06   -1.4112    
   2  Prefactor     40.899        43.784        .25078E-05   -1.4428    
   3  Prefactor     .10000E-03    4.8385        .69227E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.908        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.695        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.113        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    107.67        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.3438        2.9070        .64018E-06   -1.5166    
   9  norm          13.385        18.432        .87572E-06   -1.4976    
  10  Prefactor     .10000E-03    6.9761        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0128        11.515        .23307E-05   -1.5424    
  12  Prefactor     23.774        26.787        .65703E-06   -1.4732    
  13  Prefactor     .10000E-03    12.792        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1382        20.299        .14200E-05   -1.5255    
  15  Prefactor     1.0604        185.92        .28849E-03   -1.5502    
  16  Prefactor     .35166        104.51        .62169E-05   -1.5589    
  17  Prefactor     .10000E-03    3.6209        .59229E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0911        3.3768        .11382E-05   -1.5356    
  19  norm          6.6722        5.2280        .11850E-05   -1.5191    
  20  Prefactor     .10000E-03    4.6792        .66884E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     138.20        105.83        .13706E-05   -1.3351    
  22  Normalizat    .71071        .26606        .28947E-05   -1.0347    
  23  Prefactor     .98084        .13990        .70757E-05   -.93371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21827e-11
Minuit parameter uncertainties:
  1  39.7189
  2  43.818
  3  1.11542e-06
  4  1.17966e-05
  5  6.43076e-07
  6  4.14457e-07
  7  4.97323e-06
  8  2.90705
  9  18.44
  10  7.35452e-07
  11  9.631
  12  26.8004
  13  1.05261e-06
  14  20.3261
  15  28.1702
  16  12.1446
  17  9.96505e-08
  18  3.377
  19  5.22838
  20  3.7375e-07
  21  105.976
  22  0.266542
  23  0.139948
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  5.138e+00  2.033e+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:  9.808e-01  1.399e-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:  7.107e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/197117/likelihoodResults_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.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) = 6350.47620162
delta logL = 0.0510550614063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6350.47002299
delta logL = 0.0572336893338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7248       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0267       1.0000          .0000       10.000    
     3 'Normalizat'    .69793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98432       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6350.470     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      264 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7154        36.902        .10461E-02    .23247E-03
   2  Index         3.0283        2.7000        .10083E-01    .26212E-03
   3  Normalizat    .69763        .24717        .36501E-03   -.68521E-06
   4  Prefactor     .98451        .13877        .17660E-03   -.10944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7154
  Index      = 3.02825
  Normalizat = 0.697635
  Prefactor  = 0.984511
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.470     FROM HESSE     STATUS=OK            27 CALLS      291 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7154        14.461        .20923E-03   -1.5322    
   2  Index         3.0283        1.7375        .20167E-02   -.40536    
   3  Normalizat    .69763        .24753        .14601E-04   -1.0399    
   4  Prefactor     .98451        .13855        .70638E-05   -.93248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2324e-11
Minuit parameter uncertainties:
  1  14.4749
  2  1.78183
  3  0.247927
  4  0.1386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197117': 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) = 6350.47002174
delta logL = 0.0572349415934

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.715e+00  1.447e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.028e+00  1.782e+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:  9.845e-01  1.386e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  6.976e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/197117/cmap_HighResolution_278985601_279244801_4FGL_J2207.6+0053_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-28 06:01:29.232387', job_id='197117', GAL2='0.98', fit_tolerance='1e-08', EG2='0.70', EG='0.71', time_epoch_completed='1632834089.23', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.72e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='153' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:01:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 197117: <4FGL_J2207.6+0053_daily_bin153> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin153> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:43 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:45:45 2021
Terminated at Tue Sep 28 06:01:30 2021
Results reported at Tue Sep 28 06:01:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin153 331.914 0.8907 278985601 279244801 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 :                                   789.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

