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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin819
RA = 331.892, Dec = -53.7719
tmin = 451612801, tmax = 451872001
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='193672', job_status='RUN', time_executed='2021-09-28 05:35:29.679728', time_epoch_executed='1632832529.68' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='819'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193672/ft1_4FGL_J2207.5-5346_daily_bin819.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193672/ft1_4FGL_J2207.5-5346_daily_bin819.fits outfile=/scratch/kocevski/193672/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin819.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=451612801.0 tmax=451872001.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.54
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.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/193672/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin819.fits evtable="EVENTS" outfile="/scratch/kocevski/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits" evtable="EVENTS" scfile=/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits sctable="SC_DATA" outfile=/scratch/kocevski/193672/ltcube_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.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/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits
.....................!
real 11.83
user 11.42
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits sctable="SC_DATA" expcube=/scratch/kocevski/193672/ltcube_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.fits outfile=/scratch/kocevski/193672/expmap_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.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/193672/ltcube_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.fits
.....................!
real 190.74
user 185.53
sys 4.90

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/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits scfile=/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits outfile=/scratch/kocevski/193672/cmap_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits scfile=/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits outfile=/scratch/kocevski/193672/cmap_HighResolution_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits evtable="EVENTS" scfile=/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193672/Model_4FGL_J2207.5-5346_daily_bin819.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/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits.....................!
real 55.51
user 54.19
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits', '/scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits', expMap='/scratch/kocevski/193672/expmap_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.fits', expCube='/scratch/kocevski/193672/ltcube_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193672/Model_4FGL_J2207.5-5346_daily_bin819.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/193672/ft1_filtered_4FGL_J2207.5-5346_daily_bin819.fits
Spacecraft file(s): /scratch/kocevski/193672/ft2_4FGL_J2207.5-5346_daily_bin819.fits
Exposure map: /scratch/kocevski/193672/expmap_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.fits
Exposure cube: /scratch/kocevski/193672/ltcube_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193672/Model_4FGL_J2207.5-5346_daily_bin819.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) = 7443.93006528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19737       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28251E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.634       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.379       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2916       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85646       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0320       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7443.888     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2409 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3422        2.1373       -.35570E-06   -.75048E-03
   2  Prefactor     1.7531        53.678       -.10648E-04   -.86663E-04
   3  Prefactor     .10000E-03    17.937        .16944E-05** at limit **
   4  Prefactor     .10000E-03    30.757       -.81530E-05** at limit **
   5  Prefactor     .15855        5.2800       -.16790E-07   -.73046E-03
   6  Prefactor     .10002E-03    10.657       -.14237E-05** at limit **
   7  Prefactor     14.636        5.1976       -.84728E-07    .72816E-04
   8  norm          4.8942        1.1932       -.92724E-07    .17497E-03
   9  Prefactor     .10000E-03    55.984        .11850E-04** at limit **
  10  Prefactor     .10000E-03    1.8480        .24221E-06** at limit **
  11  Prefactor     .21514        1.6329        .26780E-06   -.12311E-04
  12  Prefactor     17.333        36.219       -.63291E-04   -.11220E-04
  13  norm          .10000E-03    2.7074        .17623E-07** at limit **
  14  Prefactor     .10000E-03    2.2804       -.14680E-06** at limit **
  15  Prefactor     .10000E-03    1.4244        .80276E-07** at limit **
  16  Prefactor     4.2834        20.409        .33059E-05    .69056E-06
  17  Prefactor     7.1770        7.7893        .19822E-05    .26157E-04
  18  Prefactor     18.222        55.212       -.12858E-03    .54569E-05
  19  Prefactor     13.488        13.562        .41960E-06    .24910E-04
  20  Prefactor     .10000E-03    7.6583        .17748E-06** at limit **
  21  Normalizat    .85662        .16834        .21558E-05    .10856E-03
  22  Prefactor     1.0321        .13175        .19577E-05    .11463E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34217
  Prefactor  = 1.75313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.158552
  Prefactor  = 0.000100025
  Prefactor  = 14.6363
  norm       = 4.89418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.215142
  Prefactor  = 17.3334
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.28342
  Prefactor  = 7.17701
  Prefactor  = 18.2224
  Prefactor  = 13.4882
  Prefactor  = 0.0001
  Normalizat = 0.85662
  Prefactor  = 1.03206
 **********
 **   18 **HESSE 
 **********

 FCN=   7443.888     FROM HESSE     STATUS=OK           350 CALLS     2759 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3422        2.0995        .15095E-03   -1.5476    
   2  Prefactor     1.7531        53.529        .31610E-03   -1.5443    
   3  Prefactor     .10000E-03    17.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15855        58.112        .37471E-02   -1.5628    
   6  Prefactor     .10002E-03    87.119        .53781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.636        5.1853        .10470E-03   -1.4943    
   8  norm          4.8942        1.1934        .44962E-04   -1.5265    
   9  Prefactor     .10000E-03    56.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8533        .11452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21514        13.335        .20591E-02   -1.5615    
  12  Prefactor     17.333        36.251        .96075E-04   -1.4875    
  13  norm          .10000E-03    2.7153        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3682        .25418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4315        .10052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2834        20.204        .19447E-03   -1.5294    
  17  Prefactor     7.1770        7.7414        .14973E-03   -1.5172    
  18  Prefactor     18.222        55.225        .93649E-04   -1.4854    
  19  Prefactor     13.488        13.564        .10906E-03   -1.4973    
  20  Prefactor     .10000E-03    7.7079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85662        .19405        .27452E-03   -.98002    
  22  Prefactor     1.0321        .15283        .20266E-03   -.91668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65072e-08
Minuit parameter uncertainties:
  1  2.09962
  2  19.3929
  3  4.57787e-06
  4  2.84999e-05
  5  6.07485
  6  0.00293721
  7  5.18543
  8  1.19342
  9  0.000253645
  10  2.68109e-05
  11  3.38764
  12  36.2975
  13  4.52965e-06
  14  1.50663e-05
  15  4.04822e-06
  16  18.6155
  17  7.74245
  18  55.3804
  19  13.5671
  20  4.31622e-06
  21  0.194212
  22  0.152898
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.151e-01  3.388e+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.032e+00  1.529e-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:  8.566e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/193672/likelihoodResults_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.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) = 7443.02473438
delta logL = 0.863686148819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7442.55924446
delta logL = 1.32917607456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7323       1.0000          .0000       10.000    
     3 'Normalizat'    .78467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0695       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=   7442.559     FROM MIGRAD    STATUS=CONVERGED    278 CALLS      610 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29762E-02    .32568E-03** at limit **
   2  Index         8.7331        7.3232        .21886        .10384E-03
   3  Normalizat    .78469        .42697E-01    .64573E-01   -.56822E-04
   4  Prefactor     1.0695        .34147E-01    .38883E-01   -.16073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.73314
  Normalizat = 0.784685
  Prefactor  = 1.06947
 **********
 **   18 **HESSE 
 **********

 FCN=   7442.559     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      649 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17966E-01    .16534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7331        8.5775        .92854E-02    .84298    
   3  Normalizat    .78469        .93343E-01    .28566E-03   -1.0064    
   4  Prefactor     1.0695        .75012E-01    .19942E-03   -.90448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.69142e-07
Minuit parameter uncertainties:
  1  1.75094e-07
  2  5.31099
  3  0.0933624
  4  0.0750197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193672': 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) = 7442.55923315
delta logL = 1.32918737607

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.751e-07  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  8.733e+00  5.311e+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.069e+00  7.502e-02  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:  7.847e-01  9.336e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 8.73 +/- 5.31
Photon Flux (Free Index): 5.26e-08 +/- 5.11e-07
Energy Flux (Free Index): 6.01e-06 +/- 5.81e-05

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/193672/cmap_HighResolution_451612801_451872001_4FGL_J2207.5-5346_daily_bin819.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', comment='SUCCESS', energy_flux2='6.01e-06', dlogl='1.33e+00', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-28 05:47:49.644223', photon_index_error2='5.31', photon_index2='8.73', ts='0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.71e-08', energy_flux_error2='5.81e-05', EG='0.86', time_epoch_completed='1632833269.64', return_code='0', job_id='193672', GAL2='1.07', EG2='0.78', return_code2='102', photon_flux_error2='5.11e-07', ts2='2.79', photon_index='2.44' WHERE bin_id='819' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:47:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 193672: <4FGL_J2207.5-5346_daily_bin819> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin819> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:35:17 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:35:19 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:35:19 2021
Terminated at Tue Sep 28 05:47:50 2021
Results reported at Tue Sep 28 05:47:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin819 331.892 -53.7719 451612801 451872001 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 :                                   738.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

