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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1167
RA = 31.8989, Dec = -24.0484
tmin = 541814401, tmax = 542073601
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='136651', job_status='RUN', time_executed='2021-08-15 08:26:11.840796', time_epoch_executed='1629041171.84' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136651

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136651/ft1_4FGL_J0207.5-2402_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136651/ft1_4FGL_J0207.5-2402_daily_bin1167.fits outfile=/scratch/kocevski/136651/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1167.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=541814401.0 tmax=542073601.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.98
user 3.45
sys 1.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.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/136651/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.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.78
user 0.35
sys 1.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/136651/ltcube_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.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/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits
.....................!
real 15.74
user 13.91
sys 1.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/136651/ltcube_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.fits outfile=/scratch/kocevski/136651/expmap_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.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/136651/ltcube_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.fits
.....................!
real 193.99
user 185.67
sys 6.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
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/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.fits scfile=/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits outfile=/scratch/kocevski/136651/cmap_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.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.80
user 0.40
sys 1.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.fits scfile=/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits outfile=/scratch/kocevski/136651/cmap_HighResolution_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.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.80
user 0.40
sys 1.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/136651/ft2_4FGL_J0207.5-2402_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136651/Model_4FGL_J0207.5-2402_daily_bin1167.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/136651/ft1_filtered_4FGL_J0207.5-2402_daily_bin1167.fits.....................!
real 96.41
user 92.69
sys 2.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.672       1.0000         .10000E-03   10000.    
     2 'norm      '    7.1972       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8467       1.0000         .10000E-03   10000.    
     7 'norm      '    .11993E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .21331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .72860       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77894E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47250E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.598       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11756E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84805       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0347       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=   4757.225     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2995 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.679        32.753        .74094E-06    .92788E-04
   2  norm          7.1944        6.4170       -.78808E-07    .15546E-03
   3  norm          .10000E-03    1.0749        .35513E-07** at limit **
   4  Prefactor     .10000E-03    17.565        .18270E-06** at limit **
   5  Prefactor     .10000E-03    2.1765        .65441E-07** at limit **
   6  norm          3.8464        1.8810        .20113E-07   -.58874E-04
   7  norm          .10000E-03    1.3389        .26338E-06** at limit **
   8  norm          .21380        3.9099       -.17138E-05    .11229E-02
   9  Prefactor     .10000E-03    54.037        .19051E-06** at limit **
  10  norm          .72715        1.4660        .53999E-06    .63739E-03
  11  Prefactor     .10000E-03    5.5796        .45308E-07** at limit **
  12  Prefactor     .10000E-03    1.6097       -.28626E-07** at limit **
  13  Prefactor     .10000E-03    5.4886       -.49079E-07** at limit **
  14  norm          .10000E-03    29.333       -.65568E-08** at limit **
  15  Prefactor     1.0705        4.7425        .23685E-05    .21019E-03
  16  Prefactor     .10000E-03    33.354        .55728E-07** at limit **
  17  Prefactor     43.581        46.454       -.21052E-05   -.41145E-03
  18  Prefactor     .10000E-03    5.7932       -.38352E-07** at limit **
  19  Prefactor     6.5611        4.2273        .35380E-07   -.20639E-03
  20  Prefactor     .10000E-03    11.966       -.19503E-09** at limit **
  21  norm          .10000E-03    .98423        .12783E-06** at limit **
  22  Normalizat    .84813        .17035       -.38917E-06   -.51961E-04
  23  Prefactor     1.0348        .19622       -.46670E-06   -.74062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6786
  norm       = 7.19445
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84644
  norm       = 0.0001
  norm       = 0.213804
  Prefactor  = 0.0001
  norm       = 0.72715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 1.07052
  Prefactor  = 0.000100001
  Prefactor  = 43.5809
  Prefactor  = 0.0001
  Prefactor  = 6.56108
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.848131
  Prefactor  = 1.03481
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.225     FROM HESSE     STATUS=OK           386 CALLS     3381 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.679        33.819        .11253E-03   -1.4996    
   2  norm          7.1944        6.6194        .98002E-04   -1.5171    
   3  norm          .10000E-03    1.0846        .69834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1923        .99277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8464        1.8799        .63497E-04   -1.5316    
   7  norm          .10000E-03    2.0891        .15284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .21380        10.084        .17001E-02   -1.5616    
   9  Prefactor     .10000E-03    54.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .72715        1.4118        .11816E-02   -1.5537    
  11  Prefactor     .10000E-03    5.5991        .15910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6162        .85439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6973        .52290E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    29.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0705        5.1514        .29656E-03   -1.5501    
  16  Prefactor     .10000E-03    225.77        .75962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.581        48.499        .60716E-04   -1.4387    
  18  Prefactor     .10000E-03    5.7954        .16214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5611        4.2263        .10950E-03   -1.5196    
  20  Prefactor     .10000E-03    11.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.6862        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84813        .20089        .22218E-03   -.98307    
  23  Prefactor     1.0348        .23178        .23926E-03   -.91578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04332e-09
Minuit parameter uncertainties:
  1  33.8697
  2  6.62011
  3  2.49837e-06
  4  6.53211e-05
  5  3.85302e-06
  6  1.87998
  7  4.60128e-05
  8  2.93648
  9  0.000114193
  10  1.41189
  11  8.41653e-06
  12  2.59519e-06
  13  0.000326418
  14  1.44828e-05
  15  4.69712
  16  0.000752601
  17  48.5429
  18  7.08377e-06
  19  4.22644
  20  1.66116e-06
  21  2.28664e-06
  22  0.201066
  23  0.232001
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  8.417e-06  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:  1.035e+00  2.320e-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.481e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/136651/likelihoodResults_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.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): 102
logL (Free Index) = 4757.22593259
delta logL = -0.000850364568578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4757.22508219
delta logL = 2.98068698612e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4757.225     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    71.678        .16084E-02** at limit **
   2  Index         2.1171        8.6778        .50000        .19837E-04
   3  Normalizat    .84813        .14467E-01    .22218E-03   -.22105E-04
   4  Prefactor     1.0348        .17137E-01    .23926E-03    .49798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101099
  Index      = 2.11707
  Normalizat = 0.84813
  Prefactor  = 1.03481
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.225     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    302.22        .32168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1171        6.0417        .50000       -.61454    
   3  Normalizat    .84813        .31277E-01    .88874E-05   -.98307    
   4  Prefactor     1.0348        .37046E-01    .95702E-05   -.91578    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37167e-08
Minuit parameter uncertainties:
  1  0.036628
  2  665.513
  3  0.031278
  4  0.0370468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136651': 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) = 4757.22508192
delta logL = 2.99513885693e-07

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.011e-04  3.663e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.117e+00  6.655e+02  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:  1.035e+00  3.705e-02  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.481e-01  3.128e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.899 -24.048

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/136651/cmap_HighResolution_541814401_542073601_4FGL_J0207.5-2402_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-08-15 08:37:36.064302', job_id='136651', GAL2='1.03', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1629041856.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1167' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:37:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 136651: <4FGL_J0207.5-2402_daily_bin1167> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1167> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 08:25:21 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:25:34 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:25:34 2021
Terminated at Sun Aug 15 08:37:37 2021
Results reported at Sun Aug 15 08:37:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1167 31.8989 -24.0484 541814401 542073601 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 :                                   691.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            736 sec.

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

