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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1596
RA = 331.892, Dec = -53.7719
tmin = 653011201, tmax = 653270401
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='196890', job_status='RUN', time_executed='2021-09-28 05:49:07.818576', time_epoch_executed='1632833347.82' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196890/ft1_4FGL_J2207.5-5346_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196890/ft1_4FGL_J2207.5-5346_daily_bin1596.fits outfile=/scratch/kocevski/196890/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1596.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=653011201.0 tmax=653270401.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.09
user 2.89
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196890/ft1_filtered_4FGL_J2207.5-5346_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/196890/ltcube_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.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/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits
.....................!
real 12.08
user 11.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196890/ft1_filtered_4FGL_J2207.5-5346_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/196890/ltcube_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.fits outfile=/scratch/kocevski/196890/expmap_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.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/196890/ltcube_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.fits
.....................!
real 190.83
user 186.33
sys 4.19

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/196890/ft1_filtered_4FGL_J2207.5-5346_daily_bin1596.fits scfile=/scratch/kocevski/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits outfile=/scratch/kocevski/196890/cmap_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196890/ft1_filtered_4FGL_J2207.5-5346_daily_bin1596.fits scfile=/scratch/kocevski/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits outfile=/scratch/kocevski/196890/cmap_HighResolution_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196890/ft1_filtered_4FGL_J2207.5-5346_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/196890/ft2_4FGL_J2207.5-5346_daily_bin1596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196890/Model_4FGL_J2207.5-5346_daily_bin1596.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/196890/ft1_filtered_4FGL_J2207.5-5346_daily_bin1596.fits.....................!
real 26.28
user 25.04
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14611E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    327.03       1.0000         .10000E-03   10000.    
     4 'Prefactor '    154.13       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4281       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13029E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73171       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31785E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.272       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15650E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10217E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16553E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5104       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57944       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=   1992.725     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2817 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    2.6603        .20694E-06** at limit **
   2  Prefactor     .10000E-03    26.849       -.81561E-06** at limit **
   3  Prefactor     327.06        145.44        .14429E-04   -.39666E-03
   4  Prefactor     154.18        137.72        .30249E-04   -.47333E-04
   5  Prefactor     2.4369        13.412       -.58076E-05   -.19016E-03
   6  Prefactor     .10017E-03    428.96        .14216E-03** at limit **
   7  Prefactor     .10000E-03    3.2264       -.13207E-07** at limit **
   8  norm          .73170        .81261        .29703E-07   -.47401E-03
   9  Prefactor     .10000E-03    51.896        .23707E-04** at limit **
  10  Prefactor     .10000E-03    34.303        .55214E-05** at limit **
  11  Prefactor     12.692        12.348       -.49838E-07   -.18743E-03
  12  Prefactor     .10000E-03    164.32       -.13707E-03** at limit **
  13  norm          .10000E-03    26.339       -.15005E-06** at limit **
  14  Prefactor     48.276        48.672       -.26149E-06   -.16622E-05
  15  Prefactor     .10000E-03    38.718       -.10016E-04** at limit **
  16  Prefactor     .10000E-03    568.10        .12796E-03** at limit **
  17  Prefactor     .10000E-03    53.779       -.17650E-04** at limit **
  18  Prefactor     .10000E-03    713.46       -.10690E-03** at limit **
  19  Prefactor     .10000E-03    639.63        .11595E-04** at limit **
  20  Prefactor     10000.        940.24        .40966E-03** at limit **
  21  Normalizat    1.5098        .39320       -.74874E-05   -.30302E-03
  22  Prefactor     .57973        .22911       -.22606E-05   -.40937E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100977
  Prefactor  = 0.0001
  Prefactor  = 327.06
  Prefactor  = 154.184
  Prefactor  = 2.43692
  Prefactor  = 0.000100168
  Prefactor  = 0.0001
  norm       = 0.731701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6916
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.2757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Normalizat = 1.50984
  Prefactor  = 0.579732
 **********
 **   18 **HESSE 
 **********

 FCN=   1992.725     FROM HESSE     STATUS=OK           334 CALLS     3151 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10098E-03    11.434        .23479E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     327.06        144.85        .11245E-03   -1.2071    
   4  Prefactor     154.18        138.26        .16235E-03   -1.3218    
   5  Prefactor     2.4369        13.416        .26263E-03   -1.5396    
   6  Prefactor     .10017E-03    434.58        .41156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2304        .78305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73170        .79761        .40509E-04   -1.5537    
   9  Prefactor     .10000E-03    51.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.692        12.370        .11248E-03   -1.4995    
  12  Prefactor     .10000E-03    164.60        .21365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    26.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.276        48.671        .57714E-04   -1.4317    
  15  Prefactor     .10000E-03    38.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    569.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    713.64        .18148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    639.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10000.        942.78        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5098        .44917        .27236E-03   -.77502    
  22  Prefactor     .57973        .26167        .24985E-03   -1.0845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78906e-09
Minuit parameter uncertainties:
  1  0.00668574
  2  4.0394e-05
  3  145.01
  4  138.552
  5  11.4392
  6  0.0172149
  7  2.34051e-06
  8  0.797623
  9  2.87544e-05
  10  7.83159e-05
  11  12.3722
  12  4.98667e-05
  13  2.65568e-05
  14  48.7112
  15  1.76976e-05
  16  0.000160696
  17  1.11585e-05
  18  2.00893e-05
  19  2.40348e-05
  20  3.3254e-05
  21  0.450366
  22  0.262217
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.269e+01  1.237e+01  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:  5.797e-01  2.622e-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.510e+00  4.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 1.13e-07
Energy Flux (Fixed Index): 3.65e-05 +/- 3.55e-05

TS (Fixed Index): 2.71
Ra Dec: 331.892 -53.772
Photon Flux Upper Limit: 4.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196890/likelihoodResults_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.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) = 1992.65110616
delta logL = 0.0739987526417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1992.64539417
delta logL = 0.0797107411718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.801       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1082       1.0000          .0000       10.000    
     3 'Normalizat'    1.5308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57230       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=   1992.645     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      199 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.801        20.864        .26955E-02    .10834E-02
   2  Index         2.1081        1.0635        .18862       -.12765E-05
   3  Normalizat    1.5307        .38282        .61248E-01    .34626E-06
   4  Prefactor     .57240        .22753        .40675E-01    .67431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8006
  Index      = 2.10806
  Normalizat = 1.53069
  Prefactor  = 0.572396
 **********
 **   18 **HESSE 
 **********

 FCN=   1992.645     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.801        13.644        .10782E-03   -1.4965    
   2  Index         2.1081        .78387        .73638E-02   -.61675    
   3  Normalizat    1.5307        .43235        .27087E-03   -.76920    
   4  Prefactor     .57240        .25764        .25128E-03   -1.0876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58086e-09
Minuit parameter uncertainties:
  1  13.6473
  2  0.788777
  3  0.4334
  4  0.25817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196890': 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) = 1992.64539407
delta logL = 0.0797108338797

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.380e+01  1.365e+01  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.108e+00  7.888e-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:  5.724e-01  2.582e-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.531e+00  4.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 2.11 +/- 0.79
Photon Flux (Free Index): 8.50e-08 +/- 1.12e-07
Energy Flux (Free Index): 4.59e-05 +/- 5.88e-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/196890/cmap_HighResolution_653011201_653270401_4FGL_J2207.5-5346_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-02', comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='4.59e-05', photon_flux_error='1.13e-07', dlogl='7.97e-02', energy_flux='3.65e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-28 05:56:22.841672', photon_index_error2='0.79', photon_index2='2.11', ts='2.71', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='4.16e-07', energy_flux_error2='5.88e-05', EG='1.51', time_epoch_completed='1632833782.84', return_code='0', job_id='196890', GAL2='0.57', EG2='1.53', return_code2='0', energy_flux_error='3.55e-05', photon_flux_error2='1.12e-07', ts2='2.85', photon_index='2.44' WHERE bin_id='1596' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 196890: <4FGL_J2207.5-5346_daily_bin1596> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1596> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 05:45:28 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:45:29 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:45:29 2021
Terminated at Tue Sep 28 05:56:23 2021
Results reported at Tue Sep 28 05:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1596 331.892 -53.7719 653011201 653270401 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 :                                   426.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             219.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            655 sec.

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

