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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1150
RA = 31.8989, Dec = -24.0484
tmin = 537408001, tmax = 537667201
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='136626', job_status='RUN', time_executed='2021-08-15 08:28:35.648661', time_epoch_executed='1629041315.65' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136626/ft1_4FGL_J0207.5-2402_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136626/ft1_4FGL_J0207.5-2402_daily_bin1150.fits outfile=/scratch/kocevski/136626/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1150.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=537408001.0 tmax=537667201.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 5.41
user 4.32
sys 1.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136626/ft1_filtered_4FGL_J0207.5-2402_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/136626/ltcube_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.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/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits
.....................!
real 13.87
user 12.54
sys 1.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136626/ft1_filtered_4FGL_J0207.5-2402_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/136626/ltcube_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.fits outfile=/scratch/kocevski/136626/expmap_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.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/136626/ltcube_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.fits
.....................!
real 193.97
user 187.49
sys 6.05

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/136626/ft1_filtered_4FGL_J0207.5-2402_daily_bin1150.fits scfile=/scratch/kocevski/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits outfile=/scratch/kocevski/136626/cmap_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.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.40
user 0.37
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136626/ft1_filtered_4FGL_J0207.5-2402_daily_bin1150.fits scfile=/scratch/kocevski/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits outfile=/scratch/kocevski/136626/cmap_HighResolution_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.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.43
user 0.38
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136626/ft1_filtered_4FGL_J0207.5-2402_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/136626/ft2_4FGL_J0207.5-2402_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136626/Model_4FGL_J0207.5-2402_daily_bin1150.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/136626/ft1_filtered_4FGL_J0207.5-2402_daily_bin1150.fits.....................!
real 94.11
user 91.28
sys 2.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5340       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48114       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1563       1.0000         .10000E-03   10000.    
     7 'norm      '    .10998E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10308E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2814       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.908       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3279       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92948       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4631.294     FROM MIGRAD    STATUS=CONVERGED     82 CALLS     2085 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    9.4323        .34246E-06** at limit **
   2  norm          7.5339        1.2049        .11005E-05    .42950E-02
   3  norm          3.2244        2.1202        .92785E-06    .44417E-03
   4  Prefactor     8.5053        1.2332        .71196E-06   -.13744E-02
   5  Prefactor     .48038        .82272        .17712E-05    .76751E-03
   6  norm          8.1563        2.1898       -.21284E-06   -.39114E-03
   7  norm          .10002E-03    3.6151        .88817E-05** at limit **
   8  norm          1.0596        2.7217        .35074E-06   -.13884E-04
   9  Prefactor     .10022E-03    10.173        .42603E-05** at limit **
  10  norm          .10000E-03    2.1887       -.40153E-06** at limit **
  11  Prefactor     .10004E-03    3.2205       -.11625E-04** at limit **
  12  Prefactor     .10000E-03    1.7009       -.42706E-06** at limit **
  13  Prefactor     .10000E-03    3.2233        .34281E-05** at limit **
  14  norm          .10102E-03    7.8892        .74900E-05** at limit **
  15  Prefactor     4.2800        1.2444        .14165E-05   -.60649E-03
  16  Prefactor     .10074E-03    8.5003        .31963E-05** at limit **
  17  Prefactor     31.907        1.0251       -.13224E-06    .12601E-02
  18  Prefactor     .10030E-03    5.5571       -.45335E-05** at limit **
  19  Prefactor     .10000E-03    1.8869        .33712E-06** at limit **
  20  Prefactor     .10241E-03    21.323       -.13350E-04** at limit **
  21  norm          1.3274        1.7249        .40347E-06   -.99961E-04
  22  Normalizat    .92963        .18956       -.41141E-05   -.36242E-04
  23  Prefactor     .76244        .21733        .13517E-05   -.10926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100202
  norm       = 7.53391
  norm       = 3.22437
  Prefactor  = 8.50531
  Prefactor  = 0.48038
  norm       = 8.1563
  norm       = 0.00010002
  norm       = 1.05962
  Prefactor  = 0.000100224
  norm       = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000101021
  Prefactor  = 4.28001
  Prefactor  = 0.000100739
  Prefactor  = 31.9073
  Prefactor  = 0.000100303
  Prefactor  = 0.0001
  Prefactor  = 0.000102413
  norm       = 1.32737
  Normalizat = 0.929628
  Prefactor  = 0.76244
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.294     FROM HESSE     STATUS=OK           422 CALLS     2507 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    11.578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5339        3.8176        .36527E-02   -1.5159    
   3  norm          3.2244        2.1428        .56398E-02   -1.5349    
   4  Prefactor     8.5053        17.808        .34375E-02   -1.5125    
   5  Prefactor     .48038        6.3739        .11194E-01   -1.5569    
   6  norm          8.1563        2.1936        .35096E-02   -1.5137    
   7  norm          .10002E-03    2.0721        .29907E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0596        2.8069        .11912E-01   -1.5502    
   9  Prefactor     .10022E-03    16.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2600        .28125E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    3.5798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10102E-03    23.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2800        5.4182        .48678E-02   -1.5294    
  16  Prefactor     .10074E-03    26.309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.907        39.877        .17734E-02   -1.4578    
  18  Prefactor     .10030E-03    13.170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10241E-03    33.414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3274        1.7587        .95325E-02   -1.5478    
  22  Normalizat    .92963        .16451        .45277E-01   -.95427    
  23  Prefactor     .76244        .18402        .43228E-01   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39309e-07
Minuit parameter uncertainties:
  1  0.00305899
  2  3.81774
  3  2.14287
  4  17.8194
  5  3.49975
  6  2.1936
  7  0.000412132
  8  2.80727
  9  0.00386607
  10  1.03846e-05
  11  0.000731733
  12  5.72496e-06
  13  0.000205688
  14  0.00987634
  15  5.41884
  16  0.00882382
  17  39.91
  18  0.00399826
  19  6.5225e-06
  20  0.0179687
  21  1.7588
  22  0.164598
  23  0.184164
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  7.317e-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:  7.624e-01  1.842e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.296e-01  1.646e-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: 4.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136626/likelihoodResults_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.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) = 4631.29518427
delta logL = -0.00132350385229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4631.29386072
delta logL = 5.41795088793e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1790       1.0000          .0000       10.000    
     3 'Normalizat'    .92964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76244       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4631.294     FROM MIGRAD    STATUS=FAILED        90 CALLS      238 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    10.775        .12631E-01** at limit **
   2  Index         1.8027        8.7882        .50000        .20310E-05
   3  Normalizat    .92963        .65056E-02    .20256E-03   -.36650E-04
   4  Prefactor     .76244        .75702E-02    .25652E-03    .89966E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4631.294     FROM SIMPLEX   STATUS=UNCHANGED    109 CALLS      347 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    10.775        .36738E-03** at limit **
   2  Index         1.8027        8.7882        .29069E-02    .20310E-05
   3  Normalizat    .92963        .65056E-02    .57135E-05   -.36650E-04
   4  Prefactor     .76244        .75702E-02    .93328E-05    .89966E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4631.294     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      419 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7403        .26439E-03** at limit **
   2  Index         1.7717        5.4673        .50000       -.39677E-07
   3  Normalizat    .92963        .18660        .16204E-05    .28063E-04
   4  Prefactor     .76244        .21705        .20522E-05    .34347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7717
  Normalizat = 0.929628
  Prefactor  = 0.76244
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.294     FROM HESSE     STATUS=OK            29 CALLS      448 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9885        .52878E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7717        8.7452        .50000       -.70189    
   3  Normalizat    .92963        .19082        .32409E-06   -.95427    
   4  Prefactor     .76244        .22196        .41044E-06   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91524e-12
Minuit parameter uncertainties:
  1  2.53613e-06
  2  181.142
  3  0.190958
  4  0.222215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136626': 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) = 4631.29385944
delta logL = 1.32684090204e-06

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.536e-06  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  1.772e+00  1.811e+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:  7.624e-01  2.222e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.296e-01  1.910e-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/136626/cmap_HighResolution_537408001_537667201_4FGL_J0207.5-2402_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-03', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2021-08-15 08:41:31.360987', job_id='136626', GAL2='0.76', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1629042091.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1150' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 136626: <4FGL_J0207.5-2402_daily_bin1150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1150 31.8989 -24.0484 537408001 537667201 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 :                                   637.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

