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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1612
RA = 331.892, Dec = -53.7719
tmin = 657158401, tmax = 657417601
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='481621', job_status='RUN', time_executed='2021-12-08 08:23:46.020415', time_epoch_executed='1638980626.02' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481621/ft1_4FGL_J2207.5-5346_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481621/ft1_4FGL_J2207.5-5346_daily_bin1612.fits outfile=/scratch/kocevski/481621/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1612.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=657158401.0 tmax=657417601.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.74
user 3.49
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.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/481621/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1612.fits evtable="EVENTS" outfile="/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits" evtable="EVENTS" scfile=/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits sctable="SC_DATA" outfile=/scratch/kocevski/481621/ltcube_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.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/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits
.....................!
real 14.48
user 14.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/481621/ltcube_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.fits outfile=/scratch/kocevski/481621/expmap_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.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/481621/ltcube_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.fits
.....................!
real 190.77
user 186.18
sys 4.18

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2207.5-5346 @ 331.892 -53.7719

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits scfile=/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits outfile=/scratch/kocevski/481621/cmap_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.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.892 yref=-53.7719 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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits scfile=/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits outfile=/scratch/kocevski/481621/cmap_HighResolution_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.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.892 yref=-53.7719 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481621/Model_4FGL_J2207.5-5346_daily_bin1612.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/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits....................!
real 56.17
user 54.86
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits', '/scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits', expMap='/scratch/kocevski/481621/expmap_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.fits', expCube='/scratch/kocevski/481621/ltcube_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/481621/Model_4FGL_J2207.5-5346_daily_bin1612.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.5-5346'

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.875e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/481621/ft1_filtered_4FGL_J2207.5-5346_daily_bin1612.fits
Spacecraft file(s): /scratch/kocevski/481621/ft2_4FGL_J2207.5-5346_daily_bin1612.fits
Exposure map: /scratch/kocevski/481621/expmap_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.fits
Exposure cube: /scratch/kocevski/481621/ltcube_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/481621/Model_4FGL_J2207.5-5346_daily_bin1612.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) = 7569.22455784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0026       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2299       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21241       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1849       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11840E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.543       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63677       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1960       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7569.223     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2346 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0027        2.0900        .13656E-01    .15382E-02
   2  Prefactor     .10000E-03    13.780        .90712E-02** at limit **
   3  Prefactor     26.348        48.968        .19511E-02    .39453E-03
   4  Prefactor     .10003E-03    76.178        .90712E-02** at limit **
   5  Prefactor     9.2310        7.2167        .32980E-02   -.98167E-03
   6  Prefactor     .10000E-03    7.2997        .90712E-02** at limit **
   7  Prefactor     .10000E-03    1.9395        .90712E-02** at limit **
   8  norm          .21227        .60807        .10034E-01    .30767E-02
   9  Prefactor     22.712        26.548        .21014E-02   -.47112E-03
  10  Prefactor     .10000E-03    2.1542        .90712E-02** at limit **
  11  Prefactor     3.1863        3.7313        .56766E-02    .77352E-03
  12  Prefactor     .10000E-03    29.276        .90712E-02** at limit **
  13  norm          .10000E-03    1.4869        .90712E-02** at limit **
  14  Prefactor     .83265        2.2404        .12563E-01    .12508E-02
  15  Prefactor     1.0842        6.4034        .11645E-01    .14946E-02
  16  Prefactor     11.403        22.158        .29611E-02    .14033E-02
  17  Prefactor     .10000E-03    7.8726        .90712E-02** at limit **
  18  Prefactor     .10000E-03    37.018        .90712E-02** at limit **
  19  Prefactor     24.537        32.383        .20215E-02    .10276E-02
  20  Prefactor     .10000E-03    3.5611        .90712E-02** at limit **
  21  Normalizat    .63660        .16767        .67481E-01    .20582E-03
  22  Prefactor     1.1960        .12942        .34727E-01    .24764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00269
  Prefactor  = 0.0001
  Prefactor  = 26.3477
  Prefactor  = 0.00010003
  Prefactor  = 9.23103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.212273
  Prefactor  = 22.7125
  Prefactor  = 0.0001
  Prefactor  = 3.18628
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.832654
  Prefactor  = 1.08424
  Prefactor  = 11.403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5367
  Prefactor  = 0.0001
  Normalizat = 0.6366
  Prefactor  = 1.19604
 **********
 **   18 **HESSE 
 **********

 FCN=   7569.223     FROM HESSE     STATUS=OK           334 CALLS     2680 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0027        2.0608        .17353E-03   -1.5508    
   2  Prefactor     .10000E-03    13.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.348        48.955        .78043E-04   -1.4681    
   4  Prefactor     .10003E-03    76.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.2310        7.2076        .13192E-03   -1.5100    
   6  Prefactor     .10000E-03    7.3084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9739        .11823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .21227        .60628        .10957E-03   -1.5616    
   9  Prefactor     22.712        26.555        .84056E-04   -1.4754    
  10  Prefactor     .10000E-03    2.1602        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1863        3.7211        .16919E-03   -1.5351    
  12  Prefactor     .10000E-03    29.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4871        .10360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .83265        2.2084        .20345E-03   -1.5525    
  15  Prefactor     1.0842        6.1147        .37670E-03   -1.5500    
  16  Prefactor     11.403        21.774        .11845E-03   -1.5032    
  17  Prefactor     .10000E-03    7.9724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.537        32.262        .80858E-04   -1.4717    
  20  Prefactor     .10000E-03    3.5679        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63660        .19148        .29863E-03   -1.0645    
  22  Prefactor     1.1960        .14966        .18430E-03   -.86453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44539e-08
Minuit parameter uncertainties:
  1  2.06094
  2  2.25351e-05
  3  49.0294
  4  0.00304455
  5  7.20825
  6  8.55948e-06
  7  4.22299e-06
  8  0.606297
  9  26.5687
  10  1.38873e-05
  11  3.72142
  12  0.000333062
  13  6.17592e-06
  14  2.20864
  15  5.15024
  16  21.7896
  17  9.2956e-06
  18  0.000222712
  19  32.2848
  20  8.79349e-06
  21  0.191681
  22  0.149713
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  3.186e+00  3.721e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.196e+00  1.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  6.366e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481621/likelihoodResults_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.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) = 7567.49394293
delta logL = 1.72952557229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7567.38868526
delta logL = 1.83478323813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15708       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9882       1.0000          .0000       10.000    
     3 'Normalizat'    .54983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7567.389     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15601        1.0941        .39734E-02   -.24961E-02
   2  Index         4.9919        2.4452        .11171        .30172E-04
   3  Normalizat    .54978        .43509E-01    .72206E-01   -.43213E-04
   4  Prefactor     1.2429        .35871E-01    .33687E-01   -.19534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.156013
  Index      = 4.99188
  Normalizat = 0.549784
  Prefactor  = 1.24294
 **********
 **   18 **HESSE 
 **********

 FCN=   7567.389     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      272 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15601        2.2046        .17935E-04   -1.5629    
   2  Index         4.9919        3.7169        .43794E-02   -.16244E-02
   3  Normalizat    .54978        .15697        .31964E-03   -1.1016    
   4  Prefactor     1.2429        .12784        .18113E-03   -.85020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26937e-09
Minuit parameter uncertainties:
  1  1.17262
  2  4.19052
  3  0.157095
  4  0.127869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481621': 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) = 7567.38868403
delta logL = 1.83478447042

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.560e-01  1.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  4.992e+00  4.191e+00  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.243e+00  1.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  5.498e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 4.99 +/- 4.19
Photon Flux (Free Index): 8.68e-08 +/- 4.80e-08
Energy Flux (Free Index): 1.15e-05 +/- 8.44e-06

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/481621/cmap_HighResolution_657158401_657417601_4FGL_J2207.5-5346_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='1.83e+00', photon_flux2='8.68e-08', job_status='DONE', time_completed='2021-12-08 08:35:32.867941', photon_index_error2='4.19', photon_index2='4.99', ts='0.92', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='9.86e-08', energy_flux_error2='8.44e-06', EG='0.64', time_epoch_completed='1638981332.87', return_code='0', job_id='481621', GAL2='1.24', EG2='0.55', return_code2='102', photon_flux_error2='4.80e-08', ts2='4.95', photon_index='2.44' WHERE bin_id='1612' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:35:32 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 481621: <4FGL_J2207.5-5346_daily_bin1612> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1612> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:32 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:22:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:22:24 2021
Terminated at Wed Dec  8 08:35:33 2021
Results reported at Wed Dec  8 08:35:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1612 331.892 -53.7719 657158401 657417601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.5-5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            901 sec.

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

