/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 1 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 = 7402
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0207.5-2402_daily_bin420
RA = 31.8989, Dec = -24.0484
tmin = 348192001, tmax = 348451201
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='132210', job_status='RUN', time_executed='2021-08-15 08:15:13.158989', time_epoch_executed='1629040513.16' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132210

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132210/ft1_4FGL_J0207.5-2402_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132210/ft1_4FGL_J0207.5-2402_daily_bin420.fits outfile=/scratch/kocevski/132210/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin420.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=348192001.0 tmax=348451201.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 8.69
user 3.21
sys 5.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/132210/ft1_filtered_4FGL_J0207.5-2402_daily_bin420.fits" evtable="EVENTS" scfile=/scratch/kocevski/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits sctable="SC_DATA" outfile=/scratch/kocevski/132210/ltcube_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.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/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits
.....................!
real 21.14
user 14.51
sys 6.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132210/ft1_filtered_4FGL_J0207.5-2402_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/132210/ltcube_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.fits outfile=/scratch/kocevski/132210/expmap_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.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/132210/ltcube_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.fits
.....................!
real 198.34
user 185.85
sys 11.93

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/132210/ft1_filtered_4FGL_J0207.5-2402_daily_bin420.fits scfile=/scratch/kocevski/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits outfile=/scratch/kocevski/132210/cmap_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.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 5.65
user 0.39
sys 5.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132210/ft1_filtered_4FGL_J0207.5-2402_daily_bin420.fits scfile=/scratch/kocevski/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits outfile=/scratch/kocevski/132210/cmap_HighResolution_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.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 5.64
user 0.39
sys 5.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/132210/ft1_filtered_4FGL_J0207.5-2402_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/132210/ft2_4FGL_J0207.5-2402_daily_bin420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/132210/Model_4FGL_J0207.5-2402_daily_bin420.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/132210/ft1_filtered_4FGL_J0207.5-2402_daily_bin420.fits.....................!
real 80.97
user 72.71
sys 7.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23638E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9127       1.0000         .10000E-03   10000.    
     7 'norm      '    .93145       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5826       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11783E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18446E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.333       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .51789       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4195       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .59386       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=   3536.676     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2572 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.381       -.17617E-06** at limit **
   2  norm          .10000E-03    1.1652       -.24286E-08** at limit **
   3  norm          .10000E-03    2.7225        .11724E-05** at limit **
   4  Prefactor     22.729        26.488       -.63095E-06   -.34087E-04
   5  Prefactor     .10003E-03    4.2293       -.74656E-06** at limit **
   6  norm          3.9126        2.1992        .94977E-07   -.78564E-04
   7  norm          .92694        3.6733        .22689E-05    .25576E-03
   8  norm          3.5834        3.8443        .64095E-07   -.21967E-03
   9  Prefactor     .10000E-03    40.926       -.65099E-07** at limit **
  10  norm          3.9992        3.0524        .10841E-05    .24176E-03
  11  Prefactor     .10000E-03    26.579       -.79507E-06** at limit **
  12  Prefactor     .51917        7.0176        .19910E-05   -.55148E-03
  13  Prefactor     .10000E-03    11.273       -.34808E-06** at limit **
  14  norm          .10000E-03    20.707       -.11237E-06** at limit **
  15  Prefactor     .10000E-03    2.3922        .27153E-06** at limit **
  16  Prefactor     .10000E-03    19.322       -.89198E-08** at limit **
  17  Prefactor     .10000E-03    19.188        .19176E-06** at limit **
  18  Prefactor     30.383        47.075        .17232E-05    .61559E-04
  19  Prefactor     .10000E-03    2.9179        .12176E-06** at limit **
  20  Prefactor     .10000E-03    45.528        .14324E-05** at limit **
  21  norm          .51766        2.8205        .14005E-05   -.37610E-03
  22  Normalizat    1.4193        .25927       -.44691E-05   -.34497E-03
  23  Prefactor     .59389        .25432        .28091E-05   -.32609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.7291
  Prefactor  = 0.000100034
  norm       = 3.91256
  norm       = 0.926935
  norm       = 3.58341
  Prefactor  = 0.0001
  norm       = 3.99917
  Prefactor  = 0.0001
  Prefactor  = 0.519172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.517663
  Normalizat = 1.41931
  Prefactor  = 0.593887
 **********
 **   18 **HESSE 
 **********

 FCN=   3536.676     FROM HESSE     STATUS=OK           368 CALLS     2940 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1684        .62675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.7911        .95996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.729        26.235        .84066E-04   -1.4754    
   5  Prefactor     .10003E-03    33.310        .22439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9126        2.1981        .63437E-04   -1.5312    
   7  norm          .92694        3.6356        .19919E-03   -1.5515    
   8  norm          3.5834        3.8216        .11405E-03   -1.5329    
   9  Prefactor     .10000E-03    40.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9992        3.0432        .42752E-03   -1.5308    
  11  Prefactor     .10000E-03    26.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .51917        36.196        .26707E-02   -1.5564    
  13  Prefactor     .10000E-03    11.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3944        .89845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.383        47.091        .72748E-04   -1.4605    
  19  Prefactor     .10000E-03    2.9408        .99223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .51766        4.3126        .17783E-02   -1.5564    
  22  Normalizat    1.4193        .28892        .20752E-03   -.80072    
  23  Prefactor     .59389        .28869        .32844E-03   -1.0784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26622e-09
Minuit parameter uncertainties:
  1  1.41791e-05
  2  1.04343e-06
  3  3.00636e-05
  4  26.2483
  5  0.00211724
  6  2.19814
  7  3.63645
  8  3.82188
  9  9.153e-05
  10  3.04332
  11  0.000172192
  12  8.67457
  13  4.82122e-07
  14  1.27273e-05
  15  5.03628e-06
  16  2.73983e-05
  17  5.00931e-05
  18  47.1488
  19  6.81484e-06
  20  0.000190437
  21  2.98831
  22  0.289251
  23  0.289408
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.722e-04  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:  5.939e-01  2.894e-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:  1.419e+00  2.893e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/132210/likelihoodResults_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.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) = 3536.67659113
delta logL = -0.000177277415787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3536.39335287
delta logL = 0.283060985562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85777       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8049       1.0000          .0000       10.000    
     3 'Normalizat'    1.3461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64158       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3536.393     FROM MIGRAD    STATUS=FAILED       100 CALLS      323 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85556        77.898        .25307E-03    .29873E-03
   2  Index         3.8058        6.7159        .56840E-02    .40618E-03
   3  Normalizat    1.3460        .23430        .21215E-03    .20631E-05
   4  Prefactor     .64168        .24611        .31692E-03    .17757E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3536.393     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      408 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85556        77.898        .15574E-03    .29873E-03
   2  Index         3.8058        6.7159        .12444E-02    .40618E-03
   3  Normalizat    1.3460        .23430        .22710E-03    .20631E-05
   4  Prefactor     .64168        .24611        .20494E-03    .17757E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3536.393     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      440 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85556        5.6686        .50614E-04   -.10108E-04
   2  Index         3.8058        2.1658        .11368E-02    .15576E-04
   3  Normalizat    1.3460        .28430        .84861E-05    .21435E-05
   4  Prefactor     .64168        .29476        .12677E-04    .17039E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.855563
  Index      = 3.80578
  Normalizat = 1.34601
  Prefactor  = 0.641677
 **********
 **   18 **HESSE 
 **********

 FCN=   3536.393     FROM HESSE     STATUS=OK            25 CALLS      465 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85556        3.8389        .20246E-05   -1.5523    
   2  Index         3.8058        1.8026        .22736E-03   -.24118    
   3  Normalizat    1.3460        .28452        .16972E-05   -.82203    
   4  Prefactor     .64168        .29497        .25353E-05   -1.0586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4124e-14
Minuit parameter uncertainties:
  1  3.62475
  2  1.84679
  3  0.284849
  4  0.295689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132210': 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) = 3536.39335253
delta logL = 0.283061321249

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  8.556e-01  3.625e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.806e+00  1.847e+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:  6.417e-01  2.957e-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:  1.346e+00  2.848e-01  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/132210/cmap_HighResolution_348192001_348451201_4FGL_J0207.5-2402_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-15 08:25:53.748427', job_id='132210', GAL2='0.64', fit_tolerance='1e-08', EG2='1.35', EG='1.42', time_epoch_completed='1629041153.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.83e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='420' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 132210: <4FGL_J0207.5-2402_daily_bin420> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin420> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 15 08:10:43 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:13:40 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:13:40 2021
Terminated at Sun Aug 15 08:25:55 2021
Results reported at Sun Aug 15 08:25:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin420 31.8989 -24.0484 348192001 348451201 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 :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            912 sec.

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

