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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1063
RA = 31.8989, Dec = -24.0484
tmin = 514857601, tmax = 515116801
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='135423', job_status='RUN', time_executed='2021-08-15 08:25:08.176978', time_epoch_executed='1629041108.18' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135423

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135423/ft1_4FGL_J0207.5-2402_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135423/ft1_4FGL_J0207.5-2402_daily_bin1063.fits outfile=/scratch/kocevski/135423/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1063.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=514857601.0 tmax=515116801.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 4.23
user 3.29
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.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/135423/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1063.fits evtable="EVENTS" outfile="/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.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 1.12
user 0.34
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/135423/ltcube_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.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/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits
.....................!
real 13.67
user 12.70
sys 0.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/135423/ltcube_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.fits outfile=/scratch/kocevski/135423/expmap_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.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/135423/ltcube_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.fits
.....................!
real 193.19
user 187.24
sys 5.53

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 174 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0207.5-2402 @ 31.8989 -24.0484

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits scfile=/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits outfile=/scratch/kocevski/135423/cmap_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.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=31.8989 yref=-24.0484 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 1.14
user 0.38
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits scfile=/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits outfile=/scratch/kocevski/135423/cmap_HighResolution_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.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=31.8989 yref=-24.0484 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 1.20
user 0.39
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135423/Model_4FGL_J0207.5-2402_daily_bin1063.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits.....................!
real 109.17
user 106.68
sys 1.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits', '/scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits', expMap='/scratch/kocevski/135423/expmap_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.fits', expCube='/scratch/kocevski/135423/ltcube_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135423/Model_4FGL_J0207.5-2402_daily_bin1063.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0207.5-2402'

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  2.138e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135423/ft1_filtered_4FGL_J0207.5-2402_daily_bin1063.fits
Spacecraft file(s): /scratch/kocevski/135423/ft2_4FGL_J0207.5-2402_daily_bin1063.fits
Exposure map: /scratch/kocevski/135423/expmap_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.fits
Exposure cube: /scratch/kocevski/135423/ltcube_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135423/Model_4FGL_J0207.5-2402_daily_bin1063.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) = 5539.38250101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17200E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4076       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9956       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4252       1.0000         .10000E-03   10000.    
     8 'norm      '    .12403E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.492       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5680       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11352E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    58.298       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12527E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.704       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.711       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.662       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4474       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87518       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84712       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5539.362     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2584 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.077        .12947E-06** at limit **
   2  norm          3.4098        2.1650       -.41644E-07    .15776E-03
   3  norm          2.2953        2.0492        .68265E-07    .10766E-03
   4  Prefactor     7.7120        9.3028        .21281E-07    .41521E-04
   5  Prefactor     .10000E-03    2.9198       -.96806E-06** at limit **
   6  norm          1.9958        1.1297        .11051E-07    .78615E-04
   7  norm          1.4256        1.7681        .20262E-06    .42703E-03
   8  norm          .10000E-03    1.5873       -.11967E-06** at limit **
   9  Prefactor     39.491        37.326        .62007E-07    .86647E-05
  10  norm          4.6565        2.1717        .83211E-07    .62097E-04
  11  Prefactor     7.5685        8.2170       -.25307E-06    .30209E-04
  12  Prefactor     1.5520        5.1582        .24819E-05    .50272E-03
  13  Prefactor     .10000E-03    6.5465        .29507E-05** at limit **
  14  norm          58.321        43.762       -.85030E-07    .17264E-03
  15  Prefactor     .10001E-03    5.3449       -.31370E-05** at limit **
  16  Prefactor     25.710        40.406       -.50638E-06    .53591E-04
  17  Prefactor     .10000E-03    16.052       -.16373E-06** at limit **
  18  Prefactor     51.710        29.494       -.21911E-06    .18166E-03
  19  Prefactor     1.6183        2.9909        .47429E-06    .22710E-03
  20  Prefactor     30.662        33.472        .20332E-06    .20632E-04
  21  norm          1.4476        1.2191        .60274E-07    .15498E-03
  22  Normalizat    .87491        .16284       -.72440E-06    .32583E-03
  23  Prefactor     .84741        .17791       -.62970E-07    .18617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.40977
  norm       = 2.29532
  Prefactor  = 7.712
  Prefactor  = 0.000100002
  norm       = 1.99581
  norm       = 1.42562
  norm       = 0.0001
  Prefactor  = 39.4914
  norm       = 4.65653
  Prefactor  = 7.56848
  Prefactor  = 1.55198
  Prefactor  = 0.000100003
  norm       = 58.3207
  Prefactor  = 0.000100008
  Prefactor  = 25.71
  Prefactor  = 0.0001
  Prefactor  = 51.7098
  Prefactor  = 1.61829
  Prefactor  = 30.6618
  norm       = 1.44761
  Normalizat = 0.874907
  Prefactor  = 0.847413
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.362     FROM HESSE     STATUS=OK           376 CALLS     2960 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4098        2.1185        .82968E-04   -1.5339    
   3  norm          2.2953        2.0401        .96842E-04   -1.5405    
   4  Prefactor     7.7120        9.2861        .14441E-03   -1.5152    
   5  Prefactor     .10000E-03    6.1225        .23231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9958        1.1317        .57600E-04   -1.5425    
   7  norm          1.4256        1.7358        .10349E-03   -1.5469    
   8  norm          .10000E-03    2.7829        .17859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.491        37.327        .63782E-04   -1.4450    
  10  norm          4.6565        2.1701        .71022E-04   -1.5276    
  11  Prefactor     7.5685        8.2046        .14578E-03   -1.5158    
  12  Prefactor     1.5520        5.3677        .29450E-03   -1.5459    
  13  Prefactor     .10000E-03    6.8811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          58.321        43.337        .52544E-04   -1.4179    
  15  Prefactor     .10001E-03    7.4776        .26251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.710        40.420        .79014E-04   -1.4693    
  17  Prefactor     .10000E-03    16.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.710        29.255        .55772E-04   -1.4269    
  19  Prefactor     1.6183        2.9709        .16927E-03   -1.5454    
  20  Prefactor     30.662        33.477        .72358E-04   -1.4600    
  21  norm          1.4476        1.2057        .73072E-04   -1.5467    
  22  Normalizat    .87491        .18982        .21549E-03   -.97348    
  23  Prefactor     .84741        .20931        .25559E-03   -.98004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31371e-09
Minuit parameter uncertainties:
  1  7.77982e-05
  2  2.11853
  3  2.0402
  4  9.2878
  5  0.000202363
  6  1.13174
  7  1.73586
  8  2.39119e-05
  9  37.3486
  10  2.1701
  11  8.20585
  12  5.36941
  13  0.00026724
  14  43.3605
  15  0.000492787
  16  40.4632
  17  2.6771e-05
  18  29.2636
  19  2.97118
  20  33.4971
  21  1.20577
  22  0.189961
  23  0.209504
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  7.568e+00  8.206e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.474e-01  2.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.749e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 31.899 -24.048
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 8.57e-06 +/- 9.29e-06

TS (Fixed Index): 1.76
Ra Dec: 31.899 -24.048
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135423/likelihoodResults_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.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) = 5539.35527456
delta logL = 0.00699124645234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5539.35234894
delta logL = 0.00991687100122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8990       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3066       1.0000          .0000       10.000    
     3 'Normalizat'    .87167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84969       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5539.352     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      211 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8964        269.22        .38186E-02    .92039E-04
   2  Index         2.3076        5.7836        .15443        .78472E-04
   3  Normalizat    .87173        .83716E-01    .44539E-01   -.16813E-04
   4  Prefactor     .84962        .69998E-01    .44360E-01    .17715E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.89642
  Index      = 2.30756
  Normalizat = 0.871733
  Prefactor  = 0.849618
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.352     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8964        9.5117        .15275E-03   -1.5183    
   2  Index         2.3076        .89281        .92901E-02   -.56864    
   3  Normalizat    .87173        .17926        .21584E-03   -.97461    
   4  Prefactor     .84962        .20867        .25530E-03   -.97924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43496e-11
Minuit parameter uncertainties:
  1  9.5138
  2  0.899633
  3  0.17938
  4  0.208866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135423': 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) = 5539.35234808
delta logL = 0.00991772622365

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  6.896e+00  9.514e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.308e+00  8.996e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.340e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.496e-01  2.089e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  8.717e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 31.899 -24.048
Photon Index (Free Index): 2.31 +/- 0.90
Photon Flux (Free Index): 2.11e-08 +/- 2.73e-08
Energy Flux (Free Index): 7.88e-06 +/- 9.70e-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/135423/cmap_HighResolution_514857601_515116801_4FGL_J0207.5-2402_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='7.88e-06', photon_flux_error='2.03e-08', dlogl='9.92e-03', energy_flux='8.57e-06', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-08-15 08:36:48.528751', photon_index_error2='0.90', photon_index2='2.31', ts='1.76', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='9.70e-06', EG='0.87', time_epoch_completed='1629041808.53', return_code='0', job_id='135423', GAL2='0.85', EG2='0.87', return_code2='0', energy_flux_error='9.29e-06', photon_flux_error2='2.73e-08', ts2='1.78', photon_index='2.19' WHERE bin_id='1063' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:36:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 135423: <4FGL_J0207.5-2402_daily_bin1063> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1063> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 08:20:42 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:23:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 08:23:26 2021
Terminated at Sun Aug 15 08:36:49 2021
Results reported at Sun Aug 15 08:36:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1063 31.8989 -24.0484 514857601 515116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0207.5-2402 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            967 sec.

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

