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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1022
RA = 31.8989, Dec = -24.0484
tmin = 504230401, tmax = 504489601
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='135364', job_status='RUN', time_executed='2021-08-15 08:26:02.069128', time_epoch_executed='1629041162.07' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135364/ft1_4FGL_J0207.5-2402_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135364/ft1_4FGL_J0207.5-2402_daily_bin1022.fits outfile=/scratch/kocevski/135364/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1022.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=504230401.0 tmax=504489601.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.45
user 3.38
sys 4.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.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/135364/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.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.26
user 0.36
sys 4.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/135364/ltcube_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.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/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits
.....................!
real 19.54
user 13.90
sys 5.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/135364/ltcube_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.fits outfile=/scratch/kocevski/135364/expmap_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.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/135364/ltcube_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.fits
.....................!
real 197.43
user 186.38
sys 10.28

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/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.fits scfile=/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits outfile=/scratch/kocevski/135364/cmap_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.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.17
user 0.38
sys 4.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.fits scfile=/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits outfile=/scratch/kocevski/135364/cmap_HighResolution_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.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.16
user 0.41
sys 4.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/135364/ft2_4FGL_J0207.5-2402_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135364/Model_4FGL_J0207.5-2402_daily_bin1022.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/135364/ft1_filtered_4FGL_J0207.5-2402_daily_bin1022.fits.....................!
real 86.45
user 78.49
sys 7.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17127E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .59956       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9445       1.0000         .10000E-03   10000.    
     6 'norm      '    .21422       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5477       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.134       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.052       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2305       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    48.226       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.369       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.291       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.158       1.0000         .10000E-03   10000.    
    21 'norm      '    7.5001       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .58983       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0766       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=   3864.682     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2542 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.817       -.21043E-05** at limit **
   2  norm          .59689        3.3562        .22552E-05   -.22730E-04
   3  norm          2.0040        1.8955       -.14816E-07    .25017E-05
   4  Prefactor     .10000E-03    6.4079        .82278E-07** at limit **
   5  Prefactor     9.9447        6.8778       -.73541E-06   -.18501E-03
   6  norm          .21353        .93243        .26130E-06   -.34057E-03
   7  norm          .10000E-03    .93832        .30642E-07** at limit **
   8  norm          3.5469        3.9083        .12497E-06   -.74537E-04
   9  Prefactor     58.103        59.006       -.19832E-06   -.46976E-04
  10  norm          4.9265        2.8637        .14237E-07   -.46336E-04
  11  Prefactor     16.058        16.954       -.33819E-06   -.19520E-04
  12  Prefactor     1.2239        7.1828        .17572E-05   -.10008E-03
  13  Prefactor     .10000E-03    4.3354       -.16394E-06** at limit **
  14  norm          48.223        47.665        .80848E-07   -.12687E-04
  15  Prefactor     7.7818        7.6863       -.11801E-06   -.69344E-05
  16  Prefactor     62.347        52.843       -.36498E-06   -.46720E-04
  17  Prefactor     19.259        42.717       -.26142E-06   -.44895E-04
  18  Prefactor     .10000E-03    33.150        .11335E-06** at limit **
  19  Prefactor     .10000E-03    1.4702       -.94430E-07** at limit **
  20  Prefactor     34.152        41.010       -.37883E-07   -.79439E-05
  21  norm          7.5000        3.0328        .10433E-07   -.10593E-04
  22  Normalizat    .59009        .21002        .12780E-06   -.71641E-04
  23  Prefactor     1.0764        .22604       -.84562E-06   -.12838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.596892
  norm       = 2.00399
  Prefactor  = 0.0001
  Prefactor  = 9.94472
  norm       = 0.213531
  norm       = 0.0001
  norm       = 3.54694
  Prefactor  = 58.1033
  norm       = 4.92653
  Prefactor  = 16.0579
  Prefactor  = 1.22387
  Prefactor  = 0.0001
  norm       = 48.2226
  Prefactor  = 7.78184
  Prefactor  = 62.3467
  Prefactor  = 19.2587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.152
  norm       = 7.49996
  Normalizat = 0.590088
  Prefactor  = 1.07638
 **********
 **   18 **HESSE 
 **********

 FCN=   3864.682     FROM HESSE     STATUS=OK           376 CALLS     2918 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59689        3.4140        .20163E-03   -1.5553    
   3  norm          2.0040        1.9078        .81074E-04   -1.5425    
   4  Prefactor     .10000E-03    6.4140        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.9447        6.8113        .11505E-03   -1.5077    
   6  norm          .21353        1.3677        .11387E-02   -1.5616    
   7  norm          .10000E-03    .94753        .58750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5469        3.9109        .11979E-03   -1.5331    
   9  Prefactor     58.103        58.999        .52617E-04   -1.4182    
  10  norm          4.9265        2.8643        .75305E-04   -1.5264    
  11  Prefactor     16.058        16.839        .99967E-04   -1.4906    
  12  Prefactor     1.2239        6.9075        .29815E-03   -1.5487    
  13  Prefactor     .10000E-03    4.3382        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          48.223        47.649        .57742E-04   -1.4318    
  15  Prefactor     7.7818        7.6707        .14376E-03   -1.5150    
  16  Prefactor     62.347        52.820        .50810E-04   -1.4127    
  17  Prefactor     19.259        42.748        .91190E-04   -1.4830    
  18  Prefactor     .10000E-03    33.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4726        .73579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.152        41.106        .68566E-04   -1.4539    
  21  norm          7.5000        3.0330        .65970E-04   -1.5160    
  22  Normalizat    .59009        .24323        .26964E-03   -1.0841    
  23  Prefactor     1.0764        .26219        .23622E-03   -.90225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79161e-09
Minuit parameter uncertainties:
  1  0.000720827
  2  2.85505
  3  1.90785
  4  1.7336e-06
  5  6.81184
  6  1.0806
  7  1.13537e-06
  8  3.91122
  9  59.0583
  10  2.86437
  11  16.8435
  12  5.8159
  13  8.32692e-06
  14  47.6867
  15  7.67164
  16  52.8594
  17  42.8158
  18  1.18631e-05
  19  2.8867e-06
  20  41.1397
  21  3.03308
  22  0.243668
  23  0.262506
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.606e+01  1.684e+01  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.076e+00  2.625e-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:  5.901e-01  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 31.899 -24.048
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.91e-05

TS (Fixed Index): 1.30
Ra Dec: 31.899 -24.048
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135364/likelihoodResults_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.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) = 3864.52962032
delta logL = 0.152488125901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3864.51985478
delta logL = 0.162253660983

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6173       1.0000          .0000       10.000    
     3 'Normalizat'    .56880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0935       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=   3864.520     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      275 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.016        17.913        .12659E-03   -.26893E-03
   2  Index         2.6175        .93506        .49612E-02   -.65772E-04
   3  Normalizat    .56887        .22693        .27421E-03    .12933E-03
   4  Prefactor     1.0934        .26053        .23455E-03    .31215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0159
  Index      = 2.61751
  Normalizat = 0.568875
  Prefactor  = 1.09337
 **********
 **   18 **HESSE 
 **********

 FCN=   3864.520     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.016        15.604        .50636E-05   -1.5075    
   2  Index         2.6175        .81510        .19845E-03   -.49667    
   3  Normalizat    .56887        .22665        .10969E-04   -1.0932    
   4  Prefactor     1.0934        .26010        .93818E-05   -.89679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25962e-10
Minuit parameter uncertainties:
  1  15.6103
  2  0.819843
  3  0.227016
  4  0.260402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135364': 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) = 3864.51985466
delta logL = 0.162253781683

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.002e+01  1.561e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.618e+00  8.198e-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:  1.093e+00  2.604e-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:  5.689e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 31.899 -24.048
Photon Index (Free Index): 2.62 +/- 0.82
Photon Flux (Free Index): 5.53e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.41e-05

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/135364/cmap_HighResolution_504230401_504489601_4FGL_J0207.5-2402_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.43e-05', photon_flux_error='4.16e-08', dlogl='1.62e-01', energy_flux='1.82e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-08-15 08:36:47.340401', photon_index_error2='0.82', photon_index2='2.62', ts='1.30', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.41e-05', EG='0.59', time_epoch_completed='1629041807.34', return_code='0', job_id='135364', GAL2='1.09', EG2='0.57', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='5.39e-08', ts2='1.64', photon_index='2.19' WHERE bin_id='1022' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:36:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 135364: <4FGL_J0207.5-2402_daily_bin1022> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1022> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 15 08:20:38 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:23:06 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:06 2021
Terminated at Sun Aug 15 08:36:48 2021
Results reported at Sun Aug 15 08:36:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1022 31.8989 -24.0484 504230401 504489601 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 :                                   711.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            970 sec.

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

