/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin252
RA = 331.914, Dec = 0.8907
tmin = 304646401, tmax = 304905601
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='198443', job_status='RUN', time_executed='2021-09-28 05:51:51.731283', time_epoch_executed='1632833511.73' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198443

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198443/ft1_4FGL_J2207.6+0053_daily_bin252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198443/ft2_4FGL_J2207.6+0053_daily_bin252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198443/ft1_4FGL_J2207.6+0053_daily_bin252.fits outfile=/scratch/kocevski/198443/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin252.fits ra=331.914 dec=0.8907 rad=12.0 tmin=304646401.0 tmax=304905601.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.45
user 3.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198443/ft2_4FGL_J2207.6+0053_daily_bin252.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/198443/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin252.fits evtable="EVENTS" outfile="/scratch/kocevski/198443/ft1_filtered_4FGL_J2207.6+0053_daily_bin252.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.45
user 0.32
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198443/ft1_filtered_4FGL_J2207.6+0053_daily_bin252.fits" evtable="EVENTS" scfile=/scratch/kocevski/198443/ft2_4FGL_J2207.6+0053_daily_bin252.fits sctable="SC_DATA" outfile=/scratch/kocevski/198443/ltcube_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.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/198443/ft2_4FGL_J2207.6+0053_daily_bin252.fits
.....................!
real 11.92
user 11.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198443/ft1_filtered_4FGL_J2207.6+0053_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/198443/ft2_4FGL_J2207.6+0053_daily_bin252.fits sctable="SC_DATA" expcube=/scratch/kocevski/198443/ltcube_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.fits outfile=/scratch/kocevski/198443/expmap_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.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/198443/ltcube_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.fits
.....................!
real 189.80
user 184.81
sys 4.66

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/198443/ft1_filtered_4FGL_J2207.6+0053_daily_bin252.fits scfile=/scratch/kocevski/198443/ft2_4FGL_J2207.6+0053_daily_bin252.fits outfile=/scratch/kocevski/198443/cmap_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198443/ft1_filtered_4FGL_J2207.6+0053_daily_bin252.fits scfile=/scratch/kocevski/198443/ft2_4FGL_J2207.6+0053_daily_bin252.fits outfile=/scratch/kocevski/198443/cmap_HighResolution_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.089       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.496       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5234       1.0000         .10000E-03   10000.    
     9 'norm      '    9.3179       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4304       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.608       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7614       1.0000         .10000E-03   10000.    
    19 'norm      '    21.428       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91147       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75466       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=   7426.552     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2595 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.573       -.11143E-06** at limit **
   2  Prefactor     34.086        33.635        .40784E-06    .13495E-04
   3  Prefactor     .79832        2.0603       -.17778E-07   -.72147E-04
   4  Prefactor     52.990        34.129        .39655E-06    .12740E-04
   5  Prefactor     .10000E-03    8.3334       -.14405E-07** at limit **
   6  Prefactor     54.610        99.166       -.14141E-04   -.97766E-05
   7  Prefactor     43.505        50.423       -.97277E-06   -.27336E-04
   8  norm          1.5187        2.9716        .17730E-05   -.14363E-03
   9  norm          9.3172        13.070       -.43113E-06   -.62101E-04
  10  Prefactor     6.4290        8.5396        .21619E-06   -.17416E-04
  11  Prefactor     .10000E-03    3.0241       -.29159E-07** at limit **
  12  Prefactor     19.258        17.670        .34897E-07   -.15367E-04
  13  Prefactor     18.607        14.389        .46157E-07    .37274E-05
  14  Prefactor     .10000E-03    49.207       -.87827E-07** at limit **
  15  Prefactor     .10000E-03    9.0262       -.59485E-07** at limit **
  16  Prefactor     2.4364        8.9569        .45965E-05    .54033E-05
  17  Prefactor     .10000E-03    4.4701       -.25173E-07** at limit **
  18  Prefactor     4.7610        3.5086        .14155E-07    .18766E-04
  19  norm          21.427        5.0052        .10707E-07    .14518E-04
  20  Prefactor     .10000E-03    2.4578       -.19845E-07** at limit **
  21  Prefactor     .10000E-03    104.28       -.73849E-06** at limit **
  22  Normalizat    .91173        .18940       -.30049E-06   -.24934E-04
  23  Prefactor     .75453        .10071       -.31364E-06   -.67351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.0863
  Prefactor  = 0.798317
  Prefactor  = 52.9897
  Prefactor  = 0.0001
  Prefactor  = 54.61
  Prefactor  = 43.5047
  norm       = 1.51872
  norm       = 9.31717
  Prefactor  = 6.429
  Prefactor  = 0.0001
  Prefactor  = 19.2583
  Prefactor  = 18.6068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43639
  Prefactor  = 0.0001
  Prefactor  = 4.76103
  norm       = 21.4274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.911726
  Prefactor  = 0.754531
 **********
 **   18 **HESSE 
 **********

 FCN=   7426.552     FROM HESSE     STATUS=OK           376 CALLS     2971 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.086        33.139        .68634E-04   -1.4540    
   3  Prefactor     .79832        1.9638        .17232E-03   -1.5529    
   4  Prefactor     52.990        33.680        .55096E-04   -1.4251    
   5  Prefactor     .10000E-03    8.3355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.610        99.087        .27177E-03   -1.4229    
   7  Prefactor     43.505        50.215        .60787E-04   -1.4388    
   8  norm          1.5187        2.9542        .13834E-03   -1.5461    
   9  norm          9.3172        13.029        .13129E-03   -1.5097    
  10  Prefactor     6.4290        8.4957        .15827E-03   -1.5201    
  11  Prefactor     .10000E-03    3.0321        .14634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.258        17.675        .91265E-04   -1.4830    
  13  Prefactor     18.607        14.356        .92848E-04   -1.4845    
  14  Prefactor     .10000E-03    50.585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4364        8.9832        .13105E-02   -1.5396    
  17  Prefactor     .10000E-03    4.4818        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7610        3.4991        .63780E-03   -1.5272    
  19  norm          21.427        5.0191        .86527E-04   -1.4782    
  20  Prefactor     .10000E-03    2.4665        .13194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    104.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91173        .22167        .30558E-03   -.96049    
  23  Prefactor     .75453        .11778        .18544E-03   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13654e-11
Minuit parameter uncertainties:
  1  5.64786e-06
  2  33.1573
  3  1.96394
  4  33.692
  5  4.07576e-07
  6  99.3882
  7  50.2641
  8  2.95448
  9  13.0334
  10  8.49726
  11  1.16567e-06
  12  17.68
  13  14.3587
  14  8.49962e-05
  15  2.86572e-06
  16  8.98816
  17  7.30203e-07
  18  3.49926
  19  5.01917
  20  2.09259e-07
  21  8.00217e-05
  22  0.221891
  23  0.117814
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  8.500e-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.545e-01  1.178e-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.117e-01  2.219e-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: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198443/likelihoodResults_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.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) = 7426.55237034
delta logL = -9.42532506087e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7426.55227653
delta logL = -4.48517312179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4240       1.0000          .0000       10.000    
     3 'Normalizat'    .91173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75454       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=   7426.552     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      257 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    3.5185        .13179    ** at limit **
   2  Index         2.5409        2.8161        .50000       -.37067E-04
   3  Normalizat    .91173        .32670E-02    .69070E-01   -.40595E-03
   4  Prefactor     .75453        .18300E-02    .43123E-01   -.78715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010031
  Index      = 2.54094
  Normalizat = 0.911725
  Prefactor  = 0.75453
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    1450.7        .44949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5409        8.7274        .50000       -.51417    
   3  Normalizat    .91173        .19621E-01    .30558E-03   -.96049    
   4  Prefactor     .75453        .11001E-01    .18544E-03   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49635e-07
Minuit parameter uncertainties:
  1  0.0434789
  2  18.0986
  3  0.019621
  4  0.0110011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198443': 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) = 7426.55227564
delta logL = 4.49961589766e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.003e-04  4.348e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.541e+00  1.810e+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.545e-01  1.100e-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:  9.117e-01  1.962e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/198443/cmap_HighResolution_304646401_304905601_4FGL_J2207.6+0053_daily_bin252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-28 06:04:14.053484', job_id='198443', GAL2='0.75', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632834254.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='252' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:04:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 198443: <4FGL_J2207.6+0053_daily_bin252> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin252> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:30 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:50:32 2021
Terminated at Tue Sep 28 06:04:14 2021
Results reported at Tue Sep 28 06:04:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin252 331.914 0.8907 304646401 304905601 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 :                                   729.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

