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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1053
RA = 331.892, Dec = -53.7719
tmin = 512265601, tmax = 512524801
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='194052', job_status='RUN', time_executed='2021-09-28 05:39:21.976274', time_epoch_executed='1632832761.98' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194052/ft1_4FGL_J2207.5-5346_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194052/ft1_4FGL_J2207.5-5346_daily_bin1053.fits outfile=/scratch/kocevski/194052/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1053.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=512265601.0 tmax=512524801.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.56
user 3.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194052/ft1_filtered_4FGL_J2207.5-5346_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/194052/ltcube_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.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/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits
.....................!
real 11.81
user 11.50
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194052/ft1_filtered_4FGL_J2207.5-5346_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/194052/ltcube_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.fits outfile=/scratch/kocevski/194052/expmap_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.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/194052/ltcube_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.fits
.....................!
real 190.17
user 184.96
sys 4.87

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/194052/ft1_filtered_4FGL_J2207.5-5346_daily_bin1053.fits scfile=/scratch/kocevski/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits outfile=/scratch/kocevski/194052/cmap_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194052/ft1_filtered_4FGL_J2207.5-5346_daily_bin1053.fits scfile=/scratch/kocevski/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits outfile=/scratch/kocevski/194052/cmap_HighResolution_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.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.60
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194052/ft1_filtered_4FGL_J2207.5-5346_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/194052/ft2_4FGL_J2207.5-5346_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194052/Model_4FGL_J2207.5-5346_daily_bin1053.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/194052/ft1_filtered_4FGL_J2207.5-5346_daily_bin1053.fits....................!
real 54.30
user 52.93
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    116.60       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40210E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .29510       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10762E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2413       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87410       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=   7184.089     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2372 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5378       -.57740E-08** at limit **
   2  Prefactor     .10000E-03    6.0247       -.79156E-06** at limit **
   3  Prefactor     15.589        34.929       -.53633E-04   -.18312E-04
   4  Prefactor     116.57        105.84       -.19394E-04    .92430E-05
   5  Prefactor     .10000E-03    3.1371       -.55342E-07** at limit **
   6  Prefactor     .10000E-03    13.829        .38326E-05** at limit **
   7  Prefactor     .10001E-03    2.0383        .66114E-06** at limit **
   8  norm          3.1847        1.0164        .25345E-07    .76850E-04
   9  Prefactor     .10000E-03    10.546       -.25890E-05** at limit **
  10  Prefactor     .10000E-03    2.9215        .25463E-07** at limit **
  11  Prefactor     .10000E-03    2.4383        .33573E-07** at limit **
  12  Prefactor     .10000E-03    82.203        .13274E-04** at limit **
  13  norm          .31716        5.4885       -.46370E-06   -.56904E-04
  14  Prefactor     10.091        4.7280        .30923E-05   -.11819E-03
  15  Prefactor     .10000E-03    6.5982        .20159E-05** at limit **
  16  Prefactor     6.5984        31.516       -.44335E-04   -.95929E-04
  17  Prefactor     5.3256        10.941        .82764E-05    .15072E-03
  18  Prefactor     .10000E-03    26.692        .29239E-05** at limit **
  19  Prefactor     .10000E-03    20.470       -.64069E-05** at limit **
  20  Prefactor     .10000E-03    3.6804        .43332E-07** at limit **
  21  Normalizat    1.2418        .17933        .34456E-05   -.24100E-03
  22  Prefactor     .87378        .13347        .18632E-05   -.51433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5887
  Prefactor  = 116.574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 3.18474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.31716
  Prefactor  = 10.0912
  Prefactor  = 0.000100001
  Prefactor  = 6.59835
  Prefactor  = 5.32559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24182
  Prefactor  = 0.873783
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.089     FROM HESSE     STATUS=OK           340 CALLS     2712 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6098        .20513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.589        34.881        .10129E-03   -1.4918    
   4  Prefactor     116.57        105.75        .37262E-04   -1.3544    
   5  Prefactor     .10000E-03    3.1621        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    16.189        .22919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1847        1.0161        .22707E-04   -1.5351    
   9  Prefactor     .10000E-03    10.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9330        .14145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5099        .25820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    82.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .31716        32.827        .38356E-02   -1.5595    
  14  Prefactor     10.091        4.7448        .12037E-03   -1.5073    
  15  Prefactor     .10000E-03    6.8197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5984        31.489        .15577E-03   -1.5194    
  17  Prefactor     5.3256        10.805        .17412E-03   -1.5246    
  18  Prefactor     .10000E-03    26.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6831        .15881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2418        .21218        .24822E-03   -.85320    
  22  Prefactor     .87378        .15914        .22494E-03   -.97063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64742e-08
Minuit parameter uncertainties:
  1  8.84246e-07
  2  1.46901e-05
  3  34.9263
  4  105.92
  5  1.62873e-05
  6  8.80129e-05
  7  0.000916269
  8  1.01608
  9  1.91351e-05
  10  3.81371e-07
  11  1.66014e-06
  12  5.72666e-05
  13  6.45599
  14  4.74502
  15  0.000167101
  16  28.8535
  17  10.8086
  18  9.7272e-05
  19  7.37438e-05
  20  8.58303e-07
  21  0.212328
  22  0.159226
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.660e-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:  8.738e-01  1.592e-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:  1.242e+00  2.123e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194052/likelihoodResults_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.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) = 7184.09113056
delta logL = -0.00190016814031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7184.08923089
delta logL = -4.98987901665e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4592       1.0000          .0000       10.000    
     3 'Normalizat'    1.2416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87397       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=   7184.089     FROM MIGRAD    STATUS=FAILED        93 CALLS      249 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2.8841        .26373E-03** at limit **
   2  Index         2.4838        6.2419        .50000       -.86632E-04
   3  Normalizat    1.2418        .19821        .24822E-03   -.37282E-04
   4  Prefactor     .87378        .15449        .22494E-03   -.23602E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7184.089     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      364 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2.8841        .22202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4838        6.2419        .34747E-03   -.52734    
   3  Normalizat    1.2418        .19821        .28879E-04   -.85320    
   4  Prefactor     .87378        .15449        .33823E-04   -.97063    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7183.904     FROM MIGRAD    STATUS=FAILED       188 CALLS      552 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22554E-01    3.4171        .10462E-03   -.81902E-02
   2  Index         5.3713        6.5300        .94303E-02    .41750E-03
   3  Normalizat    1.2079        .19366        .19857E-05   -.83588E-04
   4  Prefactor     .88941        .14792        .17995E-05   -.99817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0225545
  Index      = 5.37132
  Normalizat = 1.20795
  Prefactor  = 0.889411
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.904     FROM HESSE     STATUS=OK            27 CALLS      579 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22554E-01    .49700        .20924E-04   -1.5738    
   2  Index         5.3713        7.1960        .18861E-02    .74332E-01
   3  Normalizat    1.2079        .19241        .39715E-06   -.86358    
   4  Prefactor     .88941        .14653        .35991E-06   -.96512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11644e-11
Minuit parameter uncertainties:
  1  0.211282
  2  5.02885
  3  0.192527
  4  0.146592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194052': 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): 1
logL (Free Index) = 7183.90371527
delta logL = 0.185515127377

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.255e-02  2.113e-01  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  5.371e+00  5.029e+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:  8.894e-01  1.466e-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:  1.208e+00  1.925e-01  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/194052/cmap_HighResolution_512265601_512524801_4FGL_J2207.5-5346_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-28 05:51:15.613094', job_id='194052', GAL2='0.89', fit_tolerance='1e-08', EG2='1.21', EG='1.24', time_epoch_completed='1632833475.61', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.86e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1053' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:51:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 194052: <4FGL_J2207.5-5346_daily_bin1053> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1053> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:35:42 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:35:44 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:44 2021
Terminated at Tue Sep 28 05:51:15 2021
Results reported at Tue Sep 28 05:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1053 331.892 -53.7719 512265601 512524801 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 :                                   710.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

