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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin345
RA = 331.892, Dec = -53.7719
tmin = 328752001, tmax = 329011201
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='191030', job_status='RUN', time_executed='2021-09-28 05:25:27.306837', time_epoch_executed='1632831927.31' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191030/ft1_4FGL_J2207.5-5346_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191030/ft1_4FGL_J2207.5-5346_daily_bin345.fits outfile=/scratch/kocevski/191030/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin345.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=328752001.0 tmax=329011201.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.47
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.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/191030/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin345.fits evtable="EVENTS" outfile="/scratch/kocevski/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.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/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/191030/ltcube_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.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/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits
.....................!
real 12.27
user 11.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/191030/ltcube_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.fits outfile=/scratch/kocevski/191030/expmap_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.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/191030/ltcube_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.fits
.....................!
real 190.51
user 185.25
sys 4.72

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/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.fits scfile=/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits outfile=/scratch/kocevski/191030/cmap_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.fits scfile=/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits outfile=/scratch/kocevski/191030/cmap_HighResolution_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/191030/ft2_4FGL_J2207.5-5346_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191030/Model_4FGL_J2207.5-5346_daily_bin345.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/191030/ft1_filtered_4FGL_J2207.5-5346_daily_bin345.fits.....................!
real 55.32
user 53.95
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.162       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6339       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9087       1.0000         .10000E-03   10000.    
     8 'norm      '    .75546       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1042       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4247       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9786       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.247       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.510       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80353       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1071       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=   7563.799     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2374 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0506        2.5653        .19183E-06   -.10057E-03
   2  Prefactor     28.169        19.154       -.27256E-05   -.57333E-03
   3  Prefactor     .10000E-03    26.344        .18887E-06** at limit **
   4  Prefactor     8.4485        65.916       -.49021E-05   -.54339E-04
   5  Prefactor     8.6335        6.5429        .15024E-06    .27271E-04
   6  Prefactor     .10000E-03    12.169        .13123E-06** at limit **
   7  Prefactor     2.9074        4.3292        .45888E-06   -.17190E-03
   8  norm          .75559        .65075        .25284E-07   -.16546E-04
   9  Prefactor     27.227        33.684       -.43245E-05   -.27256E-03
  10  Prefactor     .10000E-03    3.1203       -.44062E-07** at limit **
  11  Prefactor     .10000E-03    1.6302        .85835E-07** at limit **
  12  Prefactor     .75572        47.897       -.97903E-06    .43771E-04
  13  norm          1.4183        3.7937        .34933E-06   -.21655E-03
  14  Prefactor     .10000E-03    1.1204        .53864E-07** at limit **
  15  Prefactor     6.4227        4.7231        .16300E-05   -.22330E-02
  16  Prefactor     .10000E-03    8.4737       -.86481E-07** at limit **
  17  Prefactor     3.9789        7.7400       -.16181E-06   -.96173E-04
  18  Prefactor     39.257        41.653       -.78571E-06   -.42063E-04
  19  Prefactor     .10000E-03    10.929       -.16023E-06** at limit **
  20  Prefactor     15.519        15.619        .20060E-05    .37682E-03
  21  Normalizat    .80361        .17018       -.76091E-06    .38778E-04
  22  Prefactor     1.1070        .13347        .52279E-06   -.53956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05064
  Prefactor  = 28.1694
  Prefactor  = 0.0001
  Prefactor  = 8.4485
  Prefactor  = 8.63347
  Prefactor  = 0.0001
  Prefactor  = 2.90742
  norm       = 0.755592
  Prefactor  = 27.2267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.755716
  norm       = 1.41827
  Prefactor  = 0.0001
  Prefactor  = 6.4227
  Prefactor  = 0.0001
  Prefactor  = 3.97886
  Prefactor  = 39.2574
  Prefactor  = 0.0001
  Prefactor  = 15.5189
  Normalizat = 0.803606
  Prefactor  = 1.10701
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.799     FROM HESSE     STATUS=OK           348 CALLS     2722 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0506        2.5605        .12178E-03   -1.5359    
   2  Prefactor     28.169        19.793        .75494E-04   -1.4646    
   3  Prefactor     .10000E-03    26.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4485        66.868        .13777E-03   -1.5127    
   5  Prefactor     8.6335        6.5387        .13642E-03   -1.5120    
   6  Prefactor     .10000E-03    12.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9074        4.3262        .20682E-03   -1.5367    
   8  norm          .75559        .64249        .62926E-04   -1.5534    
   9  Prefactor     27.227        34.558        .76851E-04   -1.4664    
  10  Prefactor     .10000E-03    3.1382        .14988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6606        .10834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .75572        47.438        .19003       -1.5534    
  13  norm          1.4183        3.7527        .27090E-03   -1.5470    
  14  Prefactor     .10000E-03    1.1299        .89875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4227        5.7831        .79172E-03   -1.5201    
  16  Prefactor     .10000E-03    8.4838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9789        7.7344        .20221E-03   -1.5309    
  18  Prefactor     39.257        41.663        .63980E-04   -1.4454    
  19  Prefactor     .10000E-03    10.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.519        15.817        .10170E-03   -1.4920    
  21  Normalizat    .80361        .19984        .28835E-03   -.99935    
  22  Prefactor     1.1070        .15586        .19958E-03   -.89243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58168e-09
Minuit parameter uncertainties:
  1  2.56056
  2  19.7974
  3  3.96858e-05
  4  47.6098
  5  6.53924
  6  1.14407e-05
  7  4.32662
  8  0.642492
  9  34.5832
  10  1.6532e-05
  11  2.72596e-06
  12  11.9841
  13  3.75335
  14  1.33534e-06
  15  5.78363
  16  1.05579e-05
  17  7.73638
  18  41.6937
  19  2.05683e-05
  20  15.8208
  21  0.200019
  22  0.155928
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  2.726e-06  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.107e+00  1.559e-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.036e-01  2.000e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191030/likelihoodResults_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.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) = 7563.80140793
delta logL = -0.00286837932435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7563.7985392
delta logL = 3.47599780071e-07

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 'Index     '    2.4549       1.0000          .0000       10.000    
     3 'Normalizat'    .80363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1070       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7563.799     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    316.30        .10996E-02** at limit **
   2  Index         2.4756        6.2356        .50000       -.10982E-03
   3  Normalizat    .80360        .82336E-01    .28835E-03    .12104E-04
   4  Prefactor     1.1070        .66231E-01    .19958E-03    .98879E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7563.799     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      417 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    316.30        .23192E-03** at limit **
   2  Index         2.4756        6.2356        .78824E-05   -.10982E-03
   3  Normalizat    .80360        .82336E-01    .57125E-06    .12104E-04
   4  Prefactor     1.1070        .66231E-01    .22742E-06    .98879E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7563.395     FROM MIGRAD    STATUS=CONVERGED    344 CALLS      761 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18951E-01    .26592E-03** at limit **
   2  Index         8.2959        9.1264        .11774E-01    .23503E-04
   3  Normalizat    .76904        .68106E-01    .23068E-05    .58648E-03
   4  Prefactor     1.1246        .54652E-01    .79830E-05    .92197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.29586
  Normalizat = 0.769044
  Prefactor  = 1.12465
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.395     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      796 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .18831E-01    .27228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2959        9.1355        .47097E-03    .71972    
   3  Normalizat    .76904        .70074E-01    .46136E-06   -1.0123    
   4  Prefactor     1.1246        .56305E-01    .15966E-05   -.88683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01232e-10
Minuit parameter uncertainties:
  1  3.13319e-07
  2  8.23719
  3  0.0700824
  4  0.0563075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191030': 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) = 7563.39460335
delta logL = 0.403936201053

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  3.133e-07  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  8.296e+00  8.237e+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.125e+00  5.631e-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.690e-01  7.008e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.892 -53.772

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/191030/cmap_HighResolution_328752001_329011201_4FGL_J2207.5-5346_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-28 05:37:55.078755', job_id='191030', GAL2='1.12', fit_tolerance='1e-08', EG2='0.77', EG='0.80', time_epoch_completed='1632832675.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.04e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='345' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:37:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 191030: <4FGL_J2207.5-5346_daily_bin345> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin345> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:25:11 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:25:13 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:25:13 2021
Terminated at Tue Sep 28 05:37:55 2021
Results reported at Tue Sep 28 05:37:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin345 331.892 -53.7719 328752001 329011201 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 :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

