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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin211
RA = 331.914, Dec = 0.8907
tmin = 294019201, tmax = 294278401
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='198382', job_status='RUN', time_executed='2021-09-28 05:54:18.237308', time_epoch_executed='1632833658.24' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198382

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198382/ft1_4FGL_J2207.6+0053_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198382/ft2_4FGL_J2207.6+0053_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198382/ft1_4FGL_J2207.6+0053_daily_bin211.fits outfile=/scratch/kocevski/198382/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin211.fits ra=331.914 dec=0.8907 rad=12.0 tmin=294019201.0 tmax=294278401.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.13
user 2.90
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198382/ft1_filtered_4FGL_J2207.6+0053_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/198382/ft2_4FGL_J2207.6+0053_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/198382/ltcube_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.fits outfile=/scratch/kocevski/198382/expmap_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.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/198382/ltcube_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.fits
.....................!
real 192.29
user 186.76
sys 5.18

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/198382/ft1_filtered_4FGL_J2207.6+0053_daily_bin211.fits scfile=/scratch/kocevski/198382/ft2_4FGL_J2207.6+0053_daily_bin211.fits outfile=/scratch/kocevski/198382/cmap_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198382/ft1_filtered_4FGL_J2207.6+0053_daily_bin211.fits scfile=/scratch/kocevski/198382/ft2_4FGL_J2207.6+0053_daily_bin211.fits outfile=/scratch/kocevski/198382/cmap_HighResolution_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.759       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8923       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.194       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.383       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8538       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3120       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66913       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91143       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=   5681.675     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2557 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.711       -.62623E-05** at limit **
   2  Prefactor     83.019        57.002       -.34853E-06   -.11767E-04
   3  Prefactor     1.3994        2.4486        .11437E-06    .79378E-04
   4  Prefactor     .10000E-03    14.578        .47307E-06** at limit **
   5  Prefactor     24.808        40.473        .12263E-06    .30822E-05
   6  Prefactor     .10000E-03    34.657        .13004E-05** at limit **
   7  Prefactor     49.753        42.850        .14427E-05    .11943E-03
   8  norm          .10000E-03    .69857       -.88295E-08** at limit **
   9  norm          13.030        18.501        .43267E-06    .61082E-05
  10  Prefactor     .10001E-03    5.0500        .13245E-05** at limit **
  11  Prefactor     1.8933        17.960        .12023E-04   -.44166E-04
  12  Prefactor     .10000E-03    32.832        .22413E-05** at limit **
  13  Prefactor     7.1202        15.529       -.74180E-06   -.12491E-04
  14  Prefactor     6.9850        21.740       -.15442E-05   -.21420E-04
  15  Prefactor     58.193        29.794       -.26495E-07   -.79769E-04
  16  Prefactor     16.379        17.149        .15913E-06   -.33765E-04
  17  Prefactor     .10000E-03    3.5442       -.11997E-07** at limit **
  18  Prefactor     3.8543        6.4044       -.69636E-06   -.28777E-03
  19  norm          3.3128        5.4360        .99577E-06    .12006E-03
  20  Prefactor     .10000E-03    3.9638       -.82781E-08** at limit **
  21  Prefactor     .10000E-03    82.086        .44051E-05** at limit **
  22  Normalizat    .66951        .23408       -.11915E-05    .12040E-04
  23  Prefactor     .91118        .12160       -.51498E-07    .11473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 83.0186
  Prefactor  = 1.39938
  Prefactor  = 0.0001
  Prefactor  = 24.8082
  Prefactor  = 0.0001
  Prefactor  = 49.7528
  norm       = 0.0001
  norm       = 13.0302
  Prefactor  = 0.000100005
  Prefactor  = 1.89326
  Prefactor  = 0.0001
  Prefactor  = 7.12018
  Prefactor  = 6.985
  Prefactor  = 58.1929
  Prefactor  = 16.379
  Prefactor  = 0.0001
  Prefactor  = 3.85426
  norm       = 3.31276
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.669507
  Prefactor  = 0.911178
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.675     FROM HESSE     STATUS=OK           368 CALLS     2925 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     83.019        55.962        .44086E-04   -1.3883    
   3  Prefactor     1.3994        2.3630        .13511E-03   -1.5471    
   4  Prefactor     .10000E-03    14.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.808        40.442        .80423E-04   -1.4711    
   6  Prefactor     .10000E-03    34.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.753        42.008        .56850E-04   -1.4296    
   8  norm          .10000E-03    .70963        .61460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.030        18.478        .55485E-03   -1.4986    
  10  Prefactor     .10001E-03    16.281        .31021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8933        18.336        .15123E-02   -1.5433    
  12  Prefactor     .10000E-03    33.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1202        15.422        .15034E-03   -1.5174    
  14  Prefactor     6.9850        21.682        .15175E-03   -1.5179    
  15  Prefactor     58.193        29.800        .52590E-04   -1.4181    
  16  Prefactor     16.379        16.967        .98952E-04   -1.4898    
  17  Prefactor     .10000E-03    3.5456        .13859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8543        6.3160        .19505E-03   -1.5315    
  19  norm          3.3128        5.4075        .20628E-03   -1.5344    
  20  Prefactor     .10000E-03    4.0683        .29312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    82.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .66951        .27446        .35027E-03   -1.0511    
  23  Prefactor     .91118        .14440        .17118E-03   -.95752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43465e-10
Minuit parameter uncertainties:
  1  0.000396992
  2  55.9971
  3  2.36313
  4  1.84767e-05
  5  40.4871
  6  0.000105678
  7  42.0335
  8  7.35576e-07
  9  18.4865
  10  0.000578224
  11  11.7884
  12  5.58954e-06
  13  15.4304
  14  21.7065
  15  29.8077
  16  16.9716
  17  5.33551e-07
  18  6.31708
  19  5.40826
  20  2.35946e-07
  21  0.000438359
  22  0.275018
  23  0.144461
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  6.985e+00  2.171e+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.112e-01  1.445e-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.695e-01  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
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/198382/likelihoodResults_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.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) = 5680.33928419
delta logL = 1.33546785695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5680.32504781
delta logL = 1.34970424256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92772       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4902       1.0000          .0000       10.000    
     3 'Normalizat'    .54478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95532       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.

 FCN=   5680.325     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      260 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92382        9.1546        .10409E-01    .11177E-03
   2  Index         4.4922        2.4059        .10309        .93509E-04
   3  Normalizat    .54483        .56657E-01    .86964E-01    .14734E-04
   4  Prefactor     .95529        .32029E-01    .45706E-01   -.18585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.923825
  Index      = 4.49224
  Normalizat = 0.544835
  Prefactor  = 0.955293
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.325     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92382        19.979        .47098E-04   -1.5516    
   2  Index         4.4922        3.8678        .39273E-02   -.10173    
   3  Normalizat    .54483        .23385        .38522E-03   -1.1038    
   4  Prefactor     .95529        .13061        .16741E-03   -.94235    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7531e-10
Minuit parameter uncertainties:
  1  8.59515
  2  4.43109
  3  0.234272
  4  0.130653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198382': 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) = 5680.32504685
delta logL = 1.34970520462

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  9.238e-01  8.595e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  4.492e+00  4.431e+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.553e-01  1.307e-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:  5.448e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.31
Ra Dec: 331.914 0.891
Photon Index (Free Index): 4.49 +/- 4.43
Photon Flux (Free Index): 1.12e-07 +/- 7.55e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.36e-05

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/198382/cmap_HighResolution_294019201_294278401_4FGL_J2207.6+0053_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='1.35e+00', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-28 06:04:48.118964', photon_index_error2='4.43', photon_index2='4.49', ts='0.14', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.36e-05', EG='0.67', time_epoch_completed='1632834288.12', return_code='0', job_id='198382', GAL2='0.96', EG2='0.54', return_code2='102', photon_flux_error2='7.55e-08', ts2='3.31', photon_index='2.48' WHERE bin_id='211' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:04:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 198382: <4FGL_J2207.6+0053_daily_bin211> in cluster <slac> Done

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

Your job looked like:

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

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

