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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1326
RA = 31.8989, Dec = -24.0484
tmin = 583027201, tmax = 583286401
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='136883', job_status='RUN', time_executed='2021-08-15 08:28:41.717818', time_epoch_executed='1629041321.72' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136883/ft1_4FGL_J0207.5-2402_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136883/ft1_4FGL_J0207.5-2402_daily_bin1326.fits outfile=/scratch/kocevski/136883/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1326.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=583027201.0 tmax=583286401.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.63
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.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/136883/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1326.fits evtable="EVENTS" outfile="/scratch/kocevski/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/136883/ltcube_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.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/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits
.....................!
real 13.51
user 13.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/136883/ltcube_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.fits outfile=/scratch/kocevski/136883/expmap_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.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/136883/ltcube_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.fits
.....................!
real 192.01
user 186.55
sys 4.70

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/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits scfile=/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits outfile=/scratch/kocevski/136883/cmap_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.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 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits scfile=/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits outfile=/scratch/kocevski/136883/cmap_HighResolution_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.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 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136883/Model_4FGL_J0207.5-2402_daily_bin1326.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/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits.....................!
real 106.41
user 104.80
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits', '/scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits', expMap='/scratch/kocevski/136883/expmap_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.fits', expCube='/scratch/kocevski/136883/ltcube_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136883/Model_4FGL_J0207.5-2402_daily_bin1326.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/136883/ft1_filtered_4FGL_J0207.5-2402_daily_bin1326.fits
Spacecraft file(s): /scratch/kocevski/136883/ft2_4FGL_J0207.5-2402_daily_bin1326.fits
Exposure map: /scratch/kocevski/136883/expmap_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.fits
Exposure cube: /scratch/kocevski/136883/ltcube_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136883/Model_4FGL_J0207.5-2402_daily_bin1326.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) = 5446.79541089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10305E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .84178       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0919       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1311       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.368       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16769E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5678       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95921       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87499       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=   5446.788     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2545 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6362       -.41787E-07** at limit **
   2  norm          .10000E-03    .77332        .16960E-07** at limit **
   3  norm          .10000E-03    1.0551        .13056E-06** at limit **
   4  Prefactor     .10000E-03    7.1981       -.14766E-06** at limit **
   5  Prefactor     .10000E-03    3.0739        .15925E-06** at limit **
   6  norm          .84159        .82106        .98017E-07    .95148E-04
   7  norm          .10000E-03    1.2569        .46960E-07** at limit **
   8  norm          .10000E-03    1.0677        .42114E-07** at limit **
   9  Prefactor     .10000E-03    29.292       -.73718E-05** at limit **
  10  norm          4.7420        2.1987       -.99352E-07   -.31881E-03
  11  Prefactor     5.0901        9.8743        .20498E-05   -.12583E-03
  12  Prefactor     .10000E-03    2.2666       -.17061E-06** at limit **
  13  Prefactor     8.1332        7.1954        .67061E-05   -.25459E-03
  14  norm          .10000E-03    32.798        .13025E-04** at limit **
  15  Prefactor     13.366        7.3842        .32870E-05   -.58958E-04
  16  Prefactor     .78588        29.466       -.37404E-06   -.42493E-03
  17  Prefactor     .10000E-03    30.095       -.49193E-05** at limit **
  18  Prefactor     27.573        27.268        .38442E-05    .41492E-04
  19  Prefactor     .10000E-03    2.5503        .31159E-06** at limit **
  20  Prefactor     .10000E-03    133.50       -.19642E-04** at limit **
  21  norm          1.5678        1.4957       -.45944E-08   -.48276E-03
  22  Normalizat    .95938        .15742       -.26804E-05    .99485E-04
  23  Prefactor     .87507        .17677       -.63652E-06   -.10964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.841593
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.74202
  Prefactor  = 5.09011
  Prefactor  = 0.0001
  Prefactor  = 8.1332
  norm       = 0.000100003
  Prefactor  = 13.3658
  Prefactor  = 0.785876
  Prefactor  = 0.0001
  Prefactor  = 27.5728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56784
  Normalizat = 0.959385
  Prefactor  = 0.875071
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.788     FROM HESSE     STATUS=OK           372 CALLS     2917 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6475        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .78345        .63365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8347        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1386        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .84159        .82955        .64113E-04   -1.5524    
   7  norm          .10000E-03    1.2985        .16125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0815        .74416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7420        2.2020        .70863E-04   -1.5272    
  11  Prefactor     5.0901        9.8504        .17818E-03   -1.5257    
  12  Prefactor     .10000E-03    2.2819        .10843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1332        7.2009        .14060E-03   -1.5138    
  14  norm          .10000E-03    32.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.366        7.3795        .10955E-03   -1.4977    
  16  Prefactor     .78588        256.32        .75512E-02   -1.5531    
  17  Prefactor     .10000E-03    30.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.573        27.286        .76339E-04   -1.4657    
  19  Prefactor     .10000E-03    4.9863        .22814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    135.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5678        1.4816        .84911E-04   -1.5458    
  22  Normalizat    .95938        .18437        .21017E-03   -.94404    
  23  Prefactor     .87507        .20847        .25368E-03   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67123e-08
Minuit parameter uncertainties:
  1  8.75916e-06
  2  2.62439e-06
  3  1.46695e-05
  4  1.91413e-05
  5  2.34687e-05
  6  0.82956
  7  1.33392e-05
  8  6.21699e-06
  9  2.78489e-05
  10  2.20205
  11  9.85355
  12  2.379e-05
  13  7.20163
  14  0.000645085
  15  7.37999
  16  28.5077
  17  1.87824e-05
  18  27.2983
  19  1.42007e-06
  20  9.79643e-05
  21  1.48166
  22  0.184488
  23  0.208657
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  5.090e+00  9.854e+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.751e-01  2.087e-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:  9.594e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/136883/likelihoodResults_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.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) = 5445.14950099
delta logL = 1.63831744455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5445.01148882
delta logL = 1.7763296142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10987E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9029       1.0000          .0000       10.000    
     3 'Normalizat'    .82706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98365       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=   5445.011     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      313 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10946E-01    .91361E-01    .90779E-03    .60706E-02
   2  Index         5.9050        2.0808        .75433E-01    .18208E-03
   3  Normalizat    .82715        .46619E-01    .43962E-01    .13138E-04
   4  Prefactor     .98360        .53908E-01    .46062E-01    .86109E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0109464
  Index      = 5.90498
  Normalizat = 0.82715
  Prefactor  = 0.983604
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.011     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      346 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10946E-01    .17050        .42185E-05   -1.5687    
   2  Index         5.9050        3.0495        .30469E-02    .18200    
   3  Normalizat    .82715        .16395        .22406E-03   -.99069    
   4  Prefactor     .98360        .18592        .24092E-03   -.93278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.41281e-07
Minuit parameter uncertainties:
  1  0.086007
  2  3.28943
  3  0.164047
  4  0.186041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136883': 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): 102
logL (Free Index) = 5445.01148547
delta logL = 1.77633295671

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.095e-02  8.601e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  5.905e+00  3.289e+00  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:  9.836e-01  1.860e-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.272e-01  1.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 31.899 -24.048
Photon Index (Free Index): 5.90 +/- 3.29
Photon Flux (Free Index): 1.02e-07 +/- 5.78e-08
Energy Flux (Free Index): 1.28e-05 +/- 7.46e-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/136883/cmap_HighResolution_583027201_583286401_4FGL_J0207.5-2402_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.78e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-15 08:40:11.911940', photon_index_error2='3.29', photon_index2='5.90', ts='0.34', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.49e-08', energy_flux_error2='7.46e-06', EG='0.96', time_epoch_completed='1629042011.91', return_code='0', job_id='136883', GAL2='0.98', EG2='0.83', return_code2='102', photon_flux_error2='5.78e-08', ts2='4.38', photon_index='2.19' WHERE bin_id='1326' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:40:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 136883: <4FGL_J0207.5-2402_daily_bin1326> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1326> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 08:25:39 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:26:59 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:26:59 2021
Terminated at Sun Aug 15 08:40:14 2021
Results reported at Sun Aug 15 08:40:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1326 31.8989 -24.0484 583027201 583286401 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 :                                   678.60 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            875 sec.

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

