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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin647
RA = 331.914, Dec = 0.8907
tmin = 407030401, tmax = 407289601
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='200108', job_status='RUN', time_executed='2021-09-28 05:58:43.767707', time_epoch_executed='1632833923.77' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200108/ft1_4FGL_J2207.6+0053_daily_bin647.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200108/ft2_4FGL_J2207.6+0053_daily_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200108/ft1_4FGL_J2207.6+0053_daily_bin647.fits outfile=/scratch/kocevski/200108/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin647.fits ra=331.914 dec=0.8907 rad=12.0 tmin=407030401.0 tmax=407289601.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200108/ft1_filtered_4FGL_J2207.6+0053_daily_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/200108/ft2_4FGL_J2207.6+0053_daily_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/200108/ltcube_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.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/200108/ft2_4FGL_J2207.6+0053_daily_bin647.fits
.....................!
real 11.89
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200108/ft1_filtered_4FGL_J2207.6+0053_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/200108/ft2_4FGL_J2207.6+0053_daily_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/200108/ltcube_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.fits outfile=/scratch/kocevski/200108/expmap_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.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/200108/ltcube_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.fits
.....................!
real 191.55
user 185.66
sys 5.49

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/200108/ft1_filtered_4FGL_J2207.6+0053_daily_bin647.fits scfile=/scratch/kocevski/200108/ft2_4FGL_J2207.6+0053_daily_bin647.fits outfile=/scratch/kocevski/200108/cmap_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.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/200108/ft1_filtered_4FGL_J2207.6+0053_daily_bin647.fits scfile=/scratch/kocevski/200108/ft2_4FGL_J2207.6+0053_daily_bin647.fits outfile=/scratch/kocevski/200108/cmap_HighResolution_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2114       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17500E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.014       1.0000         .10000E-03   10000.    
     8 'norm      '    6.8306       1.0000         .10000E-03   10000.    
     9 'norm      '    19.870       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8852       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.611       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11601E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.2799       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89448       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88764       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=   7087.476     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2606 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.774       -.23465E-06** at limit **
   2  Prefactor     .10000E-03    18.758        .34935E-07** at limit **
   3  Prefactor     1.2121        2.2164       -.97307E-07   -.87900E-04
   4  Prefactor     .10440E-03    27.440       -.58041E-05** at limit **
   5  Prefactor     .10000E-03    93.444       -.86995E-05** at limit **
   6  Prefactor     .10000E-03    160.96        .49025E-04** at limit **
   7  Prefactor     15.023        42.594        .68875E-05    .65773E-04
   8  norm          6.8306        3.2157       -.11395E-06   -.68457E-03
   9  norm          19.869        22.212       -.87664E-06    .22584E-04
  10  Prefactor     .10000E-03    3.2711       -.16338E-06** at limit **
  11  Prefactor     .10000E-03    16.620       -.13431E-05** at limit **
  12  Prefactor     8.8857        15.640       -.25875E-06   -.11029E-04
  13  Prefactor     .10000E-03    6.6135        .24133E-07** at limit **
  14  Prefactor     19.610        19.838       -.16366E-06    .47083E-04
  15  Prefactor     .10000E-03    16.593        .14651E-05** at limit **
  16  Prefactor     .10000E-03    11.152        .12819E-06** at limit **
  17  Prefactor     .10000E-03    4.2358       -.12173E-07** at limit **
  18  Prefactor     .10000E-03    2.1092        .52154E-08** at limit **
  19  norm          5.2804        4.1877       -.14773E-06   -.35322E-03
  20  Prefactor     .10000E-03    2.1499       -.67880E-07** at limit **
  21  Prefactor     .10000E-03    44.235        .42951E-06** at limit **
  22  Normalizat    .89450        .20630        .30321E-06    .33930E-03
  23  Prefactor     .88765        .10947        .58869E-07    .55095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21212
  Prefactor  = 0.000104404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0235
  norm       = 6.83063
  norm       = 19.8694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8857
  Prefactor  = 0.0001
  Prefactor  = 19.6099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.28041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.894498
  Prefactor  = 0.887654
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.476     FROM HESSE     STATUS=OK           368 CALLS     2974 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2121        2.1301        .15511E-03   -1.5488    
   4  Prefactor     .10440E-03    198.33        .78077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    95.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    159.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.023        42.399        .10337E-03   -1.4933    
   8  norm          6.8306        3.2184        .95760E-04   -1.5185    
   9  norm          19.869        22.159        .89852E-04   -1.4816    
  10  Prefactor     .10000E-03    3.2810        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8857        15.629        .13447E-03   -1.5112    
  13  Prefactor     .10000E-03    6.6245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.610        19.851        .90443E-04   -1.4822    
  15  Prefactor     .10000E-03    16.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2368        .16922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.3257        .22852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.2804        4.1579        .14410E-03   -1.5248    
  20  Prefactor     .10000E-03    2.1513        .12056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89450        .24097        .32207E-03   -.96654    
  23  Prefactor     .88765        .13050        .18110E-03   -.96574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07382e-08
Minuit parameter uncertainties:
  1  1.17964e-06
  2  2.64298e-05
  3  2.13028
  4  0.059305
  5  0.000332497
  6  0.000130801
  7  42.4846
  8  3.21843
  9  22.1677
  10  1.49225e-05
  11  1.97213e-05
  12  15.6363
  13  2.05137e-07
  14  19.8578
  15  4.39775e-06
  16  5.12441e-06
  17  2.82146e-07
  18  2.07524e-05
  19  4.15814
  20  1.40664e-07
  21  1.02406e-06
  22  0.241265
  23  0.130546
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.961e+01  1.986e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  8.877e-01  1.305e-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.945e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 331.914 0.891
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/200108/likelihoodResults_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.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) = 7087.45695773
delta logL = 0.0194697694651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7087.4354629
delta logL = 0.0409646001026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.363       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7452       1.0000          .0000       10.000    
     3 'Normalizat'    .88234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89284       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7087.435     FROM MIGRAD    STATUS=FAILED        99 CALLS      264 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.341        34.068        .52843E-03   -.41264E-04
   2  Index         2.7468        1.3652        .80089E-02    .55577E-03
   3  Normalizat    .88246        .23932        .32407E-03   -.69741E-04
   4  Prefactor     .89279        .13295        .18063E-03   -.11495E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7087.435     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      336 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.341        34.068        .26310E-03   -1.4950    
   2  Index         2.7468        1.3652        .80754E-03   -.46749    
   3  Normalizat    .88246        .23932        .32950E-03   -.97079    
   4  Prefactor     .89279        .13295        .16575E-03   -.96394    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7087.435     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      373 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.342        25.410        .21137E-04    .80678E-05
   2  Index         2.7468        1.0236        .16018E-02   -.19305E-05
   3  Normalizat    .88246        .23763        .12963E-04    .70162E-06
   4  Prefactor     .89279        .13185        .36127E-04    .75525E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3415
  Index      = 2.74678
  Normalizat = 0.882458
  Prefactor  = 0.892786
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.435     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.342        24.411        .42274E-05   -1.4950    
   2  Index         2.7468        .98349        .64071E-04   -.46749    
   3  Normalizat    .88246        .23751        .25926E-05   -.97079    
   4  Prefactor     .89279        .13176        .72254E-05   -.96394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.205e-12
Minuit parameter uncertainties:
  1  24.4277
  2  0.991628
  3  0.237791
  4  0.13181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200108': 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) = 7087.4354608
delta logL = 0.040966696195

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.434e+01  2.443e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.747e+00  9.916e-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:  8.928e-01  1.318e-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.825e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 331.914 0.891
Photon Index (Free Index): 2.75 +/- 0.99
Photon Flux (Free Index): 5.52e-08 +/- 5.76e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.32e-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/200108/cmap_HighResolution_407030401_407289601_4FGL_J2207.6+0053_daily_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.28e-05', photon_flux_error='4.82e-08', dlogl='4.10e-02', energy_flux='1.41e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-09-28 06:10:37.027234', photon_index_error2='0.99', photon_index2='2.75', ts='1.38', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.32e-05', EG='0.89', time_epoch_completed='1632834637.03', return_code='0', job_id='200108', GAL2='0.89', EG2='0.88', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.76e-08', ts2='1.49', photon_index='2.48' WHERE bin_id='647' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:10:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 200108: <4FGL_J2207.6+0053_daily_bin647> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin647 331.914 0.8907 407030401 407289601 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

