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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin1475
RA = 331.914, Dec = 0.8907
tmin = 621648001, tmax = 621907201
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='204564', job_status='RUN', time_executed='2021-09-28 06:06:16.704186', time_epoch_executed='1632834376.7' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204564

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204564/ft1_4FGL_J2207.6+0053_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204564/ft2_4FGL_J2207.6+0053_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204564/ft1_4FGL_J2207.6+0053_daily_bin1475.fits outfile=/scratch/kocevski/204564/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin1475.fits ra=331.914 dec=0.8907 rad=12.0 tmin=621648001.0 tmax=621907201.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 5.40
user 5.04
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204564/ft1_filtered_4FGL_J2207.6+0053_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/204564/ft2_4FGL_J2207.6+0053_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/204564/ltcube_621648001_621907201_4FGL_J2207.6+0053_daily_bin1475.fits outfile=/scratch/kocevski/204564/expmap_621648001_621907201_4FGL_J2207.6+0053_daily_bin1475.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/204564/ltcube_621648001_621907201_4FGL_J2207.6+0053_daily_bin1475.fits
.....................!
real 190.41
user 185.33
sys 4.65

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/204564/ft1_filtered_4FGL_J2207.6+0053_daily_bin1475.fits scfile=/scratch/kocevski/204564/ft2_4FGL_J2207.6+0053_daily_bin1475.fits outfile=/scratch/kocevski/204564/cmap_621648001_621907201_4FGL_J2207.6+0053_daily_bin1475.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204564/ft1_filtered_4FGL_J2207.6+0053_daily_bin1475.fits scfile=/scratch/kocevski/204564/ft2_4FGL_J2207.6+0053_daily_bin1475.fits outfile=/scratch/kocevski/204564/cmap_HighResolution_621648001_621907201_4FGL_J2207.6+0053_daily_bin1475.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.860       1.0000         .10000E-03   10000.    
     8 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12550E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.148       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .60250E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4126       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91777       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97522       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=   7559.947     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2606 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.052       -.30023E-06** at limit **
   2  Prefactor     .10000E-03    7.3345       -.34400E-07** at limit **
   3  Prefactor     1.9602        1.5257        .64276E-07   -.18061E-04
   4  Prefactor     .10000E-03    10.626       -.61213E-07** at limit **
   5  Prefactor     22.708        21.585        .49684E-07   -.10164E-04
   6  Prefactor     33.902        67.661       -.29239E-05   -.30552E-04
   7  Prefactor     23.879        53.145       -.57907E-06   -.32156E-04
   8  norm          .10000E-03    1.4673        .46936E-05** at limit **
   9  norm          .10000E-03    4.2105        .23749E-06** at limit **
  10  Prefactor     8.2219        9.8887        .27399E-06   -.17097E-03
  11  Prefactor     .10000E-03    3.3540       -.30983E-07** at limit **
  12  Prefactor     .12828E-01    15.199        .23016E-05   -.39382E-03
  13  Prefactor     17.136        16.243        .15773E-06    .91164E-05
  14  Prefactor     5.5890        19.802        .31087E-06   -.24569E-04
  15  Prefactor     .10000E-03    24.966        .11141E-06** at limit **
  16  Prefactor     .10002E-03    6.0285       -.17773E-05** at limit **
  17  Prefactor     .10000E-03    14.630        .16205E-06** at limit **
  18  Prefactor     1.4098        4.1313        .19419E-05    .40204E-03
  19  norm          6.1914        3.6370       -.55787E-07    .95899E-04
  20  Prefactor     4.6301        5.8410        .95444E-07   -.43753E-05
  21  Prefactor     .10000E-03    55.904       -.20056E-06** at limit **
  22  Normalizat    .91794        .20151        .57631E-06   -.23568E-03
  23  Prefactor     .97514        .11040       -.81734E-06   -.27796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9602
  Prefactor  = 0.0001
  Prefactor  = 22.7077
  Prefactor  = 33.9017
  Prefactor  = 23.8789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.22189
  Prefactor  = 0.0001
  Prefactor  = 0.0128278
  Prefactor  = 17.136
  Prefactor  = 5.58903
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 1.40983
  norm       = 6.19141
  Prefactor  = 4.63007
  Prefactor  = 0.0001
  Normalizat = 0.917936
  Prefactor  = 0.975144
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.947     FROM HESSE     STATUS=OK           380 CALLS     2986 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9602        1.5165        .91543E-04   -1.5428    
   4  Prefactor     .10000E-03    10.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.708        21.587        .84052E-04   -1.4755    
   6  Prefactor     33.902        67.616        .34468E-03   -1.4543    
   7  Prefactor     23.879        52.827        .82005E-04   -1.4730    
   8  norm          .10000E-03    1.4621        .20110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2133        .17423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2219        9.8207        .13981E-03   -1.5134    
  11  Prefactor     .10000E-03    3.3674        .15548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12828E-01    18.474        .93657E-01   -1.5685    
  13  Prefactor     17.136        16.106        .96719E-04   -1.4880    
  14  Prefactor     5.5890        19.632        .17004E-03   -1.5235    
  15  Prefactor     .10000E-03    25.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    25.837        .38713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4098        3.9880        .26808E-03   -1.5470    
  19  norm          6.1914        3.6274        .11917E-03   -1.5210    
  20  Prefactor     4.6301        5.8388        .18705E-03   -1.5278    
  21  Prefactor     .10000E-03    55.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91794        .23862        .32155E-03   -.95833    
  23  Prefactor     .97514        .13168        .18128E-03   -.93563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85808e-09
Minuit parameter uncertainties:
  1  0.000121356
  2  8.2504e-07
  3  1.51656
  4  1.04733e-05
  5  21.594
  6  67.7694
  7  52.9307
  8  6.7561e-06
  9  1.5222e-06
  10  9.82265
  11  4.99741e-07
  12  0.9701
  13  16.1104
  14  19.6551
  15  7.90995e-05
  16  0.00144663
  17  6.9888e-05
  18  3.98877
  19  3.62753
  20  5.83948
  21  2.17542e-05
  22  0.238895
  23  0.131724
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  5.589e+00  1.966e+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.751e-01  1.317e-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.179e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204564/likelihoodResults_621648001_621907201_4FGL_J2207.6+0053_daily_bin1475.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) = 7558.92382977
delta logL = 1.02357575578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7558.91646727
delta logL = 1.03093825626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80587       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4682       1.0000          .0000       10.000    
     3 'Normalizat'    .81727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       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=   7558.916     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      266 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80063        7.8430        .12084E-01    .26067E-04
   2  Index         4.4710        2.3616        .98909E-01    .10129E-03
   3  Normalizat    .81743        .46691E-01    .76485E-01   -.74703E-04
   4  Prefactor     1.0098        .27141E-01    .43352E-01   -.17950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.800629
  Index      = 4.471
  Normalizat = 0.817431
  Prefactor  = 1.00977
 **********
 **   18 **HESSE 
 **********

 FCN=   7558.916     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80063        19.823        .54761E-04   -1.5529    
   2  Index         4.4710        4.0741        .48373E-02   -.10600    
   3  Normalizat    .81743        .20056        .33854E-03   -.99425    
   4  Prefactor     1.0098        .11437        .17835E-03   -.92405    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.252e-09
Minuit parameter uncertainties:
  1  7.97011
  2  4.77502
  3  0.200746
  4  0.114401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204564': 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) = 7558.91646522
delta logL = 1.03094030672

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  8.006e-01  7.970e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  4.471e+00  4.775e+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:  1.010e+00  1.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.174e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 331.914 0.891
Photon Index (Free Index): 4.47 +/- 4.78
Photon Flux (Free Index): 9.27e-08 +/- 6.70e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.18e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='1.03e+00', photon_flux2='9.27e-08', job_status='DONE', time_completed='2021-09-28 06:18:52.712996', photon_index_error2='4.78', photon_index2='4.47', ts='0.12', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.18e-05', EG='0.92', time_epoch_completed='1632835132.71', return_code='0', job_id='204564', GAL2='1.01', EG2='0.82', return_code2='102', photon_flux_error2='6.70e-08', ts2='2.55', photon_index='2.48' WHERE bin_id='1475' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:18:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 204564: <4FGL_J2207.6+0053_daily_bin1475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin1475 331.914 0.8907 621648001 621907201 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 :                                   748.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            771 sec.

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

