/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7401
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2207.5-5346_daily_bin637
RA = 331.892, Dec = -53.7719
tmin = 404438401, tmax = 404697601
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='192312', job_status='RUN', time_executed='2021-09-28 05:30:26.322234', time_epoch_executed='1632832226.32' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192312/ft1_4FGL_J2207.5-5346_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192312/ft1_4FGL_J2207.5-5346_daily_bin637.fits outfile=/scratch/kocevski/192312/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin637.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=404438401.0 tmax=404697601.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 12.67
user 12.26
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192312/ft1_filtered_4FGL_J2207.5-5346_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/192312/ltcube_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.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/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits
.....................!
real 11.03
user 10.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192312/ft1_filtered_4FGL_J2207.5-5346_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/192312/ltcube_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.fits outfile=/scratch/kocevski/192312/expmap_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.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/192312/ltcube_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.fits
.....................!
real 189.58
user 184.94
sys 4.26

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/192312/ft1_filtered_4FGL_J2207.5-5346_daily_bin637.fits scfile=/scratch/kocevski/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits outfile=/scratch/kocevski/192312/cmap_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.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/192312/ft1_filtered_4FGL_J2207.5-5346_daily_bin637.fits scfile=/scratch/kocevski/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits outfile=/scratch/kocevski/192312/cmap_HighResolution_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=331.892 yref=-53.7719 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192312/ft1_filtered_4FGL_J2207.5-5346_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/192312/ft2_4FGL_J2207.5-5346_daily_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192312/Model_4FGL_J2207.5-5346_daily_bin637.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/192312/ft1_filtered_4FGL_J2207.5-5346_daily_bin637.fits.....................!
real 36.53
user 35.28
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9454       1.0000         .10000E-03   10000.    
     8 'norm      '    .81134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11547E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41053       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    221.25       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .62347       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1229       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=   4248.661     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2845 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6345        3.2645        .46096E-06   -.37784E-04
   2  Prefactor     25.168        27.788        .10906E-05    .18830E-03
   3  Prefactor     .49890        39.534       -.14469E-05    .41340E-04
   4  Prefactor     .10000E-03    61.392        .94708E-07** at limit **
   5  Prefactor     17.941        11.677       -.20705E-06    .12105E-03
   6  Prefactor     .10000E-03    8.5441       -.68344E-07** at limit **
   7  Prefactor     4.9452        6.0087        .43400E-05   -.76140E-03
   8  norm          .81120        .93613        .16747E-06    .12298E-03
   9  Prefactor     37.441        59.597       -.11542E-05    .13653E-03
  10  Prefactor     .10000E-03    10.396       -.83554E-06** at limit **
  11  Prefactor     2.6631        4.1057        .12336E-06   -.96623E-05
  12  Prefactor     .11660E-03    153.30        .69641E-06** at limit **
  13  norm          .10000E-03    2.4810        .34381E-07** at limit **
  14  Prefactor     2.8344        5.2396        .53305E-06   -.74250E-04
  15  Prefactor     .85482        7.7919        .82765E-06   -.13913E-03
  16  Prefactor     .10000E-03    40.730        .71219E-06** at limit **
  17  Prefactor     2.0143        37.331        .65306E-05    .28901E-03
  18  Prefactor     221.46        202.14        .54556E-05    .22714E-03
  19  Prefactor     20.164        50.697       -.34991E-05   -.14474E-03
  20  Prefactor     14.965        21.956       -.31250E-06   -.17065E-03
  21  Normalizat    .62368        .24603       -.43272E-05    .47087E-05
  22  Prefactor     1.1228        .17680        .22080E-06   -.75135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63453
  Prefactor  = 25.1679
  Prefactor  = 0.498896
  Prefactor  = 0.0001
  Prefactor  = 17.9406
  Prefactor  = 0.0001
  Prefactor  = 4.94522
  norm       = 0.811198
  Prefactor  = 37.4407
  Prefactor  = 0.0001
  Prefactor  = 2.66314
  Prefactor  = 0.000116603
  norm       = 0.0001
  Prefactor  = 2.83442
  Prefactor  = 0.854822
  Prefactor  = 0.000100002
  Prefactor  = 2.01435
  Prefactor  = 221.457
  Prefactor  = 20.164
  Prefactor  = 14.9652
  Normalizat = 0.623683
  Prefactor  = 1.12278
 **********
 **   18 **HESSE 
 **********

 FCN=   4248.661     FROM HESSE     STATUS=OK           366 CALLS     3211 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6345        3.2419        .15757E-03   -1.5452    
   2  Prefactor     25.168        27.842        .79856E-04   -1.4704    
   3  Prefactor     .49890        44.157        .13497       -1.5567    
   4  Prefactor     .10000E-03    61.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.941        11.682        .94550E-04   -1.4861    
   6  Prefactor     .10000E-03    8.5483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9452        6.1577        .83811E-03   -1.5263    
   8  norm          .81120        .90066        .64714E-03   -1.5528    
   9  Prefactor     37.441        57.249        .65532E-04   -1.4483    
  10  Prefactor     .10000E-03    35.989        .34045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6631        4.0702        .15370E-03   -1.5382    
  12  Prefactor     .11660E-03    118.46        .20637       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4811        .10027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8344        5.2134        .19152E-03   -1.5371    
  15  Prefactor     .85482        14.882        .31548E-02   -1.5523    
  16  Prefactor     .10000E-03    40.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0143        35.034        .28909E-03   -1.5424    
  18  Prefactor     221.46        195.47        .13597E-03   -1.2721    
  19  Prefactor     20.164        50.846        .89196E-04   -1.4810    
  20  Prefactor     14.965        22.093        .10353E-03   -1.4934    
  21  Normalizat    .62368        .28320        .31074E-03   -1.0699    
  22  Prefactor     1.1228        .20757        .18940E-03   -.88742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28711e-08
Minuit parameter uncertainties:
  1  3.24225
  2  27.8565
  3  9.39342
  4  8.88981e-05
  5  11.6836
  6  2.52408e-06
  7  6.15848
  8  0.900673
  9  57.333
  10  0.0002588
  11  4.07062
  12  0.0888739
  13  1.31834e-06
  14  5.21427
  15  7.13499
  16  0.000548646
  17  16.8125
  18  196.045
  19  50.9552
  20  22.1047
  21  0.283862
  22  0.207724
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.663e+00  4.071e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  7.415e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.123e+00  2.077e-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:  6.237e-01  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/192312/likelihoodResults_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.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) = 4248.30228297
delta logL = 0.358867934863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4248.26898405
delta logL = 0.392166847122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85977       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7219       1.0000          .0000       10.000    
     3 'Normalizat'    .57799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1463       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   4248.269     FROM MIGRAD    STATUS=FAILED        96 CALLS      290 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86014        38.003        .29123E-02    .14179E-01
   2  Index         3.7223        6.6990        .64322E-02    .35910E-04
   3  Normalizat    .57815        .14007        .32194E-03    .74157E-06
   4  Prefactor     1.1462        .11379        .18766E-03    .12783E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4248.269     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      380 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86014        38.003        .13293E-03    .14179E-01
   2  Index         3.7223        6.6990        .15308E-02    .35910E-04
   3  Normalizat    .57815        .14007        .13687E-03    .74157E-06
   4  Prefactor     1.1462        .11379        .40908E-04    .12783E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4248.269     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      411 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86021        5.6875        .28121E-03   -.12039E-03
   2  Index         3.7222        2.9272        .25729E-03   -.10693E-04
   3  Normalizat    .57815        .25293        .12878E-04   -.22953E-05
   4  Prefactor     1.1462        .20051        .75064E-05    .28776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.860212
  Index      = 3.72224
  Normalizat = 0.578153
  Prefactor  = 1.14623
 **********
 **   18 **HESSE 
 **********

 FCN=   4248.269     FROM HESSE     STATUS=OK            25 CALLS      436 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86021        2.7763        .11249E-04   -1.5522    
   2  Index         3.7222        1.9196        .10291E-04   -.25842    
   3  Normalizat    .57815        .25325        .25755E-05   -1.0892    
   4  Prefactor     1.1462        .20020        .15013E-05   -.88002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96141e-12
Minuit parameter uncertainties:
  1  2.77676
  2  1.97401
  3  0.253757
  4  0.200334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192312': 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) = 4248.26898299
delta logL = 0.392167905736

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  8.602e-01  2.777e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.722e+00  1.974e+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.146e+00  2.003e-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:  5.782e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 3.72 +/- 1.97
Photon Flux (Free Index): 5.49e-08 +/- 5.49e-08
Energy Flux (Free Index): 8.67e-06 +/- 8.87e-06

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/192312/cmap_HighResolution_404438401_404697601_4FGL_J2207.5-5346_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', comment='SUCCESS', energy_flux2='8.67e-06', dlogl='3.92e-01', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-09-28 05:40:30.906915', photon_index_error2='1.97', photon_index2='3.72', ts='0.56', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.87e-06', EG='0.62', time_epoch_completed='1632832830.91', return_code='0', job_id='192312', GAL2='1.15', EG2='0.58', return_code2='0', photon_flux_error2='5.49e-08', ts2='1.41', photon_index='2.44' WHERE bin_id='637' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:40:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 192312: <4FGL_J2207.5-5346_daily_bin637> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin637> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:30:17 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:30:18 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:30:18 2021
Terminated at Tue Sep 28 05:40:31 2021
Results reported at Tue Sep 28 05:40:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin637 331.892 -53.7719 404438401 404697601 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 :                                   601.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            614 sec.

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

