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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin664
RA = 331.914, Dec = 0.8907
tmin = 411436801, tmax = 411696001
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='200150', job_status='RUN', time_executed='2021-09-28 05:58:11.079306', time_epoch_executed='1632833891.08' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200150/ft1_4FGL_J2207.6+0053_daily_bin664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200150/ft2_4FGL_J2207.6+0053_daily_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200150/ft1_4FGL_J2207.6+0053_daily_bin664.fits outfile=/scratch/kocevski/200150/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin664.fits ra=331.914 dec=0.8907 rad=12.0 tmin=411436801.0 tmax=411696001.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 6.70
user 6.44
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200150/ft1_filtered_4FGL_J2207.6+0053_daily_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/200150/ft2_4FGL_J2207.6+0053_daily_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/200150/ltcube_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.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/200150/ft2_4FGL_J2207.6+0053_daily_bin664.fits
.....................!
real 11.86
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200150/ft1_filtered_4FGL_J2207.6+0053_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/200150/ft2_4FGL_J2207.6+0053_daily_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/200150/ltcube_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.fits outfile=/scratch/kocevski/200150/expmap_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.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/200150/ltcube_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.fits
.....................!
real 190.28
user 185.96
sys 3.95

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/200150/ft1_filtered_4FGL_J2207.6+0053_daily_bin664.fits scfile=/scratch/kocevski/200150/ft2_4FGL_J2207.6+0053_daily_bin664.fits outfile=/scratch/kocevski/200150/cmap_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200150/ft1_filtered_4FGL_J2207.6+0053_daily_bin664.fits scfile=/scratch/kocevski/200150/ft2_4FGL_J2207.6+0053_daily_bin664.fits outfile=/scratch/kocevski/200150/cmap_HighResolution_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.353       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11415E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.423       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11967E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10513E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10538E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    64.225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3504       1.0000         .10000E-03   10000.    
    17 'Prefactor '    118.14       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0785       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.473       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58544       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72663       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=   1837.232     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2534 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.330        57.516        .13078E-04   -.32912E-06
   2  Prefactor     .10000E-03    26.279       -.28891E-05** at limit **
   3  Prefactor     .10000E-03    1.7307        .50233E-08** at limit **
   4  Prefactor     .10000E-03    98.762       -.72135E-05** at limit **
   5  Prefactor     39.031        90.946       -.96595E-05   -.11221E-05
   6  Prefactor     .10000E-03    75.149        .34665E-05** at limit **
   7  Prefactor     .10000E-03    49.702       -.77946E-05** at limit **
   8  norm          .10000E-03    5.2093        .42367E-09** at limit **
   9  norm          .10000E-03    24.791       -.10002E-05** at limit **
  10  Prefactor     35.885        26.361        .74535E-05    .90495E-05
  11  Prefactor     36.273        29.433        .15222E-05   -.35447E-05
  12  Prefactor     64.216        60.840       -.13606E-04   -.40459E-05
  13  Prefactor     .10000E-03    25.615        .36531E-05** at limit **
  14  Prefactor     .10000E-03    31.968        .77804E-06** at limit **
  15  Prefactor     .10000E-03    28.356       -.27173E-07** at limit **
  16  Prefactor     8.3498        18.261       -.30299E-05   -.78308E-03
  17  Prefactor     118.13        84.658       -.12708E-04   -.85084E-05
  18  Prefactor     .10000E-03    2.9097        .76111E-07** at limit **
  19  norm          4.0782        5.4742       -.60653E-07   -.89108E-04
  20  Prefactor     17.458        28.407        .17410E-04   -.48575E-05
  21  Prefactor     .10000E-03    50.586        .70171E-05** at limit **
  22  Normalizat    .58547        .39713        .41641E-05   -.36914E-04
  23  Prefactor     .72668        .20846       -.18125E-05    .62277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.8848
  Prefactor  = 36.273
  Prefactor  = 64.2161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.34979
  Prefactor  = 118.127
  Prefactor  = 0.0001
  norm       = 4.07822
  Prefactor  = 17.4576
  Prefactor  = 0.0001
  Normalizat = 0.585474
  Prefactor  = 0.726685
 **********
 **   18 **HESSE 
 **********

 FCN=   1837.232     FROM HESSE     STATUS=OK           364 CALLS     2898 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.330        57.350        .66470E-04   -1.4502    
   2  Prefactor     .10000E-03    26.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7330        .55059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    99.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.031        91.029        .63838E-04   -1.4458    
   6  Prefactor     .10000E-03    75.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.2857        .95493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    24.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.885        26.260        .66884E-04   -1.4509    
  11  Prefactor     36.273        29.478        .66542E-04   -1.4503    
  12  Prefactor     64.216        60.790        .50075E-04   -1.4104    
  13  Prefactor     .10000E-03    25.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3498        18.660        .69365E-03   -1.5130    
  17  Prefactor     118.13        84.638        .37021E-04   -1.3530    
  18  Prefactor     .10000E-03    2.9118        .71325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0782        5.4767        .11035E-03   -1.5304    
  20  Prefactor     17.458        28.189        .95814E-04   -1.4872    
  21  Prefactor     .10000E-03    50.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .58547        .46599        .35937E-03   -1.0860    
  23  Prefactor     .72668        .24760        .17842E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51001e-09
Minuit parameter uncertainties:
  1  57.4374
  2  5.12249e-06
  3  1.08596e-06
  4  0.00024435
  5  91.3557
  6  1.15273e-06
  7  0.000123352
  8  8.27842e-07
  9  6.28254e-06
  10  26.2688
  11  29.4901
  12  60.8484
  13  1.45051e-05
  14  5.35735e-05
  15  8.01041e-05
  16  18.6727
  17  84.7246
  18  1.33585e-05
  19  5.47741
  20  28.2109
  21  4.00163e-06
  22  0.46916
  23  0.247972
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  5.357e-05  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:  7.267e-01  2.480e-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.855e-01  4.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/200150/likelihoodResults_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.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) = 1837.23166808
delta logL = -0.000148499095985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1837.23152005
delta logL = -4.65498033009e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12227E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4131       1.0000          .0000       10.000    
     3 'Normalizat'    .58548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72669       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=   1837.232     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      237 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1659.6        .90712E-02** at limit **
   2  Index         2.4303        6.0908        .50000       -.53454E-05
   3  Normalizat    .58548        .72701E-01    .81138E-01    .88481E-05
   4  Prefactor     .72668        .40352E-01    .42755E-01   -.12795E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43034
  Normalizat = 0.585479
  Prefactor  = 0.726682
 **********
 **   18 **HESSE 
 **********

 FCN=   1837.232     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6892.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4303        6.2567        .50000       -.53976    
   3  Normalizat    .58548        .13577        .35936E-03   -1.0860    
   4  Prefactor     .72668        .75575E-01    .17842E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.89046e-09
Minuit parameter uncertainties:
  1  0.00114665
  2  51.6322
  3  0.135849
  4  0.075586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200150': 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) = 1837.23151966
delta logL = -7.16941030987e-08

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.147e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.430e+00  5.163e+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:  7.267e-01  7.559e-02  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.855e-01  1.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/200150/cmap_HighResolution_411436801_411696001_4FGL_J2207.6+0053_daily_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-09-28 06:05:20.692824', job_id='200150', GAL2='0.73', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632834320.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-7.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='664' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 200150: <4FGL_J2207.6+0053_daily_bin664> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin664> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:25 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55:27 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:55:27 2021
Terminated at Tue Sep 28 06:05:21 2021
Results reported at Tue Sep 28 06:05:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin664 331.914 0.8907 411436801 411696001 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 :                                   428.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             206.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            596 sec.

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

