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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin769
RA = 331.892, Dec = -53.7719
tmin = 438652801, tmax = 438912001
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='193596', job_status='RUN', time_executed='2021-09-28 05:39:00.530630', time_epoch_executed='1632832740.53' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193596

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193596/ft1_4FGL_J2207.5-5346_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193596/ft1_4FGL_J2207.5-5346_daily_bin769.fits outfile=/scratch/kocevski/193596/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin769.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=438652801.0 tmax=438912001.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 6.50
user 6.18
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193596/ft1_filtered_4FGL_J2207.5-5346_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/193596/ltcube_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.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/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits
.....................!
real 13.78
user 13.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193596/ft1_filtered_4FGL_J2207.5-5346_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/193596/ltcube_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.fits outfile=/scratch/kocevski/193596/expmap_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.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/193596/ltcube_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.fits
.....................!
real 194.12
user 188.99
sys 4.77

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/193596/ft1_filtered_4FGL_J2207.5-5346_daily_bin769.fits scfile=/scratch/kocevski/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits outfile=/scratch/kocevski/193596/cmap_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.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/193596/ft1_filtered_4FGL_J2207.5-5346_daily_bin769.fits scfile=/scratch/kocevski/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits outfile=/scratch/kocevski/193596/cmap_HighResolution_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193596/ft1_filtered_4FGL_J2207.5-5346_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/193596/ft2_4FGL_J2207.5-5346_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193596/Model_4FGL_J2207.5-5346_daily_bin769.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/193596/ft1_filtered_4FGL_J2207.5-5346_daily_bin769.fits.....................!
real 38.90
user 37.53
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.955       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7212       1.0000         .10000E-03   10000.    
     8 'norm      '    .33489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.948       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.502       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.545       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44108       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85771       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94865       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=   4363.158     FROM MIGRAD    STATUS=FAILED       897 CALLS     2781 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5759        5.8873        .14560E-03   -.67931E-05
   2  Prefactor     .10000E-03    9.6067        .18142E-02** at limit **
   3  Prefactor     .10000E-03    34.294        .18142E-02** at limit **
   4  Prefactor     .57539        160.14        .22128        .37605E-04
   5  Prefactor     .10000E-03    17.869        .32681E-02** at limit **
   6  Prefactor     51.918        38.419        .55641E-04   -.25062E-03
   7  Prefactor     4.7278        6.1239        .17548E-03   -.77614E-04
   8  norm          .33573        .53960        .64309E-03    .30319E-02
   9  Prefactor     25.982        29.043        .78643E-04   -.89108E-04
  10  Prefactor     .10000E-03    2.2532        .96790E-03** at limit **
  11  Prefactor     4.1442        3.7338        .11659E-03   -.11701E-04
  12  Prefactor     65.395        78.558        .24794E-03   -.31180E-04
  13  norm          .10000E-03    2.7650        .10724E-02** at limit **
  14  Prefactor     1.8774        3.7794        .17408E-03    .92605E-04
  15  Prefactor     5.4347        7.1878        .86208E-03    .96361E-04
  16  Prefactor     .10000E-03    22.382        .18142E-02** at limit **
  17  Prefactor     5.7988        9.9696        .16678E-03   -.49761E-05
  18  Prefactor     .10000E-03    36.971        .18142E-02** at limit **
  19  Prefactor     10.541        33.509        .12338E-03   -.38699E-05
  20  Prefactor     .43164        41.122        .39236E-02    .12667E-02
  21  Normalizat    .85786        .24913        .25934E-03    .38532E-04
  22  Prefactor     .94872        .19346        .20277E-03   -.54406E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4363.158     FROM SIMPLEX   STATUS=UNCHANGED   1143 CALLS     3924 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5759        5.8873        .52953E-06   -1.5195    
   2  Prefactor     .10000E-03    9.6067        .52062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.294        .10974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57539        160.14        .51467E-06   -1.5556    
   5  Prefactor     .10000E-03    17.869        .42692E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.918        38.419        .47006E-06   -1.4266    
   7  Prefactor     4.7278        6.1239        .50187E-06   -1.5273    
   8  norm          .33573        .53960        .51215E-06   -1.5592    
   9  Prefactor     25.982        29.043        .49334E-06   -1.4688    
  10  Prefactor     .10000E-03    2.2532        .19224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1442        3.7338        .50393E-06   -1.5301    
  12  Prefactor     65.395        78.558        .46861E-06   -1.4089    
  13  norm          .10000E-03    2.7650        .18931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8774        3.7794        .50762E-06   -1.5434    
  15  Prefactor     5.4347        7.1878        .50150E-06   -1.5242    
  16  Prefactor     .10000E-03    22.382        .51005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7988        9.9696        .50005E-06   -1.5226    
  18  Prefactor     .10000E-03    36.971        .80539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.541        33.509        .49384E-06   -1.5059    
  20  Prefactor     .43164        41.122        .51089E-06   -1.5577    
  21  Normalizat    .85786        .24913        .32175E-06   -.97957    
  22  Prefactor     .94872        .19346        .31012E-06   -.94459    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4363.158     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     4263 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5759        5.8871        .58240E-05    .39041E-05
   2  Prefactor     .10000E-03    9.6068        .36285E-03** at limit **
   3  Prefactor     .10000E-03    34.295        .36285E-03** at limit **
   4  Prefactor     .57536        164.12        .21782        .38529E-04
   5  Prefactor     .10000E-03    17.993        .65362E-03** at limit **
   6  Prefactor     51.918        38.416        .11128E-04    .16346E-05
   7  Prefactor     4.7278        6.1229        .70192E-05    .58307E-05
   8  norm          .33572        .53932        .25723E-04    .12817E-04
   9  Prefactor     25.983        29.042        .15729E-04    .72281E-06
  10  Prefactor     .10000E-03    2.2532        .19358E-03** at limit **
  11  Prefactor     4.1442        3.7336        .46636E-05    .14627E-05
  12  Prefactor     65.396        78.551        .99175E-05    .22927E-06
  13  norm          .10000E-03    2.7650        .21448E-03** at limit **
  14  Prefactor     1.8774        3.7790        .69632E-05    .32653E-06
  15  Prefactor     5.4347        7.1840        .34483E-04    .98906E-06
  16  Prefactor     .10000E-03    22.385        .36285E-03** at limit **
  17  Prefactor     5.7989        9.9687        .66712E-05    .34083E-06
  18  Prefactor     .10000E-03    36.971        .36285E-03** at limit **
  19  Prefactor     10.541        33.499        .49353E-05   -.18428E-06
  20  Prefactor     .43171        41.597        .78472E-03    .52184E-04
  21  Normalizat    .85785        .24923        .10374E-04    .96440E-05
  22  Prefactor     .94873        .19363        .40554E-04    .10709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.575362
  Prefactor  = 0.0001
  Prefactor  = 51.9183
  Prefactor  = 4.72781
  norm       = 0.335717
  Prefactor  = 25.9826
  Prefactor  = 0.0001
  Prefactor  = 4.14416
  Prefactor  = 65.3956
  norm       = 0.0001
  Prefactor  = 1.87742
  Prefactor  = 5.43472
  Prefactor  = 0.0001
  Prefactor  = 5.79887
  Prefactor  = 0.0001
  Prefactor  = 10.5412
  Prefactor  = 0.431705
  Normalizat = 0.857847
  Prefactor  = 0.948731
 **********
 **   18 **HESSE 
 **********

 FCN=   4363.158     FROM HESSE     STATUS=OK           332 CALLS     4595 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5759        5.8868        .11648E-05   -1.5195    
   2  Prefactor     .10000E-03    9.6068        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.295        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57536        162.71        .21901       -1.5556    
   5  Prefactor     .10000E-03    17.998        .13072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.918        38.410        .22257E-05   -1.4266    
   7  Prefactor     4.7278        6.1218        .14038E-05   -1.5273    
   8  norm          .33572        .53927        .10289E-05   -1.5592    
   9  Prefactor     25.983        29.047        .31457E-05   -1.4688    
  10  Prefactor     .10000E-03    2.2532        .38716E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1442        3.7341        .93272E-06   -1.5301    
  12  Prefactor     65.396        78.610        .19835E-05   -1.4089    
  13  norm          .10000E-03    2.7650        .42896E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8774        3.7766        .13926E-05   -1.5434    
  15  Prefactor     5.4347        7.1837        .13793E-05   -1.5242    
  16  Prefactor     .10000E-03    22.386        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7989        9.9727        .13342E-05   -1.5226    
  18  Prefactor     .10000E-03    36.971        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.541        33.499        .49353E-05   -1.5059    
  20  Prefactor     .43171        41.602        .15694E-03   -1.5577    
  21  Normalizat    .85785        .24906        .20747E-05   -.97958    
  22  Prefactor     .94873        .19357        .81108E-05   -.94459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39717e-11
Minuit parameter uncertainties:
  1  5.88729
  2  8.6131e-08
  3  2.34975e-06
  4  19.403
  5  6.3148e-07
  6  38.4286
  7  6.12259
  8  0.539276
  9  29.0631
  10  2.00823e-08
  11  3.73432
  12  78.7356
  13  3.68188e-08
  14  3.77708
  15  7.18483
  16  2.58895e-06
  17  9.9756
  18  4.42146e-07
  19  33.5591
  20  8.48085
  21  0.249396
  22  0.193707
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  4.144e+00  3.734e+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:  9.487e-01  1.937e-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.578e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.07e-05

TS (Fixed Index): 1.96
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193596/likelihoodResults_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.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): 0
logL (Free Index) = 4363.15753363
delta logL = 0.000330611193931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4363.15735632
delta logL = 0.00050791834019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4136       1.0000          .0000       10.000    
     3 'Normalizat'    .85825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94848       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=   4363.157     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2295        123.82        .48989E-02    .17874E-03
   2  Index         2.4135        6.0743        .19061        .45423E-04
   3  Normalizat    .85824        .80975E-01    .44366E-01    .12047E-04
   4  Prefactor     .94848        .66271E-01    .45620E-01    .37673E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22954
  Index      = 2.41349
  Normalizat = 0.858239
  Prefactor  = 0.948483
 **********
 **   18 **HESSE 
 **********

 FCN=   4363.157     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2295        4.7890        .11780E-03   -1.5297    
   2  Index         2.4135        .70877        .71475E-02   -.54370    
   3  Normalizat    .85824        .23037        .25929E-03   -.97943    
   4  Prefactor     .94848        .18923        .20279E-03   -.94467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48171e-12
Minuit parameter uncertainties:
  1  4.78948
  2  0.712052
  3  0.230638
  4  0.189358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193596': 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): 0
logL (Free Index) = 4363.1573563
delta logL = 0.000507939765157

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  4.230e+00  4.789e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.413e+00  7.121e-01  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:  9.485e-01  1.894e-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.582e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.41 +/- 0.71
Photon Flux (Free Index): 3.77e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/193596/cmap_HighResolution_438652801_438912001_4FGL_J2207.5-5346_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='1.21e-05', photon_flux_error='3.42e-08', dlogl='5.08e-04', energy_flux='1.19e-05', photon_flux2='3.77e-08', job_status='DONE', time_completed='2021-09-28 05:50:09.411990', photon_index_error2='0.71', photon_index2='2.41', ts='1.96', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.37e-05', EG='0.86', time_epoch_completed='1632833409.41', return_code='0', job_id='193596', GAL2='0.95', EG2='0.86', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.50e-08', ts2='1.96', photon_index='2.44' WHERE bin_id='769' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 193596: <4FGL_J2207.5-5346_daily_bin769> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin769 331.892 -53.7719 438652801 438912001 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 :                                   667.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

