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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin136
RA = 331.914, Dec = 0.8907
tmin = 274579201, tmax = 274838401
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='197093', job_status='RUN', time_executed='2021-09-28 05:48:13.436176', time_epoch_executed='1632833293.44' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197093/ft1_4FGL_J2207.6+0053_daily_bin136.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197093/ft2_4FGL_J2207.6+0053_daily_bin136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197093/ft1_4FGL_J2207.6+0053_daily_bin136.fits outfile=/scratch/kocevski/197093/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin136.fits ra=331.914 dec=0.8907 rad=12.0 tmin=274579201.0 tmax=274838401.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.37
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197093/ft1_filtered_4FGL_J2207.6+0053_daily_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/197093/ft2_4FGL_J2207.6+0053_daily_bin136.fits sctable="SC_DATA" expcube=/scratch/kocevski/197093/ltcube_274579201_274838401_4FGL_J2207.6+0053_daily_bin136.fits outfile=/scratch/kocevski/197093/expmap_274579201_274838401_4FGL_J2207.6+0053_daily_bin136.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/197093/ltcube_274579201_274838401_4FGL_J2207.6+0053_daily_bin136.fits
.....................!
real 190.61
user 185.90
sys 4.41

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/197093/ft1_filtered_4FGL_J2207.6+0053_daily_bin136.fits scfile=/scratch/kocevski/197093/ft2_4FGL_J2207.6+0053_daily_bin136.fits outfile=/scratch/kocevski/197093/cmap_274579201_274838401_4FGL_J2207.6+0053_daily_bin136.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=331.914 yref=0.8907 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.855       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9013       1.0000         .10000E-03   10000.    
     9 'norm      '    16.237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8616       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6615       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .12036       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3195       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.

 FCN=   6191.396     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     3351 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.646        .18142E-02** at limit **
   2  Prefactor     19.402        55.688        .90952E-04   -.24624E-04
   3  Prefactor     2.7771        3.4200        .12160E-03    .20915E-03
   4  Prefactor     3.2842        55.124        .22349E-03   -.35099E-05
   5  Prefactor     .10000E-03    26.491        .18142E-02** at limit **
   6  Prefactor     .10000E-03    27.087        .18142E-02** at limit **
   7  Prefactor     39.856        46.970        .63492E-04   -.50136E-05
   8  norm          5.9015        2.8322        .84820E-04   -.40344E-04
   9  norm          16.239        21.598        .99395E-04   -.21274E-04
  10  Prefactor     5.8621        8.2716        .16587E-03   -.26456E-04
  11  Prefactor     .10000E-03    5.1940        .17478E-02** at limit **
  12  Prefactor     .10000E-03    25.763        .18142E-02** at limit **
  13  Prefactor     45.815        22.678        .59238E-04    .22255E-03
  14  Prefactor     .10002E-03    109.15        .56538E-02** at limit **
  15  Prefactor     .10000E-03    13.718        .18142E-02** at limit **
  16  Prefactor     29.734        17.416        .73477E-04   -.11589E-03
  17  Prefactor     .10000E-03    3.8722        .15118E-02** at limit **
  18  Prefactor     8.6615        5.8858        .13620E-03   -.16761E-03
  19  norm          2.4834        3.7844        .90838E-03   -.18647E-02
  20  Prefactor     .10000E-03    2.0016        .10871E-02** at limit **
  21  Prefactor     .10000E-03    38.032        .18142E-02** at limit **
  22  Normalizat    .12038        .28323        .83399E-02    .32779E-04
  23  Prefactor     1.3195        .16209        .16235E-03   -.74929E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.4017
  Prefactor  = 2.77712
  Prefactor  = 3.28416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8564
  norm       = 5.90147
  norm       = 16.2388
  Prefactor  = 5.86208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.8155
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 29.7339
  Prefactor  = 0.0001
  Prefactor  = 8.66153
  norm       = 2.48337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.12038
  Prefactor  = 1.31948
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.396     FROM HESSE     STATUS=OK           348 CALLS     3699 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.402        55.726        .36381E-05   -1.4827    
   3  Prefactor     2.7771        3.4199        .48639E-05   -1.5375    
   4  Prefactor     3.2842        54.938        .89397E-05   -1.5346    
   5  Prefactor     .10000E-03    26.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.856        46.955        .25397E-05   -1.4444    
   8  norm          5.9015        2.8294        .33928E-05   -1.5222    
   9  norm          16.239        21.599        .39758E-05   -1.4902    
  10  Prefactor     5.8621        8.2706        .66350E-05   -1.5224    
  11  Prefactor     .10000E-03    5.1947        .34956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     45.815        22.591        .11848E-04   -1.4353    
  14  Prefactor     .10002E-03    111.45        .22615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.734        17.379        .29391E-05   -1.4617    
  17  Prefactor     .10000E-03    3.8723        .30235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6615        5.8826        .54480E-05   -1.5119    
  19  norm          2.4834        3.7804        .36335E-04   -1.5393    
  20  Prefactor     .10000E-03    2.0016        .21741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .12038        .26579        .33360E-03   -1.3602    
  23  Prefactor     1.3195        .15290        .64939E-05   -.82730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37174e-09
Minuit parameter uncertainties:
  1  3.59773e-05
  2  55.8755
  3  3.42013
  4  26.8931
  5  4.41551e-05
  6  9.33569e-05
  7  46.9982
  8  2.82942
  9  21.6096
  10  8.27225
  11  6.11088e-06
  12  2.45065e-05
  13  22.5949
  14  0.0030327
  15  7.1968e-06
  16  17.3819
  17  4.38184e-07
  18  5.88298
  19  3.78077
  20  3.90776e-08
  21  8.62648e-05
  22  0.268743
  23  0.152952
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.033e-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:  1.319e+00  1.530e-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.204e-01  2.687e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197093/likelihoodResults_274579201_274838401_4FGL_J2207.6+0053_daily_bin136.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) = 6191.39603671
delta logL = -4.27636741733e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6191.3960367
delta logL = -4.27578652307e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96348E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4841       1.0000          .0000       10.000    
     3 'Normalizat'    .12038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3195       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=   6191.396     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      245 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    4.5715        .13166    ** at limit **
   2  Index         2.5956        2.9263        .50000       -.95698E-05
   3  Normalizat    .12038        .36820E-02    .19940        .14375E-03
   4  Prefactor     1.3195        .23360E-02    .32279E-01   -.28798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Index      = 2.59559
  Normalizat = 0.120383
  Prefactor  = 1.31947
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.396     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      282 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9928.5        .45041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5956        6.8651        .50000       -.50166    
   3  Normalizat    .12038        .81513E-01    .83397E-02   -1.3602    
   4  Prefactor     1.3195        .47929E-01    .16235E-03   -.82730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79546e-10
Minuit parameter uncertainties:
  1  0.0479549
  2  51.7143
  3  0.0815962
  4  0.0479304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197093': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6191.39599371
delta logL = 2.33973878494e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.795e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.596e+00  5.171e+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:  1.319e+00  4.793e-02  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  1.204e-01  8.160e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.914 0.891

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/197093/cmap_HighResolution_274579201_274838401_4FGL_J2207.6+0053_daily_bin136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.49e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-28 06:00:28.531664', job_id='197093', GAL2='1.32', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1632834028.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='136' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 197093: <4FGL_J2207.6+0053_daily_bin136> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin136> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:42 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45:43 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:43 2021
Terminated at Tue Sep 28 06:00:29 2021
Results reported at Tue Sep 28 06:00:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin136 331.914 0.8907 274579201 274838401 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 :                                   732.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

