/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 0 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0207.5-2402_daily_bin118
RA = 31.8989, Dec = -24.0484
tmin = 269913601, tmax = 270172801
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='130838', job_status='RUN', time_executed='2021-08-15 08:09:52.628221', time_epoch_executed='1629040192.63' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/130838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/130838/ft1_4FGL_J0207.5-2402_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/130838/ft1_4FGL_J0207.5-2402_daily_bin118.fits outfile=/scratch/kocevski/130838/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin118.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=269913601.0 tmax=270172801.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.21
user 1.46
sys 1.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/130838/ft1_filtered_4FGL_J0207.5-2402_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/130838/ltcube_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.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/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits
.....................!
real 14.72
user 12.73
sys 1.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/130838/ft1_filtered_4FGL_J0207.5-2402_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/130838/ltcube_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.fits outfile=/scratch/kocevski/130838/expmap_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.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/130838/ltcube_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.fits
.....................!
real 193.35
user 185.59
sys 7.13

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/130838/ft1_filtered_4FGL_J0207.5-2402_daily_bin118.fits scfile=/scratch/kocevski/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits outfile=/scratch/kocevski/130838/cmap_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.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 2.06
user 0.37
sys 1.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/130838/ft1_filtered_4FGL_J0207.5-2402_daily_bin118.fits scfile=/scratch/kocevski/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits outfile=/scratch/kocevski/130838/cmap_HighResolution_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.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 2.08
user 0.39
sys 1.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/130838/ft1_filtered_4FGL_J0207.5-2402_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/130838/ft2_4FGL_J0207.5-2402_daily_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/130838/Model_4FGL_J0207.5-2402_daily_bin118.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/130838/ft1_filtered_4FGL_J0207.5-2402_daily_bin118.fits.....................!
real 94.52
user 90.91
sys 3.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9214       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5801       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67870E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    3.5082       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3696       1.0000         .10000E-03   10000.    
     8 'norm      '    15.232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8148       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.566       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27809E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.454       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9511       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82023       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91885       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=   4780.371     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     3042 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9235        22.233        .13419E-03    .50722E-03
   2  norm          2.5801        4.8853        .12573E-03    .89904E-03
   3  norm          5.1490        2.9477        .87115E-04    .11080E-03
   4  Prefactor     .10000E-03    10.131        .18142E-02** at limit **
   5  Prefactor     .10072E-03    11.168        .35328E-01** at limit **
   6  norm          3.5080        1.6940        .60031E-04   -.93365E-04
   7  norm          1.3696        2.0934        .11719E-03    .32558E-03
   8  norm          15.231        5.1239        .83765E-04    .29058E-03
   9  Prefactor     .10000E-03    63.932        .18142E-02** at limit **
  10  norm          3.8142        2.2397        .75470E-04    .55902E-03
  11  Prefactor     .10000E-03    4.4687        .14265E-02** at limit **
  12  Prefactor     .10000E-03    1.7413        .88971E-03** at limit **
  13  Prefactor     .10000E-03    7.3493        .18142E-02** at limit **
  14  norm          .10000E-03    141.03        .18142E-02** at limit **
  15  Prefactor     8.0610        9.3442        .14120E-03    .13446E-04
  16  Prefactor     66.785        44.618        .49106E-04    .30986E-03
  17  Prefactor     63.555        76.088        .25197E-03    .97907E-05
  18  Prefactor     62.567        40.013        .50730E-04   -.94660E-04
  19  Prefactor     .10000E-03    8.7818        .26462E-02** at limit **
  20  Prefactor     49.485        50.954        .57024E-04   -.20535E-04
  21  norm          3.9506        2.2318        .74737E-04   -.19577E-03
  22  Normalizat    .82024        .23727        .25131E-03    .36370E-03
  23  Prefactor     .91899        .24154        .26804E-03    .23719E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.9235
  norm       = 2.58011
  norm       = 5.14904
  Prefactor  = 0.0001
  Prefactor  = 0.000100724
  norm       = 3.50798
  norm       = 1.36961
  norm       = 15.2308
  Prefactor  = 0.000100001
  norm       = 3.81425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.06103
  Prefactor  = 66.7848
  Prefactor  = 63.5546
  Prefactor  = 62.5671
  Prefactor  = 0.0001
  Prefactor  = 49.4849
  norm       = 3.95063
  Normalizat = 0.820243
  Prefactor  = 0.918993
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.371     FROM HESSE     STATUS=OK           356 CALLS     3398 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9235        22.241        .53677E-05   -1.5110    
   2  norm          2.5801        4.8793        .50293E-05   -1.5387    
   3  norm          5.1490        2.9476        .17423E-04   -1.5254    
   4  Prefactor     .10000E-03    10.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10072E-03    6.6872        .47025E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.5080        1.6940        .24012E-05   -1.5333    
   7  norm          1.3696        2.0924        .46875E-05   -1.5474    
   8  norm          15.231        5.1236        .33506E-05   -1.4927    
   9  Prefactor     .10000E-03    63.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8142        2.2396        .30188E-05   -1.5317    
  11  Prefactor     .10000E-03    4.4688        .28529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.7414        .17794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    141.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0610        9.3427        .56478E-05   -1.5140    
  16  Prefactor     66.785        44.614        .98212E-05   -1.4072    
  17  Prefactor     63.555        76.073        .10079E-04   -1.4112    
  18  Prefactor     62.567        40.013        .10146E-04   -1.4124    
  19  Prefactor     .10000E-03    8.8280        .52923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     49.485        50.942        .22810E-05   -1.4300    
  21  norm          3.9506        2.2318        .29895E-05   -1.5310    
  22  Normalizat    .82024        .23715        .50262E-04   -.99322    
  23  Prefactor     .91899        .24166        .53609E-04   -.95481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17227e-09
Minuit parameter uncertainties:
  1  22.2615
  2  4.88002
  3  2.94772
  4  7.22933e-06
  5  0.00440053
  6  1.694
  7  2.09252
  8  5.12376
  9  0.000417607
  10  2.23961
  11  1.95028e-05
  12  5.17494e-07
  13  7.59268e-05
  14  0.000703756
  15  9.34443
  16  44.6365
  17  76.1897
  18  40.0299
  19  3.41704e-05
  20  50.987
  21  2.23183
  22  0.237453
  23  0.241942
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.950e-05  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:  9.190e-01  2.419e-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.202e-01  2.375e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/130838/likelihoodResults_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.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) = 4780.37229235
delta logL = -0.00106245055031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4780.37122985
delta logL = 4.54974724562e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1778       1.0000          .0000       10.000    
     3 'Normalizat'    .82024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91901       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=   4780.371     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      238 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10210E-03    6.1696        .14342E-01** at limit **
   2  Index         2.0104        8.1006        .50000        .11417E-04
   3  Normalizat    .82024        .51618E-02    .25132E-03   -.10450E-04
   4  Prefactor     .91899        .58323E-02    .26804E-03   -.79314E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102096
  Index      = 2.01044
  Normalizat = 0.82024
  Prefactor  = 0.918995
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.371     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10210E-03    284.54        .14747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0104        6.6744        .50000       -.64089    
   3  Normalizat    .82024        .37735E-01    .10053E-04   -.99322    
   4  Prefactor     .91899        .42622E-01    .10722E-04   -.95480    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.50602e-07
Minuit parameter uncertainties:
  1  0.0490779
  2  1508.05
  3  0.0377362
  4  0.0426239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/130838': 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) = 4780.37122939
delta logL = 5.0894323067e-07

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.021e-04  4.908e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.010e+00  1.508e+03  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.190e-01  4.262e-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.202e-01  3.774e-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/130838/cmap_HighResolution_269913601_270172801_4FGL_J0207.5-2402_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-08-15 08:20:58.462587', job_id='130838', GAL2='0.92', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629040858.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='118' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:20:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 130838: <4FGL_J0207.5-2402_daily_bin118> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin118> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 08:06:24 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:09:13 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:09:13 2021
Terminated at Sun Aug 15 08:20:59 2021
Results reported at Sun Aug 15 08:20:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin118 31.8989 -24.0484 269913601 270172801 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 :                                   687.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            875 sec.

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

