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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin714
RA = 331.914, Dec = 0.8907
tmin = 424396801, tmax = 424656001
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='200224', job_status='RUN', time_executed='2021-09-28 05:58:13.912243', time_epoch_executed='1632833893.91' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200224/ft1_4FGL_J2207.6+0053_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200224/ft2_4FGL_J2207.6+0053_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200224/ft1_4FGL_J2207.6+0053_daily_bin714.fits outfile=/scratch/kocevski/200224/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin714.fits ra=331.914 dec=0.8907 rad=12.0 tmin=424396801.0 tmax=424656001.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.07
user 4.72
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200224/ft1_filtered_4FGL_J2207.6+0053_daily_bin714.fits" evtable="EVENTS" scfile=/scratch/kocevski/200224/ft2_4FGL_J2207.6+0053_daily_bin714.fits sctable="SC_DATA" outfile=/scratch/kocevski/200224/ltcube_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.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/200224/ft2_4FGL_J2207.6+0053_daily_bin714.fits
.....................!
real 12.16
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200224/ft1_filtered_4FGL_J2207.6+0053_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/200224/ft2_4FGL_J2207.6+0053_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/200224/ltcube_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.fits outfile=/scratch/kocevski/200224/expmap_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.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/200224/ltcube_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.fits
.....................!
real 189.99
user 185.48
sys 4.06

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/200224/ft1_filtered_4FGL_J2207.6+0053_daily_bin714.fits scfile=/scratch/kocevski/200224/ft2_4FGL_J2207.6+0053_daily_bin714.fits outfile=/scratch/kocevski/200224/cmap_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200224/ft1_filtered_4FGL_J2207.6+0053_daily_bin714.fits scfile=/scratch/kocevski/200224/ft2_4FGL_J2207.6+0053_daily_bin714.fits outfile=/scratch/kocevski/200224/cmap_HighResolution_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.724       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0054       1.0000         .10000E-03   10000.    
     9 'norm      '    15.025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28998E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39294E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.390       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80129       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85936       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=   6394.142     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2535 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.725        33.962        .22319E-06    .59537E-04
   2  Prefactor     .10000E-03    24.022       -.23426E-06** at limit **
   3  Prefactor     2.5329        2.1318       -.15086E-06   -.23704E-03
   4  Prefactor     32.851        30.364        .42479E-06    .64349E-04
   5  Prefactor     .10000E-03    10.128        .45459E-07** at limit **
   6  Prefactor     48.238        79.617       -.23021E-05   -.96691E-04
   7  Prefactor     .10000E-03    51.324        .17186E-05** at limit **
   8  norm          3.0049        2.8784       -.31335E-06   -.56929E-03
   9  norm          15.025        13.785        .69845E-06    .19779E-03
  10  Prefactor     .10000E-03    5.0706        .21714E-06** at limit **
  11  Prefactor     .10000E-03    4.4076       -.61387E-07** at limit **
  12  Prefactor     .10000E-03    9.2529       -.22641E-06** at limit **
  13  Prefactor     9.0826        17.894        .13531E-05    .20325E-03
  14  Prefactor     .10010E-03    132.68       -.62907E-05** at limit **
  15  Prefactor     .10000E-03    11.597        .64652E-07** at limit **
  16  Prefactor     .10000E-03    8.1259       -.13957E-06** at limit **
  17  Prefactor     .10000E-03    4.7402       -.18642E-07** at limit **
  18  Prefactor     .10003E-03    3.2917       -.92184E-06** at limit **
  19  norm          14.390        4.5250       -.28086E-06   -.46730E-03
  20  Prefactor     .10000E-03    3.4455        .11111E-07** at limit **
  21  Prefactor     .10002E-03    86.514       -.68794E-05** at limit **
  22  Normalizat    .80116        .21491       -.30697E-05    .30076E-03
  23  Prefactor     .85943        .11990        .21271E-05    .49414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.7252
  Prefactor  = 0.0001
  Prefactor  = 2.5329
  Prefactor  = 32.8505
  Prefactor  = 0.0001
  Prefactor  = 48.238
  Prefactor  = 0.000100001
  norm       = 3.00494
  norm       = 15.0249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.08258
  Prefactor  = 0.000100104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  norm       = 14.3895
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Normalizat = 0.801162
  Prefactor  = 0.859426
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.142     FROM HESSE     STATUS=OK           368 CALLS     2903 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.725        33.970        .53737E-04   -1.4214    
   2  Prefactor     .10000E-03    24.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5329        2.1325        .10132E-03   -1.5390    
   4  Prefactor     32.851        30.318        .69911E-04   -1.4561    
   5  Prefactor     .10000E-03    10.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.238        80.183        .28893E-03   -1.4318    
   7  Prefactor     .10000E-03    51.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0049        2.8917        .11923E-03   -1.5361    
   9  norm          15.025        13.826        .10333E-03   -1.4933    
  10  Prefactor     .10000E-03    5.1327        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4362        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0826        17.929        .13329E-03   -1.5105    
  14  Prefactor     .10010E-03    142.30        .54761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7434        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    7.6358        .19798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.390        4.5616        .91850E-04   -1.4949    
  20  Prefactor     .10000E-03    3.4884        .14496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    89.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .80116        .23180        .31594E-03   -1.0003    
  23  Prefactor     .85943        .13007        .17531E-03   -.97574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3539e-09
Minuit parameter uncertainties:
  1  33.9821
  2  3.49377e-05
  3  2.13258
  4  30.332
  5  8.45944e-06
  6  80.3628
  7  0.000511101
  8  2.89184
  9  13.829
  10  1.80475e-05
  11  2.44714e-06
  12  2.94616e-05
  13  17.9397
  14  0.00772335
  15  6.68519e-06
  16  2.22141e-05
  17  1.00745e-06
  18  0.000973469
  19  4.56173
  20  6.76577e-07
  21  0.00259582
  22  0.232089
  23  0.130116
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.001e-04  7.723e-03  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.594e-01  1.301e-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.012e-01  2.321e-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: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200224/likelihoodResults_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.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) = 6394.14247078
delta logL = -3.24507764162e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6394.14247074
delta logL = -3.24136290146e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96319E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4842       1.0000          .0000       10.000    
     3 'Normalizat'    .80109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85946       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6394.127     FROM MIGRAD    STATUS=CONVERGED    250 CALLS      413 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97506        31.843        .18143E-02   -.14090E-03
   2  Index         3.1391        3.6845        .47310E-02   -.44124E-04
   3  Normalizat    .79304        .22990        .31745E-03   -.41744E-03
   4  Prefactor     .86121        .13025        .17514E-03   -.80337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.975055
  Index      = 3.13914
  Normalizat = 0.793042
  Prefactor  = 0.861214
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.127     FROM HESSE     STATUS=OK            25 CALLS      438 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97506        14.181        .72573E-04   -1.5510    
   2  Index         3.1391        2.6709        .18924E-03   -.38135    
   3  Normalizat    .79304        .22968        .12698E-04   -1.0033    
   4  Prefactor     .86121        .13038        .35029E-04   -.97510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18227e-10
Minuit parameter uncertainties:
  1  7.43864
  2  2.84598
  3  0.229963
  4  0.130426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200224': 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) = 6394.12745413
delta logL = 0.0149841958155

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  9.751e-01  7.439e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.139e+00  2.846e+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:  8.612e-01  1.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  7.930e-01  2.300e-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/200224/cmap_HighResolution_424396801_424656001_4FGL_J2207.6+0053_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-28 06:09:43.819466', job_id='200224', GAL2='0.86', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1632834583.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.50e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='714' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 200224: <4FGL_J2207.6+0053_daily_bin714> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin714 331.914 0.8907 424396801 424656001 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 :                                   686.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

