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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin511
RA = 331.914, Dec = 0.8907
tmin = 371779201, tmax = 372038401
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='198851', job_status='RUN', time_executed='2021-09-28 05:54:00.304437', time_epoch_executed='1632833640.3' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198851/ft1_4FGL_J2207.6+0053_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198851/ft2_4FGL_J2207.6+0053_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198851/ft1_4FGL_J2207.6+0053_daily_bin511.fits outfile=/scratch/kocevski/198851/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin511.fits ra=331.914 dec=0.8907 rad=12.0 tmin=371779201.0 tmax=372038401.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.58
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198851/ft1_filtered_4FGL_J2207.6+0053_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/198851/ft2_4FGL_J2207.6+0053_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/198851/ltcube_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.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/198851/ft2_4FGL_J2207.6+0053_daily_bin511.fits
.....................!
real 12.46
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198851/ft1_filtered_4FGL_J2207.6+0053_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/198851/ft2_4FGL_J2207.6+0053_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/198851/ltcube_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.fits outfile=/scratch/kocevski/198851/expmap_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.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/198851/ltcube_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.fits
.....................!
real 190.07
user 185.20
sys 4.51

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/198851/ft1_filtered_4FGL_J2207.6+0053_daily_bin511.fits scfile=/scratch/kocevski/198851/ft2_4FGL_J2207.6+0053_daily_bin511.fits outfile=/scratch/kocevski/198851/cmap_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.038       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1311       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.957       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9865       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.428       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1994       1.0000         .10000E-03   10000.    
    19 'norm      '    6.8663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73858       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93399       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=   5552.758     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2627 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0763        .38045E-07** at limit **
   2  Prefactor     .10000E-03    58.035       -.36004E-06** at limit **
   3  Prefactor     .11936        3.2451       -.41345E-05    .94287E-03
   4  Prefactor     34.038        36.676        .51148E-06    .10567E-03
   5  Prefactor     .10001E-03    88.760       -.15073E-05** at limit **
   6  Prefactor     37.213        91.862        .67848E-05   -.78391E-04
   7  Prefactor     .10000E-03    39.182        .92682E-07** at limit **
   8  norm          1.1319        2.6851       -.15870E-05   -.15871E-02
   9  norm          .10000E-03    5.2617        .15839E-06** at limit **
  10  Prefactor     .10000E-03    3.5377        .35421E-07** at limit **
  11  Prefactor     3.1103        14.847        .20194E-06    .94872E-04
  12  Prefactor     34.956        24.325        .15398E-06    .13937E-03
  13  Prefactor     7.9856        13.621        .52758E-07    .12893E-03
  14  Prefactor     14.549        19.371       -.21720E-08    .10237E-03
  15  Prefactor     10.421        29.951       -.60217E-06   -.32515E-04
  16  Prefactor     .10000E-03    5.1222        .12414E-06** at limit **
  17  Prefactor     1.5722        31.281        .15292E-04    .80892E-04
  18  Prefactor     5.1989        4.7679        .13337E-07    .27458E-03
  19  norm          6.8662        4.7264        .30026E-06    .20443E-03
  20  Prefactor     .10000E-03    8.2376       -.12818E-06** at limit **
  21  Prefactor     .10001E-03    76.729        .98637E-06** at limit **
  22  Normalizat    .73879        .24457       -.81743E-06    .32945E-03
  23  Prefactor     .93387        .13000        .83666E-06    .71174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.119361
  Prefactor  = 34.0383
  Prefactor  = 0.000100011
  Prefactor  = 37.2129
  Prefactor  = 0.0001
  norm       = 1.13192
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11033
  Prefactor  = 34.9562
  Prefactor  = 7.9856
  Prefactor  = 14.549
  Prefactor  = 10.4206
  Prefactor  = 0.0001
  Prefactor  = 1.57221
  Prefactor  = 5.19894
  norm       = 6.8662
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 0.738794
  Prefactor  = 0.933872
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.758     FROM HESSE     STATUS=OK           368 CALLS     2995 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11936        8.7410        .15929E-02   -1.5639    
   4  Prefactor     34.038        36.411        .68685E-04   -1.4540    
   5  Prefactor     .10001E-03    89.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.213        92.304        .65675E-04   -1.4487    
   7  Prefactor     .10000E-03    39.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1319        2.7618        .14977E-03   -1.5495    
   9  norm          .10000E-03    5.2674        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5477        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1103        14.709        .22974E-03   -1.5355    
  12  Prefactor     34.956        24.322        .67779E-04   -1.4525    
  13  Prefactor     7.9856        13.582        .14188E-03   -1.5143    
  14  Prefactor     14.549        19.335        .10499E-03   -1.4945    
  15  Prefactor     10.421        29.930        .12408E-03   -1.5062    
  16  Prefactor     .10000E-03    5.1360        .16462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5722        39.685        .16971E-02   -1.5457    
  18  Prefactor     5.1989        4.7651        .14683E-03   -1.5252    
  19  norm          6.8662        4.7390        .64332E-03   -1.5184    
  20  Prefactor     .10000E-03    8.3953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    76.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .73879        .29205        .34613E-03   -1.0238    
  23  Prefactor     .93387        .15794        .17576E-03   -.94967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33832e-09
Minuit parameter uncertainties:
  1  2.08202e-05
  2  1.0409e-05
  3  2.04233
  4  36.4344
  5  0.00201392
  6  92.6608
  7  8.55691e-06
  8  2.76213
  9  2.69705e-05
  10  3.99904e-06
  11  13.5328
  12  24.3284
  13  13.5872
  14  19.3429
  15  29.9727
  16  2.04691e-05
  17  15.809
  18  4.76541
  19  4.73922
  20  5.17824e-05
  21  0.0016989
  22  0.292666
  23  0.158021
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.455e+01  1.934e+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.339e-01  1.580e-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.388e-01  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198851/likelihoodResults_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.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) = 5552.74837587
delta logL = 0.0100115126907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5552.74313345
delta logL = 0.015253937916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.956       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3265       1.0000          .0000       10.000    
     3 'Normalizat'    .74461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93133       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=   5552.743     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      217 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.932        867.44        .24317E-02   -.27514E-04
   2  Index         2.3278        5.8072        .18374        .64214E-04
   3  Normalizat    .74464        .93538E-01    .77901E-01   -.36181E-03
   4  Prefactor     .93149        .44929E-01    .45403E-01   -.80888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9322
  Index      = 2.32777
  Normalizat = 0.74464
  Prefactor  = 0.93149
 **********
 **   18 **HESSE 
 **********

 FCN=   5552.743     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.932        25.642        .97266E-04   -1.4885    
   2  Index         2.3278        .90261        .98099E-02   -.56385    
   3  Normalizat    .74464        .27720        .34487E-03   -1.0216    
   4  Prefactor     .93149        .15681        .17596E-03   -.95049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24209e-10
Minuit parameter uncertainties:
  1  25.6586
  2  0.909617
  3  0.27772
  4  0.156888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198851': 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) = 5552.74312929
delta logL = 0.0152580932099

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.693e+01  2.566e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.328e+00  9.096e-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.315e-01  1.569e-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.446e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/198851/cmap_HighResolution_371779201_372038401_4FGL_J2207.6+0053_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-28 06:04:35.680931', job_id='198851', GAL2='0.93', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632834275.68', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.53e-02', ts2='0.93', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='511' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 198851: <4FGL_J2207.6+0053_daily_bin511> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin511 331.914 0.8907 371779201 372038401 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            809 sec.

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

