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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin895
RA = 331.892, Dec = -53.7719
tmin = 471312001, tmax = 471571201
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='193789', job_status='RUN', time_executed='2021-09-28 05:38:35.678778', time_epoch_executed='1632832715.68' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193789/ft1_4FGL_J2207.5-5346_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193789/ft1_4FGL_J2207.5-5346_daily_bin895.fits outfile=/scratch/kocevski/193789/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin895.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.04
user 4.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.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/193789/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.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.54
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/193789/ltcube_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.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/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits
.....................!
real 11.37
user 11.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/193789/ltcube_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.fits outfile=/scratch/kocevski/193789/expmap_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.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/193789/ltcube_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.fits
.....................!
real 190.32
user 185.11
sys 4.91

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/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.fits scfile=/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits outfile=/scratch/kocevski/193789/cmap_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.fits scfile=/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits outfile=/scratch/kocevski/193789/cmap_HighResolution_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.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.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/193789/ft2_4FGL_J2207.5-5346_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193789/Model_4FGL_J2207.5-5346_daily_bin895.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/193789/ft1_filtered_4FGL_J2207.5-5346_daily_bin895.fits.....................!
real 57.05
user 55.73
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.928       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.297       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0788       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2464       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9270       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15795E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18141E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9582       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2314       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81061       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1212       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=   7792.639     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2448 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.929        3.2986        .49943E-07    .10019E-04
   2  Prefactor     19.298        15.181       -.25418E-06    .73807E-05
   3  Prefactor     5.0786        49.999       -.18857E-05   -.11492E-04
   4  Prefactor     55.103        69.576       -.28834E-04    .27558E-05
   5  Prefactor     .72355        3.1242       -.12945E-05    .67997E-04
   6  Prefactor     20.576        17.315       -.19699E-06    .21284E-04
   7  Prefactor     .10000E-03    1.5604       -.26990E-07** at limit **
   8  norm          1.2463        .72083        .75641E-07    .14260E-03
   9  Prefactor     8.1175        30.276        .32382E-05    .20435E-04
  10  Prefactor     2.9267        6.3645       -.14486E-05   -.50338E-03
  11  Prefactor     .10000E-03    1.6517       -.64683E-07** at limit **
  12  Prefactor     .10000E-03    22.089       -.32486E-06** at limit **
  13  norm          3.5024        3.4947       -.12476E-05    .34161E-03
  14  Prefactor     1.9503        3.6139        .39701E-06   -.95450E-03
  15  Prefactor     .10000E-03    3.1901       -.26876E-06** at limit **
  16  Prefactor     .10000E-03    59.781       -.69904E-06** at limit **
  17  Prefactor     .10000E-03    10.055       -.17303E-06** at limit **
  18  Prefactor     .10000E-03    33.241        .16629E-06** at limit **
  19  Prefactor     3.9508        21.909       -.13868E-05   -.38030E-04
  20  Prefactor     8.2305        11.271       -.32124E-06   -.28682E-04
  21  Normalizat    .81045        .16873        .47677E-06    .25566E-03
  22  Prefactor     1.1213        .13183        .12299E-05    .22753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9286
  Prefactor  = 19.298
  Prefactor  = 5.07864
  Prefactor  = 55.1026
  Prefactor  = 0.723545
  Prefactor  = 20.5765
  Prefactor  = 0.0001
  norm       = 1.24628
  Prefactor  = 8.11753
  Prefactor  = 2.92674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.50241
  Prefactor  = 1.95029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.95081
  Prefactor  = 8.23046
  Normalizat = 0.810453
  Prefactor  = 1.1213
 **********
 **   18 **HESSE 
 **********

 FCN=   7792.639     FROM HESSE     STATUS=OK           352 CALLS     2800 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.929        3.2997        .80897E-04   -1.5017    
   2  Prefactor     19.298        15.176        .91176E-04   -1.4829    
   3  Prefactor     5.0786        50.030        .17841E-03   -1.5257    
   4  Prefactor     55.103        69.527        .54025E-04   -1.4222    
   5  Prefactor     .72355        11.865        .29498E-02   -1.5538    
   6  Prefactor     20.576        17.307        .88305E-04   -1.4800    
   7  Prefactor     .10000E-03    1.5959        .10762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2463        .71352        .54982E-04   -1.5485    
   9  Prefactor     8.1175        30.108        .14075E-03   -1.5138    
  10  Prefactor     2.9267        6.3637        .23744E-03   -1.5366    
  11  Prefactor     .10000E-03    3.3920        .21846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5024        3.4886        .16026E-03   -1.5334    
  14  Prefactor     1.9503        3.5998        .21461E-03   -1.5429    
  15  Prefactor     .10000E-03    11.195        .30056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    61.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9508        21.869        .20275E-03   -1.5310    
  20  Prefactor     8.2305        11.276        .13974E-03   -1.5134    
  21  Normalizat    .81045        .19232        .28779E-03   -.99682    
  22  Prefactor     1.1213        .15332        .20080E-03   -.88789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44434e-09
Minuit parameter uncertainties:
  1  3.29971
  2  15.1795
  3  31.9144
  4  69.6297
  5  5.86096
  6  17.3116
  7  2.24621e-06
  8  0.713521
  9  30.1646
  10  6.36516
  11  1.00149e-05
  12  1.67665e-05
  13  3.48876
  14  3.60022
  15  0.000103324
  16  0.000105349
  17  1.44456e-05
  18  7.07388e-06
  19  18.6007
  20  11.2791
  21  0.192478
  22  0.153384
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.001e-05  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.121e+00  1.534e-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.105e-01  1.925e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193789/likelihoodResults_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.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) = 7792.64073872
delta logL = -0.0014037935407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7792.63933514
delta logL = -2.14663486986e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4598       1.0000          .0000       10.000    
     3 'Normalizat'    .81044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1214       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=   7792.639     FROM MIGRAD    STATUS=FAILED        96 CALLS      264 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10660E-03    34.196        .21835E-02** at limit **
   2  Index         2.6365        7.0147        .50000       -.47140E-04
   3  Normalizat    .81045        .11796E-01    .28779E-03    .93661E-04
   4  Prefactor     1.1213        .95887E-02    .20080E-03    .12725E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7792.639     FROM SIMPLEX   STATUS=PROGRESS     119 CALLS      383 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    34.196        .27738E-03** at limit **
   2  Index         2.6106        7.0147        .82092E-02   -.47140E-04
   3  Normalizat    .81040        .11796E-01    .26238E-04    .93661E-04
   4  Prefactor     1.1213        .95887E-02    .12993E-04    .12725E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7792.639     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      443 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .70793E-01    .43670E-01** at limit **
   2  Index         2.9390        7.7784        .50000        .16130E-04
   3  Normalizat    .81045        .12284E-02    .11512E-04   -.26269E-04
   4  Prefactor     1.1213        .99859E-03    .40160E-04   -.70828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.93898
  Normalizat = 0.810451
  Prefactor  = 1.1213
 **********
 **   18 **HESSE 
 **********

 FCN=   7792.639     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      472 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.315        .15084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9390        8.0887        .50000       -.42487    
   3  Normalizat    .81045        .10639E-01    .23023E-05   -.99682    
   4  Prefactor     1.1213        .86475E-02    .80320E-05   -.88789    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48976e-07
Minuit parameter uncertainties:
  1  0.000140318
  2  136.773
  3  0.0106386
  4  0.00864755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193789': 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) = 7792.63933072
delta logL = 4.20433480031e-06

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.000e-04  1.403e-04  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.939e+00  1.368e+02  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.121e+00  8.648e-03  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.105e-01  1.064e-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/193789/cmap_HighResolution_471312001_471571201_4FGL_J2207.5-5346_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-28 05:51:01.033309', job_id='193789', GAL2='1.12', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632833461.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='895' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 193789: <4FGL_J2207.5-5346_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin895 331.892 -53.7719 471312001 471571201 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 :                                   743.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

