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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin356
RA = 331.914, Dec = 0.8907
tmin = 331603201, tmax = 331862401
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='198612', job_status='RUN', time_executed='2021-09-28 05:53:12.839223', time_epoch_executed='1632833592.84' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198612/ft1_4FGL_J2207.6+0053_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198612/ft2_4FGL_J2207.6+0053_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198612/ft1_4FGL_J2207.6+0053_daily_bin356.fits outfile=/scratch/kocevski/198612/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin356.fits ra=331.914 dec=0.8907 rad=12.0 tmin=331603201.0 tmax=331862401.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.30
user 3.11
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198612/ft1_filtered_4FGL_J2207.6+0053_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/198612/ft2_4FGL_J2207.6+0053_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/198612/ltcube_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.fits outfile=/scratch/kocevski/198612/expmap_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.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/198612/ltcube_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.fits
.....................!
real 190.14
user 185.32
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/198612/ft1_filtered_4FGL_J2207.6+0053_daily_bin356.fits scfile=/scratch/kocevski/198612/ft2_4FGL_J2207.6+0053_daily_bin356.fits outfile=/scratch/kocevski/198612/cmap_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.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/198612/ft1_filtered_4FGL_J2207.6+0053_daily_bin356.fits scfile=/scratch/kocevski/198612/ft2_4FGL_J2207.6+0053_daily_bin356.fits outfile=/scratch/kocevski/198612/cmap_HighResolution_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11981E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.996       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.881       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3433       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5323       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6551       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0711       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4794       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0251       1.0000         .10000E-03   10000.    
    19 'norm      '    13.473       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3831       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.139       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75836       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81823       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6967.099     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2561 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9900        52.026       -.17344E-04   -.77374E-05
   2  Prefactor     34.391        36.472        .74792E-05    .34291E-05
   3  Prefactor     .10000E-03    1.3458        .95267E-07** at limit **
   4  Prefactor     .10000E-03    28.329        .14012E-06** at limit **
   5  Prefactor     11.983        38.651       -.26019E-04   -.11893E-04
   6  Prefactor     .10000E-03    68.502        .16351E-05** at limit **
   7  Prefactor     77.827        60.318       -.52806E-04   -.15725E-03
   8  norm          4.3429        2.8253       -.65110E-06   -.66014E-03
   9  norm          4.7195        21.126        .24196E-04    .69439E-04
  10  Prefactor     3.5359        6.9761        .13508E-04    .88687E-04
  11  Prefactor     2.6546        8.5046       -.12706E-05   -.27663E-03
  12  Prefactor     7.0719        15.851        .18046E-05   -.41966E-04
  13  Prefactor     .10000E-03    6.2671        .16438E-06** at limit **
  14  Prefactor     9.4795        14.953       -.30526E-06   -.30905E-04
  15  Prefactor     7.6475        27.208       -.95082E-05   -.29720E-04
  16  Prefactor     14.501        12.984       -.14897E-05   -.89064E-05
  17  Prefactor     .10000E-03    3.4788        .28943E-07** at limit **
  18  Prefactor     6.0239        5.0214       -.21782E-05   -.34778E-03
  19  norm          13.473        4.9770       -.20820E-05   -.77479E-05
  20  Prefactor     2.3827        3.4669       -.64770E-06   -.15377E-03
  21  Prefactor     30.177        95.295        .64381E-04    .85440E-05
  22  Normalizat    .75816        .21063        .75995E-05   -.19019E-03
  23  Prefactor     .81835        .10800       -.16234E-06    .74567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.99001
  Prefactor  = 34.3912
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.9828
  Prefactor  = 0.0001
  Prefactor  = 77.8269
  norm       = 4.34291
  norm       = 4.71946
  Prefactor  = 3.53587
  Prefactor  = 2.6546
  Prefactor  = 7.07186
  Prefactor  = 0.0001
  Prefactor  = 9.47948
  Prefactor  = 7.64748
  Prefactor  = 14.5013
  Prefactor  = 0.0001
  Prefactor  = 6.02386
  norm       = 13.4733
  Prefactor  = 2.3827
  Prefactor  = 30.1771
  Normalizat = 0.758157
  Prefactor  = 0.818345
 **********
 **   18 **HESSE 
 **********

 FCN=   6967.099     FROM HESSE     STATUS=OK           380 CALLS     2941 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9900        52.025        .17987E-03   -1.5261    
   2  Prefactor     34.391        35.756        .68339E-04   -1.4534    
   3  Prefactor     .10000E-03    2.4841        .18156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.983        38.442        .11566E-03   -1.5016    
   6  Prefactor     .10000E-03    68.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.827        60.061        .45504E-04   -1.3941    
   8  norm          4.3429        2.8060        .10220E-03   -1.5291    
   9  norm          4.7195        20.762        .18539E-03   -1.5273    
  10  Prefactor     3.5359        6.9233        .21508E-03   -1.5332    
  11  Prefactor     2.6546        8.4839        .25017E-03   -1.5382    
  12  Prefactor     7.0719        15.810        .15086E-03   -1.5176    
  13  Prefactor     .10000E-03    6.2755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4795        14.930        .13016E-03   -1.5092    
  15  Prefactor     7.6475        27.156        .14496E-03   -1.5155    
  16  Prefactor     14.501        12.958        .10519E-03   -1.4946    
  17  Prefactor     .10000E-03    3.4797        .15205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0239        4.9980        .14706E-03   -1.5217    
  19  norm          13.473        4.9768        .10404E-03   -1.4974    
  20  Prefactor     2.3827        3.4531        .18302E-03   -1.5399    
  21  Prefactor     30.177        95.135        .72981E-04   -1.4609    
  22  Normalizat    .75816        .24546        .33845E-03   -1.0164    
  23  Prefactor     .81835        .12744        .18004E-03   -.99056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07677e-09
Minuit parameter uncertainties:
  1  32.2602
  2  35.7787
  3  4.39335e-05
  4  0.000411192
  5  38.5216
  6  5.46415e-05
  7  60.1077
  8  2.80611
  9  19.809
  10  6.92487
  11  8.48773
  12  15.8197
  13  3.00135e-06
  14  14.9357
  15  27.2003
  16  12.9604
  17  1.49197e-06
  18  4.99834
  19  4.97692
  20  3.45336
  21  95.6182
  22  0.245822
  23  0.127484
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  9.479e+00  1.494e+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:  8.183e-01  1.275e-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.582e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198612/likelihoodResults_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.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) = 6966.10061761
delta logL = 0.998761067283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6965.96060956
delta logL = 1.13876911755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4359       1.0000          .0000       10.000    
     3 'Normalizat'    .77514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6965.961     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.997        21.494        .84527E-05   -.26369E-03
   2  Index         1.4361        .55947        .44150E-04    .49987E-04
   3  Normalizat    .77508        .19323       -.85419E-06   -.22859E-04
   4  Prefactor     .81016        .10719        .48082E-07    .14792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9966
  Index      = 1.43609
  Normalizat = 0.775077
  Prefactor  = 0.810162
 **********
 **   18 **HESSE 
 **********

 FCN=   6965.961     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.997        20.871        .91916E-04   -1.4836    
   2  Index         1.4361        .54360        .91430E-02   -.79346    
   3  Normalizat    .77508        .22752        .33478E-03   -1.0100    
   4  Prefactor     .81016        .12653        .18068E-03   -.99355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95479e-10
Minuit parameter uncertainties:
  1  20.8795
  2  0.545796
  3  0.2278
  4  0.126572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198612': 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) = 6965.96060941
delta logL = 1.13876926217

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  8.102e-01  1.266e-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.751e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 331.914 0.891
Photon Index (Free Index): 1.44 +/- 0.55
Photon Flux (Free Index): 1.25e-08 +/- 1.55e-08
Energy Flux (Free Index): 4.88e-05 +/- 6.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/198612/cmap_HighResolution_331603201_331862401_4FGL_J2207.6+0053_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', comment='SUCCESS', energy_flux2='4.88e-05', dlogl='1.14e+00', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-09-28 06:04:43.345315', photon_index_error2='0.55', photon_index2='1.44', ts='0.56', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='6.69e-05', EG='0.76', time_epoch_completed='1632834283.35', return_code='0', job_id='198612', GAL2='0.81', EG2='0.78', return_code2='0', photon_flux_error2='1.55e-08', ts2='2.83', photon_index='2.48' WHERE bin_id='356' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 198612: <4FGL_J2207.6+0053_daily_bin356> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin356> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:45 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:47 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:47 2021
Terminated at Tue Sep 28 06:04:44 2021
Results reported at Tue Sep 28 06:04:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin356 331.914 0.8907 331603201 331862401 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

