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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin116
RA = 331.914, Dec = 0.8907
tmin = 269395201, tmax = 269654401
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='197064', job_status='RUN', time_executed='2021-09-28 05:47:38.530060', time_epoch_executed='1632833258.53' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='116'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197064/ft1_4FGL_J2207.6+0053_daily_bin116.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197064/ft2_4FGL_J2207.6+0053_daily_bin116.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197064/ft1_4FGL_J2207.6+0053_daily_bin116.fits outfile=/scratch/kocevski/197064/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin116.fits ra=331.914 dec=0.8907 rad=12.0 tmin=269395201.0 tmax=269654401.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.77
user 1.60
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197064/ft1_filtered_4FGL_J2207.6+0053_daily_bin116.fits evtable="EVENTS" scfile=/scratch/kocevski/197064/ft2_4FGL_J2207.6+0053_daily_bin116.fits sctable="SC_DATA" expcube=/scratch/kocevski/197064/ltcube_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.fits outfile=/scratch/kocevski/197064/expmap_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.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/197064/ltcube_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.fits
.....................!
real 189.99
user 184.99
sys 4.69

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/197064/ft1_filtered_4FGL_J2207.6+0053_daily_bin116.fits scfile=/scratch/kocevski/197064/ft2_4FGL_J2207.6+0053_daily_bin116.fits outfile=/scratch/kocevski/197064/cmap_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197064/ft1_filtered_4FGL_J2207.6+0053_daily_bin116.fits scfile=/scratch/kocevski/197064/ft2_4FGL_J2207.6+0053_daily_bin116.fits outfile=/scratch/kocevski/197064/cmap_HighResolution_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.394       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3198       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.358       1.0000         .10000E-03   10000.    
     9 'norm      '    6.6464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1315       1.0000         .10000E-03   10000.    
    19 'norm      '    17.086       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87894       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80824       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=   8177.761     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2556 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.388        38.059        .16727E-06   -.19025E-04
   2  Prefactor     .10000E-03    37.380       -.22108E-05** at limit **
   3  Prefactor     .66620        1.9065       -.54450E-06   -.27506E-03
   4  Prefactor     6.2869        43.110        .63480E-05    .39729E-05
   5  Prefactor     .10000E-03    17.177       -.10444E-06** at limit **
   6  Prefactor     .10000E-03    30.464        .17679E-05** at limit **
   7  Prefactor     .10000E-03    64.099        .12923E-05** at limit **
   8  norm          10.357        3.1338       -.64137E-08   -.60192E-04
   9  norm          6.6476        14.043       -.15524E-06   -.11027E-04
  10  Prefactor     4.3693        6.7965        .10369E-05   -.60246E-04
  11  Prefactor     .10000E-03    2.5548        .11103E-08** at limit **
  12  Prefactor     26.261        19.329       -.31678E-07   -.98642E-05
  13  Prefactor     23.497        16.596        .28595E-07   -.60424E-05
  14  Prefactor     .10000E-03    6.7525       -.15687E-07** at limit **
  15  Prefactor     13.247        21.670        .28340E-06   -.62331E-05
  16  Prefactor     10.712        12.490        .45801E-07   -.16838E-04
  17  Prefactor     .10000E-03    3.1824        .19520E-08** at limit **
  18  Prefactor     5.1312        5.0787        .24865E-06   -.28967E-04
  19  norm          17.083        5.0195       -.15497E-06    .76328E-04
  20  Prefactor     .10000E-03    1.5692        .65283E-08** at limit **
  21  Prefactor     .10000E-03    33.481       -.22663E-06** at limit **
  22  Normalizat    .87934        .19824        .16738E-06    .14321E-04
  23  Prefactor     .80812        .10362       -.44541E-06    .55019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.3876
  Prefactor  = 0.0001
  Prefactor  = 0.666201
  Prefactor  = 6.28692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3569
  norm       = 6.64764
  Prefactor  = 4.36927
  Prefactor  = 0.0001
  Prefactor  = 26.261
  Prefactor  = 23.4974
  Prefactor  = 0.0001
  Prefactor  = 13.2474
  Prefactor  = 10.712
  Prefactor  = 0.0001
  Prefactor  = 5.13121
  norm       = 17.0834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.87934
  Prefactor  = 0.808116
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.761     FROM HESSE     STATUS=OK           374 CALLS     2930 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.388        37.992        .52953E-04   -1.4191    
   2  Prefactor     .10000E-03    37.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66620        1.8723        .18616E-03   -1.5545    
   4  Prefactor     6.2869        43.599        .15967E-03   -1.5206    
   5  Prefactor     .10000E-03    17.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    64.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.357        3.1331        .81577E-04   -1.5064    
   9  norm          6.6476        14.011        .15565E-03   -1.5192    
  10  Prefactor     4.3693        6.8183        .96363E-03   -1.5290    
  11  Prefactor     .10000E-03    2.5604        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.261        19.323        .78166E-04   -1.4683    
  13  Prefactor     23.497        16.592        .82631E-04   -1.4738    
  14  Prefactor     .10000E-03    6.7642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.247        21.654        .11003E-03   -1.4980    
  16  Prefactor     10.712        12.440        .12238E-03   -1.5053    
  17  Prefactor     .10000E-03    3.1836        .15755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1312        5.0269        .16814E-03   -1.5255    
  19  norm          17.083        5.0226        .96896E-04   -1.4881    
  20  Prefactor     .10000E-03    1.5701        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87934        .23325        .32515E-03   -.97190    
  23  Prefactor     .80812        .12184        .18701E-03   -.99430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14847e-11
Minuit parameter uncertainties:
  1  38.0082
  2  0.000124457
  3  1.87245
  4  33.1466
  5  1.26056e-05
  6  7.89871e-05
  7  0.000201728
  8  3.13311
  9  14.0174
  10  6.81956
  11  1.2568e-06
  12  19.3274
  13  16.5948
  14  1.22582e-06
  15  21.667
  16  12.443
  17  2.04781e-07
  18  5.02736
  19  5.02268
  20  8.1273e-08
  21  2.08038e-05
  22  0.233519
  23  0.121882
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.226e-06  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.081e-01  1.219e-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.793e-01  2.335e-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: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197064/likelihoodResults_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.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) = 8177.76192574
delta logL = -0.000704782044522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8177.76122099
delta logL = -2.79860614683e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4791       1.0000          .0000       10.000    
     3 'Normalizat'    .87932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80812       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=   8177.761     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    117.33        .18142E-02** at limit **
   2  Index         2.4436        6.1724        .50000        .56302E-05
   3  Normalizat    .87934        .19565E-01    .32514E-03    .17028E-04
   4  Prefactor     .80812        .10907E-01    .18701E-03    .31552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100273
  Index      = 2.44361
  Normalizat = 0.87934
  Prefactor  = 0.808115
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.761     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    507.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4436        7.5572        .50000       -.53667    
   3  Normalizat    .87934        .44195E-01    .13006E-04   -.97190    
   4  Prefactor     .80812        .24631E-01    .74802E-05   -.99430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.43691e-09
Minuit parameter uncertainties:
  1  0.0237363
  2  1363.47
  3  0.0441965
  4  0.0246314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197064': 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) = 8177.76122092
delta logL = 3.7263816921e-08

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.003e-04  2.374e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.444e+00  1.363e+03  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.081e-01  2.463e-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:  8.793e-01  4.420e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/197064/cmap_HighResolution_269395201_269654401_4FGL_J2207.6+0053_daily_bin116.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-28 06:00:15.539094', job_id='197064', GAL2='0.81', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632834015.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='116' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:00:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 197064: <4FGL_J2207.6+0053_daily_bin116> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin116> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:40 2021
Job was executed on host(s) <bullet0262>, 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:16 2021
Results reported at Tue Sep 28 06:00:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin116 331.914 0.8907 269395201 269654401 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            876 sec.

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

