/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 14 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin14
RA = 331.914, Dec = 0.8907
tmin = 242956801, tmax = 243216001
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='196916', job_status='RUN', time_executed='2021-09-28 05:45:53.167438', time_epoch_executed='1632833153.17' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196916/ft1_4FGL_J2207.6+0053_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196916/ft2_4FGL_J2207.6+0053_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196916/ft1_4FGL_J2207.6+0053_daily_bin14.fits outfile=/scratch/kocevski/196916/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin14.fits ra=331.914 dec=0.8907 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.44
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196916/ft2_4FGL_J2207.6+0053_daily_bin14.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/196916/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin14.fits evtable="EVENTS" outfile="/scratch/kocevski/196916/ft1_filtered_4FGL_J2207.6+0053_daily_bin14.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196916/ft1_filtered_4FGL_J2207.6+0053_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/196916/ft2_4FGL_J2207.6+0053_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/196916/ltcube_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.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/196916/ft2_4FGL_J2207.6+0053_daily_bin14.fits
.....................!
real 13.15
user 12.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196916/ft1_filtered_4FGL_J2207.6+0053_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/196916/ft2_4FGL_J2207.6+0053_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/196916/ltcube_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.fits outfile=/scratch/kocevski/196916/expmap_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.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/196916/ltcube_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.fits
.....................!
real 191.75
user 186.19
sys 5.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/196916/ft1_filtered_4FGL_J2207.6+0053_daily_bin14.fits scfile=/scratch/kocevski/196916/ft2_4FGL_J2207.6+0053_daily_bin14.fits outfile=/scratch/kocevski/196916/cmap_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    59.000       1.0000         .10000E-03   10000.    
     8 'norm      '    14.838       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55935E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5114       1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.310       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0837       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85604       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=   6996.996     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2568 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.033        .62847E-06** at limit **
   2  Prefactor     15.081        26.895        .25538E-05   -.37861E-04
   3  Prefactor     .55540        1.8512        .13493E-05   -.62074E-03
   4  Prefactor     30.770        29.894       -.10941E-06   -.66829E-04
   5  Prefactor     .10000E-03    38.545       -.15103E-05** at limit **
   6  Prefactor     .10000E-03    32.540        .25570E-05** at limit **
   7  Prefactor     59.233        59.969       -.69877E-05   -.17784E-03
   8  norm          14.837        4.1959        .32352E-07    .32418E-03
   9  norm          2.8316        56.495       -.35450E-05   -.31408E-04
  10  Prefactor     .10002E-03    5.2491        .29563E-05** at limit **
  11  Prefactor     .10000E-03    11.463        .24460E-06** at limit **
  12  Prefactor     .10000E-03    18.503       -.95963E-06** at limit **
  13  Prefactor     4.2858        9.7601        .80931E-07   -.16958E-05
  14  Prefactor     .10000E-03    36.766       -.14797E-05** at limit **
  15  Prefactor     .10000E-03    16.098        .57564E-06** at limit **
  16  Prefactor     7.4472        10.455        .42176E-06   -.28640E-04
  17  Prefactor     .10000E-03    12.529       -.21926E-06** at limit **
  18  Prefactor     .10000E-03    3.5542        .57272E-07** at limit **
  19  norm          12.615        4.8694        .77227E-07   -.43422E-04
  20  Prefactor     6.5098        6.0822        .24959E-07    .71030E-05
  21  Prefactor     55.338        69.687        .18893E-05   -.81542E-05
  22  Normalizat    1.0836        .21571       -.16443E-05   -.47084E-04
  23  Prefactor     .85613        .11550       -.36810E-06   -.17839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0807
  Prefactor  = 0.555399
  Prefactor  = 30.7699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.2327
  norm       = 14.837
  norm       = 2.83157
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.28575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6146
  Prefactor  = 6.50977
  Prefactor  = 55.3385
  Normalizat = 1.08362
  Prefactor  = 0.856133
 **********
 **   18 **HESSE 
 **********

 FCN=   6996.996     FROM HESSE     STATUS=OK           368 CALLS     2936 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.081        26.745        .10308E-03   -1.4931    
   3  Prefactor     .55540        1.8017        .18864E-03   -1.5559    
   4  Prefactor     30.770        29.789        .72212E-04   -1.4598    
   5  Prefactor     .10000E-03    38.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     59.233        59.286        .52232E-04   -1.4167    
   8  norm          14.837        4.1732        .81426E-04   -1.4937    
   9  norm          2.8316        56.501        .24072E-03   -1.5371    
  10  Prefactor     .10002E-03    44.295        .33224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2858        9.7359        .19464E-03   -1.5294    
  14  Prefactor     .10000E-03    37.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4472        10.440        .14696E-03   -1.5162    
  17  Prefactor     .10000E-03    12.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6164        .30672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.615        4.8796        .10877E-03   -1.4997    
  20  Prefactor     6.5098        6.0875        .15727E-03   -1.5198    
  21  Prefactor     55.338        69.665        .53936E-04   -1.4219    
  22  Normalizat    1.0836        .25467        .31385E-03   -.90280    
  23  Prefactor     .85613        .13689        .19511E-03   -.97691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45476e-10
Minuit parameter uncertainties:
  1  9.49723e-05
  2  26.7663
  3  1.80183
  4  29.8029
  5  2.24356e-05
  6  3.90708e-05
  7  59.3453
  8  4.17327
  9  25.3242
  10  0.00192094
  11  3.07546e-05
  12  0.000119805
  13  9.73953
  14  0.000267718
  15  2.988e-05
  16  10.4421
  17  2.27389e-05
  18  3.63557e-06
  19  4.87972
  20  6.08808
  21  69.7675
  22  0.254954
  23  0.136941
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.677e-04  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.561e-01  1.369e-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:  1.084e+00  2.550e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196916/likelihoodResults_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.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) = 6996.99592134
delta logL = -0.000127303142108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6996.99579389
delta logL = 1.52850589075e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5550       1.0000          .0000       10.000    
     3 'Normalizat'    1.0836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85614       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=   6996.996     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1690.0        .90712E-02** at limit **
   2  Index         2.6008        5.2454        .50000       -.10330E-04
   3  Normalizat    1.0836        .35693E-01    .70929E-01   -.31278E-03
   4  Prefactor     .85613        .20042E-01    .44443E-01   -.29012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60084
  Normalizat = 1.08361
  Prefactor  = 0.856134
 **********
 **   18 **HESSE 
 **********

 FCN=   6996.996     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    107.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6008        6.0302        .50000       -.50046    
   3  Normalizat    1.0836        .24050        .31385E-03   -.90280    
   4  Prefactor     .85613        .13549        .19511E-03   -.97691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25292e-10
Minuit parameter uncertainties:
  1  0.000190758
  2  6.75372
  3  0.240739
  4  0.135545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196916': 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) = 6996.99579378
delta logL = 2.58603904513e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.908e-04  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.601e+00  6.754e+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.561e-01  1.355e-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:  1.084e+00  2.407e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/196916/cmap_HighResolution_242956801_243216001_4FGL_J2207.6+0053_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2021-09-28 05:57:32.708148', job_id='196916', GAL2='0.86', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632833852.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='14' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:57:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 196916: <4FGL_J2207.6+0053_daily_bin14> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin14> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:30 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45: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:45:32 2021
Terminated at Tue Sep 28 05:57:33 2021
Results reported at Tue Sep 28 05:57:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin14 331.914 0.8907 242956801 243216001 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 :                                   697.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             332.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

