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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1142
RA = 331.892, Dec = -53.7719
tmin = 535334401, tmax = 535593601
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='195217', job_status='RUN', time_executed='2021-09-28 05:42:47.133818', time_epoch_executed='1632832967.13' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195217/ft1_4FGL_J2207.5-5346_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195217/ft1_4FGL_J2207.5-5346_daily_bin1142.fits outfile=/scratch/kocevski/195217/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1142.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=535334401.0 tmax=535593601.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.19
user 4.88
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195217/ft1_filtered_4FGL_J2207.5-5346_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/195217/ltcube_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.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/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits
.....................!
real 11.98
user 11.48
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195217/ft1_filtered_4FGL_J2207.5-5346_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/195217/ltcube_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.fits outfile=/scratch/kocevski/195217/expmap_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.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/195217/ltcube_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.fits
.....................!
real 191.03
user 185.75
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/195217/ft1_filtered_4FGL_J2207.5-5346_daily_bin1142.fits scfile=/scratch/kocevski/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits outfile=/scratch/kocevski/195217/cmap_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195217/ft1_filtered_4FGL_J2207.5-5346_daily_bin1142.fits scfile=/scratch/kocevski/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits outfile=/scratch/kocevski/195217/cmap_HighResolution_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.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/195217/ft1_filtered_4FGL_J2207.5-5346_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/195217/ft2_4FGL_J2207.5-5346_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195217/Model_4FGL_J2207.5-5346_daily_bin1142.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/195217/ft1_filtered_4FGL_J2207.5-5346_daily_bin1142.fits.....................!
real 57.91
user 56.46
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32540       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    157.03       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2071       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3095       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32585E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8825       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.764       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .64183       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2351       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=   7791.097     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2411 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32565        1.5043        .57292E-06   -.46763E-03
   2  Prefactor     11.895        16.921        .20207E-05   -.85946E-04
   3  Prefactor     .10000E-03    14.572       -.21541E-08** at limit **
   4  Prefactor     157.07        83.337        .12951E-05    .17745E-03
   5  Prefactor     5.7108        5.3787        .28384E-06   -.46878E-04
   6  Prefactor     14.357        21.505        .13059E-06   -.18445E-04
   7  Prefactor     .10000E-03    2.1545        .49913E-06** at limit **
   8  norm          1.2072        .80597        .14073E-06    .10404E-04
   9  Prefactor     .10001E-03    79.005        .19793E-05** at limit **
  10  Prefactor     2.0083        6.7775       -.88190E-05    .74811E-04
  11  Prefactor     5.3092        3.9395        .26732E-05   -.11665E-04
  12  Prefactor     .10012E-03    1041.8       -.35608E-04** at limit **
  13  norm          .10000E-03    2.3609       -.84859E-07** at limit **
  14  Prefactor     14.178        4.6700        .99975E-07   -.94027E-04
  15  Prefactor     1.8820        3.0926        .22550E-06    .95398E-04
  16  Prefactor     12.739        22.419       -.90483E-06   -.64281E-05
  17  Prefactor     3.7370        10.784        .54854E-06    .52410E-04
  18  Prefactor     .10000E-03    35.295       -.23172E-07** at limit **
  19  Prefactor     .10000E-03    12.695        .62659E-07** at limit **
  20  Prefactor     .10000E-03    7.3189        .78455E-07** at limit **
  21  Normalizat    .64173        .17566       -.14875E-05    .11677E-04
  22  Prefactor     1.2351        .13635       -.91539E-06   -.11122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.32565
  Prefactor  = 11.8955
  Prefactor  = 0.0001
  Prefactor  = 157.069
  Prefactor  = 5.71076
  Prefactor  = 14.3572
  Prefactor  = 0.000100001
  norm       = 1.20716
  Prefactor  = 0.000100013
  Prefactor  = 2.00826
  Prefactor  = 5.30923
  Prefactor  = 0.000100124
  norm       = 0.0001
  Prefactor  = 14.1782
  Prefactor  = 1.88202
  Prefactor  = 12.7392
  Prefactor  = 3.73703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.641725
  Prefactor  = 1.23512
 **********
 **   18 **HESSE 
 **********

 FCN=   7791.097     FROM HESSE     STATUS=OK           350 CALLS     2761 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32565        3.0122        .20359E-02   -1.5594    
   2  Prefactor     11.895        16.850        .58075E-03   -1.5018    
   3  Prefactor     .10000E-03    14.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     157.07        83.522        .16087E-03   -1.3195    
   5  Prefactor     5.7108        5.3713        .16811E-03   -1.5230    
   6  Prefactor     14.357        21.480        .10573E-03   -1.4950    
   7  Prefactor     .10000E-03    5.1034        .24944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2072        .78944        .62076E-04   -1.5488    
   9  Prefactor     .10001E-03    81.701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0083        6.6903        .29073E-03   -1.5425    
  11  Prefactor     5.3092        3.9897        .71073E-03   -1.5247    
  12  Prefactor     .10012E-03    1041.4        .39474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3635        .13245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.178        4.6740        .10456E-03   -1.4955    
  15  Prefactor     1.8820        3.0640        .19136E-03   -1.5434    
  16  Prefactor     12.739        22.082        .11212E-03   -1.4994    
  17  Prefactor     3.7370        10.595        .20936E-03   -1.5321    
  18  Prefactor     .10000E-03    35.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64173        .19687        .32142E-03   -1.0624    
  22  Prefactor     1.2351        .15474        .19289E-03   -.85257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06543e-10
Minuit parameter uncertainties:
  1  1.98064
  2  16.8568
  3  1.21061e-06
  4  83.585
  5  5.37179
  6  21.4919
  7  0.000159517
  8  0.789451
  9  0.00208786
  10  6.6928
  11  3.98989
  12  0.0231361
  13  5.40882e-07
  14  4.67416
  15  3.06424
  16  22.0962
  17  10.6001
  18  2.37732e-05
  19  2.46202e-05
  20  1.49609e-05
  21  0.19709
  22  0.154798
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  5.309e+00  3.990e+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.235e+00  1.548e-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.417e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 331.892 -53.772
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/195217/likelihoodResults_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.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) = 7790.13232949
delta logL = 0.964471886837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7790.12378988
delta logL = 0.973011504413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2468       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4177       1.0000          .0000       10.000    
     3 'Normalizat'    .58736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2615       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=   7790.124     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      250 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2474        17.570        .68537E-02    .12284E-02
   2  Index         3.4178        2.7826        .13486        .23630E-03
   3  Normalizat    .58733        .53767E-01    .75632E-01    .46718E-05
   4  Prefactor     1.2616        .42337E-01    .33316E-01   -.33135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24741
  Index      = 3.41779
  Normalizat = 0.587335
  Prefactor  = 1.26163
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.124     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2474        4.3371        .67500E-04   -1.5408    
   2  Index         3.4178        1.2147        .50387E-02   -.32198    
   3  Normalizat    .58733        .19138        .33485E-03   -1.0852    
   4  Prefactor     1.2616        .15218        .19106E-03   -.84455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22214e-10
Minuit parameter uncertainties:
  1  4.3377
  2  1.2284
  3  0.191593
  4  0.152232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195217': 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) = 7790.12378919
delta logL = 0.973012188461

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  2.247e+00  4.338e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  3.418e+00  1.228e+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.262e+00  1.522e-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.873e-01  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 331.892 -53.772
Photon Index (Free Index): 3.42 +/- 1.23
Photon Flux (Free Index): 8.77e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.49e-05 +/- 9.02e-06

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/195217/cmap_HighResolution_535334401_535593601_4FGL_J2207.5-5346_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-03', comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='1.49e-05', photon_flux_error='3.66e-08', dlogl='9.73e-01', energy_flux='1.53e-05', photon_flux2='8.77e-08', job_status='DONE', time_completed='2021-09-28 05:55:16.725014', photon_index_error2='1.23', photon_index2='3.42', ts='2.66', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='9.02e-06', EG='0.64', time_epoch_completed='1632833716.73', return_code='0', job_id='195217', GAL2='1.26', EG2='0.59', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='4.88e-08', ts2='4.79', photon_index='2.44' WHERE bin_id='1142' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 05:55:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 195217: <4FGL_J2207.5-5346_daily_bin1142> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1142> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:40:22 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:40:23 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:40:23 2021
Terminated at Tue Sep 28 05:55:17 2021
Results reported at Tue Sep 28 05:55:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1142 331.892 -53.7719 535334401 535593601 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

