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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin470
RA = 331.914, Dec = 0.8907
tmin = 361152001, tmax = 361411201
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='198786', job_status='RUN', time_executed='2021-09-28 05:53:50.346004', time_epoch_executed='1632833630.35' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198786/ft1_4FGL_J2207.6+0053_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198786/ft2_4FGL_J2207.6+0053_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198786/ft1_4FGL_J2207.6+0053_daily_bin470.fits outfile=/scratch/kocevski/198786/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin470.fits ra=331.914 dec=0.8907 rad=12.0 tmin=361152001.0 tmax=361411201.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.55
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198786/ft1_filtered_4FGL_J2207.6+0053_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/198786/ft2_4FGL_J2207.6+0053_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/198786/ltcube_361152001_361411201_4FGL_J2207.6+0053_daily_bin470.fits outfile=/scratch/kocevski/198786/expmap_361152001_361411201_4FGL_J2207.6+0053_daily_bin470.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/198786/ltcube_361152001_361411201_4FGL_J2207.6+0053_daily_bin470.fits
.....................!
real 190.17
user 184.81
sys 4.97

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/198786/ft1_filtered_4FGL_J2207.6+0053_daily_bin470.fits scfile=/scratch/kocevski/198786/ft2_4FGL_J2207.6+0053_daily_bin470.fits outfile=/scratch/kocevski/198786/cmap_361152001_361411201_4FGL_J2207.6+0053_daily_bin470.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.711       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2887       1.0000         .10000E-03   10000.    
     8 'norm      '    .35641E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.515       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4081       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.265       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9976       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3941       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87209       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88841       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=   8258.859     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2585 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.988       -.14655E-05** at limit **
   2  Prefactor     27.486        31.157        .10954E-06   -.20823E-04
   3  Prefactor     .10000E-03    .95034        .89011E-07** at limit **
   4  Prefactor     .10000E-03    60.147       -.14907E-06** at limit **
   5  Prefactor     24.710        25.495        .23667E-06   -.22014E-04
   6  Prefactor     .10000E-03    34.054        .33197E-06** at limit **
   7  Prefactor     4.2608        100.23        .88577E-05   -.28938E-04
   8  norm          .10000E-03    .85329        .17927E-06** at limit **
   9  norm          19.524        19.782       -.93295E-06   -.14836E-03
  10  Prefactor     .10001E-03    5.5138       -.31495E-05** at limit **
  11  Prefactor     10.637        8.4521       -.37218E-07    .45209E-05
  12  Prefactor     4.4085        20.592        .25025E-05   -.82737E-04
  13  Prefactor     6.9114        15.741       -.25736E-06   -.14682E-05
  14  Prefactor     42.309        23.222        .79399E-07   -.81834E-04
  15  Prefactor     13.263        29.103        .25064E-06   -.21536E-04
  16  Prefactor     2.9202        9.2156        .42153E-05   -.26757E-03
  17  Prefactor     7.6385        11.459        .11396E-06   -.62505E-05
  18  Prefactor     5.9978        4.9434        .65124E-06   -.46385E-03
  19  norm          7.3938        3.8088       -.89308E-07   -.37590E-04
  20  Prefactor     5.3245        6.1512        .98941E-06   -.19188E-03
  21  Prefactor     .10000E-03    20.717       -.10599E-07** at limit **
  22  Normalizat    .87208        .19781       -.11317E-05   -.72516E-04
  23  Prefactor     .88842        .10517       -.40755E-06   -.15990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 27.4863
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 24.7097
  Prefactor  = 0.0001
  Prefactor  = 4.26082
  norm       = 0.0001
  norm       = 19.5235
  Prefactor  = 0.000100005
  Prefactor  = 10.6375
  Prefactor  = 4.40846
  Prefactor  = 6.91138
  Prefactor  = 42.3094
  Prefactor  = 13.2633
  Prefactor  = 2.92017
  Prefactor  = 7.63846
  Prefactor  = 5.99782
  norm       = 7.39379
  Prefactor  = 5.32454
  Prefactor  = 0.0001
  Normalizat = 0.872079
  Prefactor  = 0.88842
 **********
 **   18 **HESSE 
 **********

 FCN=   8258.859     FROM HESSE     STATUS=OK           380 CALLS     2965 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.486        30.381        .76414E-04   -1.4659    
   3  Prefactor     .10000E-03    1.6784        .16651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    60.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.710        25.474        .80582E-04   -1.4713    
   6  Prefactor     .10000E-03    34.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2608        101.69        .19454E-03   -1.5295    
   8  norm          .10000E-03    9.0275        .15629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.524        19.313        .90665E-04   -1.4824    
  10  Prefactor     .10001E-03    6.1630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.637        8.4455        .12284E-03   -1.5056    
  12  Prefactor     4.4085        20.661        .95908E-03   -1.5288    
  13  Prefactor     6.9114        15.643        .15263E-03   -1.5182    
  14  Prefactor     42.309        23.135        .61623E-04   -1.4406    
  15  Prefactor     13.263        29.025        .10998E-03   -1.4979    
  16  Prefactor     2.9202        9.2243        .11884E-02   -1.5366    
  17  Prefactor     7.6385        11.453        .14510E-03   -1.5155    
  18  Prefactor     5.9978        4.8904        .79524E-03   -1.5218    
  19  norm          7.3938        3.8107        .12006E-03   -1.5164    
  20  Prefactor     5.3245        6.1628        .87086E-03   -1.5246    
  21  Prefactor     .10000E-03    20.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87208        .23445        .32973E-03   -.97448    
  23  Prefactor     .88842        .12560        .18427E-03   -.96547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27604e-09
Minuit parameter uncertainties:
  1  0.0005872
  2  30.3978
  3  7.31245e-06
  4  0.000943832
  5  25.4855
  6  9.44508e-05
  7  41.7105
  8  2.17173e-06
  9  19.319
  10  0.000361342
  11  8.4464
  12  19.0979
  13  15.6523
  14  23.1397
  15  29.0561
  16  9.22876
  17  11.4559
  18  4.8907
  19  3.81084
  20  6.1635
  21  8.1027e-06
  22  0.234723
  23  0.125641
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  4.231e+01  2.314e+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.884e-01  1.256e-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:  8.721e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.42
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.62e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.66e-05

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) = 8258.19007667
delta logL = 0.668971308716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8258.1836385
delta logL = 0.675409478295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.168       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0492       1.0000          .0000       10.000    
     3 'Normalizat'    .82752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90661       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=   8258.184     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      303 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.162        26.850        .89187E-04   -.74952E-04
   2  Index         3.0495        .71638        .39309E-02    .80251E-03
   3  Normalizat    .82736        .22566        .33743E-03    .93732E-04
   4  Prefactor     .90677        .12621        .18257E-03   -.82743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.162
  Index      = 3.04949
  Normalizat = 0.827357
  Prefactor  = 0.906775
 **********
 **   18 **HESSE 
 **********

 FCN=   8258.184     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.162        21.586        .35675E-05   -1.4810    
   2  Index         3.0495        .57629        .78618E-03   -.40074    
   3  Normalizat    .82736        .22522        .13497E-04   -.99062    
   4  Prefactor     .90677        .12583        .36515E-04   -.95905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29696e-10
Minuit parameter uncertainties:
  1  21.5944
  2  0.57781
  3  0.225473
  4  0.125866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198786': 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) = 8258.18363693
delta logL = 0.675411048218

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.016e+01  2.159e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.049e+00  5.778e-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:  9.068e-01  1.259e-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:  8.274e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.92
Ra Dec: 331.914 0.891
Photon Index (Free Index): 3.05 +/- 0.58
Photon Flux (Free Index): 1.36e-07 +/- 6.19e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198786/cmap_HighResolution_361152001_361411201_4FGL_J2207.6+0053_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.64e-05', photon_flux_error='5.62e-08', dlogl='6.75e-01', energy_flux='3.04e-05', photon_flux2='1.36e-07', job_status='DONE', time_completed='2021-09-28 06:05:23.474762', photon_index_error2='0.58', photon_index2='3.05', ts='6.42', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.87', time_epoch_completed='1632834323.47', return_code='0', job_id='198786', GAL2='0.91', EG2='0.83', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.19e-08', ts2='7.92', photon_index='2.48' WHERE bin_id='470' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 198786: <4FGL_J2207.6+0053_daily_bin470> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin470> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:51:01 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:51:03 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:51:03 2021
Terminated at Tue Sep 28 06:05:24 2021
Results reported at Tue Sep 28 06:05:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin470 331.914 0.8907 361152001 361411201 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

