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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin897
RA = 331.914, Dec = 0.8907
tmin = 471830401, tmax = 472089601
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='202068', job_status='RUN', time_executed='2021-09-28 06:03:16.677341', time_epoch_executed='1632834196.68' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202068

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202068/ft1_4FGL_J2207.6+0053_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202068/ft2_4FGL_J2207.6+0053_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202068/ft1_4FGL_J2207.6+0053_daily_bin897.fits outfile=/scratch/kocevski/202068/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin897.fits ra=331.914 dec=0.8907 rad=12.0 tmin=471830401.0 tmax=472089601.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.71
user 3.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202068/ft1_filtered_4FGL_J2207.6+0053_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/202068/ft2_4FGL_J2207.6+0053_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/202068/ltcube_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.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/202068/ft2_4FGL_J2207.6+0053_daily_bin897.fits
.....................!
real 12.27
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202068/ft1_filtered_4FGL_J2207.6+0053_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/202068/ft2_4FGL_J2207.6+0053_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/202068/ltcube_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.fits outfile=/scratch/kocevski/202068/expmap_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.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/202068/ltcube_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.fits
.....................!
real 191.69
user 185.62
sys 5.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/202068/ft1_filtered_4FGL_J2207.6+0053_daily_bin897.fits scfile=/scratch/kocevski/202068/ft2_4FGL_J2207.6+0053_daily_bin897.fits outfile=/scratch/kocevski/202068/cmap_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202068/ft1_filtered_4FGL_J2207.6+0053_daily_bin897.fits scfile=/scratch/kocevski/202068/ft2_4FGL_J2207.6+0053_daily_bin897.fits outfile=/scratch/kocevski/202068/cmap_HighResolution_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.145       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84656E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.750       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.188       1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.419       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4451       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12102       1.0000         .10000E-03   10000.    
    19 'norm      '    29.222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    158.21       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87224       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=   6851.623     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     3355 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.144        36.060        .59024E-04    .92454E-05
   2  Prefactor     10.405        35.579        .12415E-03    .17399E-05
   3  Prefactor     2.4178        2.3819        .11614E-03    .18599E-04
   4  Prefactor     10.698        38.978        .12243E-03    .12629E-04
   5  Prefactor     .10000E-03    33.172        .18142E-02** at limit **
   6  Prefactor     .10000E-03    19.981        .18142E-02** at limit **
   7  Prefactor     .10014E-03    70.389        .16201    ** at limit **
   8  norm          .10000E-03    .53067        .58765E-03** at limit **
   9  norm          .10000E-03    17.312        .18142E-02** at limit **
  10  Prefactor     3.4338        10.916        .21768E-03    .43453E-04
  11  Prefactor     13.750        15.188        .10802E-03    .49888E-04
  12  Prefactor     21.171        24.714        .87015E-04    .13196E-04
  13  Prefactor     48.268        27.945        .57718E-04    .89266E-04
  14  Prefactor     45.404        33.916        .59492E-04    .64973E-04
  15  Prefactor     .10000E-03    66.850        .18142E-02** at limit **
  16  Prefactor     1.4557        32.667        .17933E-02    .11122E-03
  17  Prefactor     .10000E-03    28.818        .18142E-02** at limit **
  18  Prefactor     .11964        93.152        .27398E-02    .39161E-03
  19  norm          29.227        9.3548        .74114E-04    .80707E-03
  20  Prefactor     .10000E-03    6.9144        .18142E-02** at limit **
  21  Prefactor     157.94        186.93        .16028E-03    .82675E-04
  22  Normalizat    1.0976        .30805        .34938E-03    .15727E-03
  23  Prefactor     .87226        .15261        .20730E-03    .62600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.1438
  Prefactor  = 10.4053
  Prefactor  = 2.41781
  Prefactor  = 10.6981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100137
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.43376
  Prefactor  = 13.7504
  Prefactor  = 21.171
  Prefactor  = 48.2684
  Prefactor  = 45.4039
  Prefactor  = 0.0001
  Prefactor  = 1.45574
  Prefactor  = 0.0001
  Prefactor  = 0.119636
  norm       = 29.2274
  Prefactor  = 0.0001
  Prefactor  = 157.944
  Normalizat = 1.09763
  Prefactor  = 0.872257
 **********
 **   18 **HESSE 
 **********

 FCN=   6851.623     FROM HESSE     STATUS=OK           360 CALLS     3715 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.144        36.058        .11805E-04   -1.4348    
   2  Prefactor     10.405        35.582        .49658E-05   -1.5063    
   3  Prefactor     2.4178        2.3815        .46455E-05   -1.5397    
   4  Prefactor     10.698        38.964        .48972E-05   -1.5054    
   5  Prefactor     .10000E-03    33.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10014E-03    77.270        .15331       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .53067        .11753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4338        10.952        .87072E-05   -1.5337    
  11  Prefactor     13.750        15.188        .43207E-05   -1.4966    
  12  Prefactor     21.171        24.716        .34806E-05   -1.4787    
  13  Prefactor     48.268        27.942        .11544E-04   -1.4317    
  14  Prefactor     45.404        33.922        .23797E-05   -1.4359    
  15  Prefactor     .10000E-03    66.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4557        29.382        .71731E-04   -1.5467    
  17  Prefactor     .10000E-03    28.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11964        82.079        .10959E-03   -1.5639    
  19  norm          29.227        9.3407        .14823E-04   -1.4626    
  20  Prefactor     .10000E-03    6.9170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     157.94        184.62        .32056E-04   -1.3188    
  22  Normalizat    1.0976        .30797        .13975E-04   -.89828    
  23  Prefactor     .87226        .15276        .41461E-04   -.97117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91787e-09
Minuit parameter uncertainties:
  1  36.0753
  2  35.6544
  3  2.38161
  4  39.0568
  5  1.1768e-05
  6  3.99409e-07
  7  0.00651512
  8  1.21464e-06
  9  2.35107e-05
  10  10.9582
  11  15.1923
  12  24.7282
  13  27.9491
  14  33.9364
  15  0.000161552
  16  13.0871
  17  0.000117857
  18  6.27328
  19  9.34113
  20  4.73812e-06
  21  185.306
  22  0.308478
  23  0.152836
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  4.540e+01  3.394e+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.723e-01  1.528e-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:  1.098e+00  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.13
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 8.24e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 2.44e-05

TS (Fixed Index): 3.13
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 2.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202068/likelihoodResults_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.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) = 6849.65869
delta logL = 1.96413592778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6849.60662374
delta logL = 2.01620218724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1030       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9356       1.0000          .0000       10.000    
     3 'Normalizat'    .95042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92928       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=   6849.607     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      257 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1030        39.293        .40629E-02    .14041E-02
   2  Index         3.9361        2.2528        .78119E-01    .20190E-03
   3  Normalizat    .94983        .10062        .83923E-01    .23665E-04
   4  Prefactor     .92960        .52053E-01    .45377E-01    .45884E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10301
  Index      = 3.93612
  Normalizat = 0.949828
  Prefactor  = 0.929595
 **********
 **   18 **HESSE 
 **********

 FCN=   6849.607     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1030        54.769        .83901E-04   -1.5214    
   2  Index         3.9361        2.8198        .31964E-02   -.21441    
   3  Normalizat    .94983        .28830        .37155E-03   -.94731    
   4  Prefactor     .92960        .15443        .20139E-03   -.95114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1281e-07
Minuit parameter uncertainties:
  1  36.6096
  2  3.00591
  3  0.288767
  4  0.154499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202068': 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) = 6849.60661938
delta logL = 2.01620654804

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  6.103e+00  3.661e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.936e+00  3.006e+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.296e-01  1.545e-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:  9.498e-01  2.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.83
Ra Dec: 331.914 0.891
Photon Index (Free Index): 3.94 +/- 3.01
Photon Flux (Free Index): 2.35e-07 +/- 1.07e-07
Energy Flux (Free Index): 3.55e-05 +/- 2.14e-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/202068/cmap_HighResolution_471830401_472089601_4FGL_J2207.6+0053_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.55e-05', photon_flux_error='8.24e-08', dlogl='2.02e+00', energy_flux='3.26e-05', photon_flux2='2.35e-07', job_status='DONE', time_completed='2021-09-28 06:16:05.181676', photon_index_error2='3.01', photon_index2='3.94', ts='3.13', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.46e-07', energy_flux_error2='2.14e-05', EG='1.10', time_epoch_completed='1632834965.18', return_code='0', job_id='202068', GAL2='0.93', EG2='0.95', return_code2='102', energy_flux_error='2.44e-05', photon_flux_error2='1.07e-07', ts2='7.83', photon_index='2.48' WHERE bin_id='897' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:16:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 202068: <4FGL_J2207.6+0053_daily_bin897> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin897> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 06:00:17 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:00:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:00:18 2021
Terminated at Tue Sep 28 06:16:05 2021
Results reported at Tue Sep 28 06:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin897 331.914 0.8907 471830401 472089601 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            948 sec.

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

