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


Performing analysis on: 4FGL_J2207.5-5346_daily_bin1662
RA = 331.892, Dec = -53.7719
tmin = 670118401, tmax = 670377601
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='124924', job_status='RUN', time_executed='2022-03-31 00:38:13.349869', time_epoch_executed='1648712293.35' WHERE source_name='4FGL J2207.5-5346' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124924/ft1_4FGL_J2207.5-5346_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124924/ft1_4FGL_J2207.5-5346_daily_bin1662.fits outfile=/scratch/kocevski/124924/ft1_filteredMKT_4FGL_J2207.5-5346_daily_bin1662.fits ra=331.892 dec=-53.7719 rad=12.0 tmin=670118401.0 tmax=670377601.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.41
user 3.18
sys 0.22

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

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

Number of photons that the gtmktime cut: 609

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124924/ft1_filtered_4FGL_J2207.5-5346_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124924/ltcube_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.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/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits
.....................!
real 11.79
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124924/ft1_filtered_4FGL_J2207.5-5346_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124924/ltcube_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.fits outfile=/scratch/kocevski/124924/expmap_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.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/124924/ltcube_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.fits
.....................!
real 192.77
user 187.47
sys 4.95

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/124924/ft1_filtered_4FGL_J2207.5-5346_daily_bin1662.fits scfile=/scratch/kocevski/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits outfile=/scratch/kocevski/124924/cmap_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124924/ft1_filtered_4FGL_J2207.5-5346_daily_bin1662.fits scfile=/scratch/kocevski/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits outfile=/scratch/kocevski/124924/cmap_HighResolution_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124924/ft1_filtered_4FGL_J2207.5-5346_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124924/ft2_4FGL_J2207.5-5346_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124924/Model_4FGL_J2207.5-5346_daily_bin1662.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/124924/ft1_filtered_4FGL_J2207.5-5346_daily_bin1662.fits.....................!
real 49.82
user 48.60
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.733       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11340E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3186       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1270       1.0000         .10000E-03   10000.    
     8 'norm      '    .70444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .46550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96642       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.336       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5283       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67405       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=   6528.531     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2465 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5561        2.2589        .18948E-06    .75096E-05
   2  Prefactor     23.572        27.129        .17844E-06   -.82999E-05
   3  Prefactor     58.727        44.406       -.16292E-06   -.32290E-04
   4  Prefactor     .10002E-03    240.79       -.27814E-05** at limit **
   5  Prefactor     7.3187        6.9872       -.22655E-07   -.13541E-03
   6  Prefactor     .10000E-03    6.4019       -.23576E-07** at limit **
   7  Prefactor     9.1271        5.0387        .13804E-05    .40821E-04
   8  norm          .70427        .70915        .92570E-07    .18586E-03
   9  Prefactor     .10001E-03    38.072        .22064E-05** at limit **
  10  Prefactor     .10000E-03    10.531       -.77102E-07** at limit **
  11  Prefactor     1.7076        4.6938        .13663E-05    .97792E-04
  12  Prefactor     .10001E-03    130.39        .17272E-05** at limit **
  13  norm          .45046        6.2060       -.19938E-05    .42580E-03
  14  Prefactor     .10000E-03    1.1068        .58716E-08** at limit **
  15  Prefactor     .96689        4.5933        .26186E-05    .27132E-04
  16  Prefactor     .10000E-03    51.332       -.25654E-06** at limit **
  17  Prefactor     10.487        11.875       -.11836E-06    .13273E-03
  18  Prefactor     .10000E-03    36.666       -.12389E-05** at limit **
  19  Prefactor     14.337        22.934       -.16590E-06   -.14088E-04
  20  Prefactor     .10000E-03    9.9389        .80237E-07** at limit **
  21  Normalizat    1.5285        .18957       -.13731E-05   -.27827E-04
  22  Prefactor     .67393        .14064       -.72955E-07   -.10016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55608
  Prefactor  = 23.5722
  Prefactor  = 58.7273
  Prefactor  = 0.000100017
  Prefactor  = 7.31874
  Prefactor  = 0.0001
  Prefactor  = 9.12713
  norm       = 0.704266
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 1.70765
  Prefactor  = 0.000100008
  norm       = 0.450458
  Prefactor  = 0.0001
  Prefactor  = 0.966894
  Prefactor  = 0.000100002
  Prefactor  = 10.4873
  Prefactor  = 0.000100004
  Prefactor  = 14.3367
  Prefactor  = 0.0001
  Normalizat = 1.52846
  Prefactor  = 0.673929
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.531     FROM HESSE     STATUS=OK           346 CALLS     2811 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5561        2.2321        .13985E-03   -1.5458    
   2  Prefactor     23.572        27.063        .82501E-04   -1.4737    
   3  Prefactor     58.727        44.408        .52350E-04   -1.4174    
   4  Prefactor     .10002E-03    242.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3187        6.9845        .14826E-03   -1.5167    
   6  Prefactor     .10000E-03    6.4049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1271        5.0688        .64783E-03   -1.5104    
   8  norm          .70427        .67235        .66083E-03   -1.5540    
   9  Prefactor     .10001E-03    38.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7076        4.6722        .26923E-03   -1.5447    
  12  Prefactor     .10001E-03    130.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45046        15.474        .35755E-02   -1.5574    
  14  Prefactor     .10000E-03    1.1134        .83003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .96689        4.6714        .33221E-03   -1.5511    
  16  Prefactor     .10000E-03    51.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.487        11.901        .12377E-03   -1.5060    
  18  Prefactor     .10000E-03    36.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.337        22.927        .10578E-03   -1.4951    
  20  Prefactor     .10000E-03    9.9748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5285        .21774        .23461E-03   -.76982    
  22  Prefactor     .67393        .16228        .25400E-03   -1.0456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38807e-09
Minuit parameter uncertainties:
  1  2.23221
  2  27.077
  3  44.4328
  4  0.00410692
  5  6.98531
  6  2.30479e-06
  7  5.06904
  8  0.672355
  9  0.00119009
  10  2.24749e-05
  11  4.67319
  12  0.00200972
  13  5.28116
  14  3.95402e-07
  15  4.25083
  16  0.000579758
  17  11.904
  18  0.000807544
  19  22.9413
  20  1.38608e-05
  21  0.217872
  22  0.162392
Done.

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

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.708e+00  4.673e+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:  6.739e-01  1.624e-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.528e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/124924/likelihoodResults_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.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) = 6528.50796826
delta logL = 0.0234129549553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6528.50428536
delta logL = 0.027095856598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3628       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8189       1.0000          .0000       10.000    
     3 'Normalizat'    1.5210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67753       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.

 FCN=   6528.504     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      264 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3612        4.8596        .20394E-03   -.31440E-04
   2  Index         2.8190        2.0037        .96507E-02    .98233E-04
   3  Normalizat    1.5210        .21496        .23508E-03   -.15214E-04
   4  Prefactor     .67754        .15963        .25338E-03   -.80763E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.36124
  Index      = 2.81905
  Normalizat = 1.52097
  Prefactor  = 0.677537
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.504     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3612        4.3003        .81578E-05   -1.5475    
   2  Index         2.8190        1.7855        .19301E-02   -.45136    
   3  Normalizat    1.5210        .21515        .47016E-04   -.77191    
   4  Prefactor     .67754        .15956        .10135E-04   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6093e-12
Minuit parameter uncertainties:
  1  4.30129
  2  1.83609
  3  0.215276
  4  0.159671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124924': 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) = 6528.50428526
delta logL = 0.0270959543705

Extracting fit parameters...

4FGL J2207.5-5346
   Spectrum: PowerLaw
336    Prefactor:  1.361e+00  4.301e+00  1.000e-04  1.000e+04 ( 1.000e-12)
337        Index:  2.819e+00  1.836e+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:  6.775e-01  1.597e-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.521e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 331.892 -53.772

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/124924/cmap_HighResolution_670118401_670377601_4FGL_J2207.5-5346_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2022-03-31 00:49:07.285273', job_id='124924', GAL2='0.68', fit_tolerance='1e-08', EG2='1.52', EG='1.53', time_epoch_completed='1648712947.29', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.71e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1662' AND source_name='4FGL J2207.5-5346' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:49:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 124924: <4FGL_J2207.5-5346_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2207.5-5346_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:25 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:27 2022
Terminated at Thu Mar 31 00:49:08 2022
Results reported at Thu Mar 31 00:49:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.5-5346_daily_bin1662 331.892 -53.7719 670118401 670377601 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 :                                   656.00 sec.
    Max Memory :                                 1004 MB
    Average Memory :                             255.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

