/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 165 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin302
RA = 331.914, Dec = 0.8907
tmin = 317606401, tmax = 317865601
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='198524', job_status='RUN', time_executed='2021-09-28 05:53:38.385270', time_epoch_executed='1632833618.39' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198524/ft1_4FGL_J2207.6+0053_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198524/ft2_4FGL_J2207.6+0053_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198524/ft1_4FGL_J2207.6+0053_daily_bin302.fits outfile=/scratch/kocevski/198524/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin302.fits ra=331.914 dec=0.8907 rad=12.0 tmin=317606401.0 tmax=317865601.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.36
user 3.14
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198524/ft1_filtered_4FGL_J2207.6+0053_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/198524/ft2_4FGL_J2207.6+0053_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/198524/ltcube_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.fits outfile=/scratch/kocevski/198524/expmap_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.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/198524/ltcube_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.fits
.....................!
real 193.45
user 188.37
sys 4.76

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/198524/ft1_filtered_4FGL_J2207.6+0053_daily_bin302.fits scfile=/scratch/kocevski/198524/ft2_4FGL_J2207.6+0053_daily_bin302.fits outfile=/scratch/kocevski/198524/cmap_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198524/ft1_filtered_4FGL_J2207.6+0053_daily_bin302.fits scfile=/scratch/kocevski/198524/ft2_4FGL_J2207.6+0053_daily_bin302.fits outfile=/scratch/kocevski/198524/cmap_HighResolution_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28869E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4195       1.0000         .10000E-03   10000.    
     9 'norm      '    17.811       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7578       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11934E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13352E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0777       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1210       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1622       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4195       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6880.860     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2104 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    17.347        .21196E-04** at limit **
   2  Prefactor     32.959        1.4155       -.13193E-05    .15332E-02
   3  Prefactor     .10000E-03    1.8770       -.79052E-06** at limit **
   4  Prefactor     2.0484        2.4538        .10727E-04   -.48374E-03
   5  Prefactor     .10128E-03    19.391        .35659E-04** at limit **
   6  Prefactor     57.270        4.3230       -.44528E-05    .10189E-01
   7  Prefactor     .11952E-03    2.2846       -.20803E-04** at limit **
   8  norm          3.4193        2.4691       -.18207E-06    .51070E-03
   9  norm          17.846        3.3422        .35994E-05    .22017E-03
  10  Prefactor     .10000E-03    3.1649        .89158E-06** at limit **
  11  Prefactor     8.7533        1.1082        .50873E-06    .28572E-03
  12  Prefactor     .10000E-03    13.444       -.36306E-05** at limit **
  13  Prefactor     .10003E-03    28.315       -.72566E-04** at limit **
  14  Prefactor     .10082E-03    115.66       -.10113E-03** at limit **
  15  Prefactor     .10001E-03    22.994        .39597E-04** at limit **
  16  Prefactor     2.0711        1.4493       -.32774E-05    .79799E-04
  17  Prefactor     .10000E-03    8.1029        .77606E-06** at limit **
  18  Prefactor     8.1206        5.1873       -.61964E-05   -.52075E-03
  19  norm          6.1622        4.3181        .18107E-05    .10069E-03
  20  Prefactor     4.7809        4.9184        .45319E-05   -.19705E-03
  21  Prefactor     .10007E-03    17.648        .27950E-04** at limit **
  22  Normalizat    1.4195        .26795        .74645E-05    .36871E-05
  23  Prefactor     .75629        .14166       -.14547E-05   -.38014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100672
  Prefactor  = 32.9587
  Prefactor  = 0.0001
  Prefactor  = 2.04842
  Prefactor  = 0.000101277
  Prefactor  = 57.2701
  Prefactor  = 0.000119521
  norm       = 3.41931
  norm       = 17.846
  Prefactor  = 0.000100001
  Prefactor  = 8.75333
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.000100823
  Prefactor  = 0.000100005
  Prefactor  = 2.07113
  Prefactor  = 0.0001
  Prefactor  = 8.12058
  norm       = 6.16225
  Prefactor  = 4.78086
  Prefactor  = 0.00010007
  Normalizat = 1.41946
  Prefactor  = 0.756294
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.860     FROM HESSE     STATUS=OK           424 CALLS     2528 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10067E-03    48.061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.959        39.756        .17448E-02   -1.4559    
   3  Prefactor     .10000E-03    1.8398        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0484        128.76        .72547E-02   -1.5422    
   5  Prefactor     .10128E-03    55.807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.270        59.432        .13250E-02   -1.4193    
   7  Prefactor     .11952E-03    379.33        .10703E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4193        2.5892        .54689E-02   -1.5338    
   9  norm          17.846        24.307        .23726E-02   -1.4863    
  10  Prefactor     .10000E-03    3.1618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7533        16.690        .33862E-02   -1.5116    
  12  Prefactor     .10000E-03    13.329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    28.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10082E-03    18.421        .11265       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    22.953        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0711        22.851        .71631E-02   -1.5420    
  17  Prefactor     .10000E-03    8.0719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1206        5.7168        .35172E-02   -1.5138    
  19  norm          6.1622        4.3254        .40431E-02   -1.5211    
  20  Prefactor     4.7809        4.9168        .45996E-02   -1.5271    
  21  Prefactor     .10007E-03    50.862        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4195        .23533        .66688E-01   -.80068    
  23  Prefactor     .75629        .11844        .43145E-01   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58077e-07
Minuit parameter uncertainties:
  1  0.0113743
  2  39.7879
  3  1.31731e-05
  4  32.554
  5  0.0169012
  6  59.4935
  7  0.173212
  8  2.58929
  9  24.321
  10  0.000123225
  11  16.6994
  12  6.43033e-05
  13  0.00174734
  14  0.00778762
  15  0.000689039
  16  13.7652
  17  7.65672e-05
  18  5.71715
  19  4.32558
  20  4.9172
  21  0.00378348
  22  0.235507
  23  0.118485
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.008e-04  7.788e-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:  7.563e-01  1.185e-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.419e+00  2.355e-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: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198524/likelihoodResults_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.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) = 6880.85957089
delta logL = -3.91563326048e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6880.85957089
delta logL = -3.91498406316e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96350E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4842       1.0000          .0000       10.000    
     3 'Normalizat'    1.4194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75630       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6880.815     FROM MIGRAD    STATUS=FAILED       154 CALLS      322 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0290        37.964        .35974E-03   -.44244E-05
   2  Index         3.3641        3.4278        .11027E-01    .20761E-03
   3  Normalizat    1.3943        .27547        .29727E-03   -.27497E-04
   4  Prefactor     .76220        .14316        .20803E-03   -.67220E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6880.815     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      403 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0290        37.964        .24482E-03   -1.5423    
   2  Index         3.3641        3.4278        .21317E-02   -.33331    
   3  Normalizat    1.3943        .27547        .27257E-03   -.80794    
   4  Prefactor     .76220        .14316        .22649E-03   -1.0114    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6880.815     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      432 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0290        14.183        .14389E-04   -.11219E-04
   2  Index         3.3642        2.2439        .22054E-02   -.32992E-06
   3  Normalizat    1.3943        .27628        .11891E-04   -.16062E-04
   4  Prefactor     .76220        .14314        .83211E-05   -.46453E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.02897
  Index      = 3.36415
  Normalizat = 1.39429
  Prefactor  = 0.762201
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.815     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0290        12.835        .28779E-05   -1.5423    
   2  Index         3.3642        2.1410        .88215E-04   -.33331    
   3  Normalizat    1.3943        .27654        .23782E-05   -.80794    
   4  Prefactor     .76220        .14323        .16642E-05   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27693e-12
Minuit parameter uncertainties:
  1  10.209
  2  2.22203
  3  0.276833
  4  0.143295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198524': 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) = 6880.81482983
delta logL = 0.0447019087842

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.029e+00  1.021e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.364e+00  2.222e+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:  7.622e-01  1.433e-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.394e+00  2.768e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/198524/cmap_HighResolution_317606401_317865601_4FGL_J2207.6+0053_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-28 06:04:52.807195', job_id='198524', GAL2='0.76', fit_tolerance='1e-08', EG2='1.39', EG='1.42', time_epoch_completed='1632834292.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.47e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='302' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:04:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 198524: <4FGL_J2207.6+0053_daily_bin302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin302 331.914 0.8907 317606401 317865601 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 :                                   672.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            856 sec.

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

