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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1256
RA = 31.8989, Dec = -24.0484
tmin = 564883201, tmax = 565142401
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='136780', job_status='RUN', time_executed='2021-08-15 08:28:40.133254', time_epoch_executed='1629041320.13' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136780/ft1_4FGL_J0207.5-2402_daily_bin1256.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136780/ft1_4FGL_J0207.5-2402_daily_bin1256.fits outfile=/scratch/kocevski/136780/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1256.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=564883201.0 tmax=565142401.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.45
user 3.33
sys 2.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136780/ft1_filtered_4FGL_J0207.5-2402_daily_bin1256.fits" evtable="EVENTS" scfile=/scratch/kocevski/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits sctable="SC_DATA" outfile=/scratch/kocevski/136780/ltcube_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.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/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits
.....................!
real 16.24
user 13.72
sys 2.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136780/ft1_filtered_4FGL_J0207.5-2402_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits sctable="SC_DATA" expcube=/scratch/kocevski/136780/ltcube_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.fits outfile=/scratch/kocevski/136780/expmap_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.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/136780/ltcube_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.fits
.....................!
real 194.57
user 186.07
sys 7.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/136780/ft1_filtered_4FGL_J0207.5-2402_daily_bin1256.fits scfile=/scratch/kocevski/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits outfile=/scratch/kocevski/136780/cmap_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.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.41
user 0.38
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136780/ft1_filtered_4FGL_J0207.5-2402_daily_bin1256.fits scfile=/scratch/kocevski/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits outfile=/scratch/kocevski/136780/cmap_HighResolution_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.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.43
user 0.41
sys 2.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136780/ft1_filtered_4FGL_J0207.5-2402_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/136780/ft2_4FGL_J0207.5-2402_daily_bin1256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136780/Model_4FGL_J0207.5-2402_daily_bin1256.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/136780/ft1_filtered_4FGL_J0207.5-2402_daily_bin1256.fits....................!
real 80.88
user 76.78
sys 3.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.2482       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4401       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9820       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7016       1.0000         .10000E-03   10000.    
     8 'norm      '    .57722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3209       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.675       1.0000         .10000E-03   10000.    
    14 'norm      '    83.003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.298       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26260E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.495       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1397       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95637       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .57170       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=   3726.005     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     2104 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1855       -.96932E-06** at limit **
   2  norm          3.2489        2.6085        .44689E-07    .15214E-02
   3  norm          2.5694        2.2467       -.27315E-06   -.64172E-04
   4  Prefactor     25.700        1.0249        .16974E-07   -.54596E-03
   5  Prefactor     1.4402        1.2738       -.12179E-07    .13662E-03
   6  norm          2.9822        1.6694        .14050E-06    .12917E-03
   7  norm          2.7017        1.9683       -.16163E-06   -.30596E-03
   8  norm          .57688        2.1914       -.57903E-06   -.64590E-03
   9  Prefactor     .10003E-03    32.469       -.27136E-06** at limit **
  10  norm          2.3208        1.8731       -.15060E-06   -.45900E-03
  11  Prefactor     .10000E-03    4.4256        .71631E-06** at limit **
  12  Prefactor     .10000E-03    3.1238       -.47647E-06** at limit **
  13  Prefactor     21.668        1.1083       -.60022E-08   -.21260E-03
  14  norm          82.998        1.9901       -.90313E-07    .99766E-02
  15  Prefactor     12.298        1.0450       -.33806E-07   -.14916E-03
  16  Prefactor     .12491E-03    4.5305       -.19215E-05** at limit **
  17  Prefactor     .10006E-03    10.443        .17578E-05** at limit **
  18  Prefactor     .10003E-03    6.8952       -.18739E-05** at limit **
  19  Prefactor     .10000E-03    1.7560        .23814E-06** at limit **
  20  Prefactor     45.495        1.0055       -.71777E-08    .44197E-03
  21  norm          2.1398        1.6159        .20555E-06    .25368E-03
  22  Normalizat    .95629        .20988       -.49179E-06   -.21062E-03
  23  Prefactor     .57173        .23485       -.86907E-06   -.14396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 3.24891
  norm       = 2.56937
  Prefactor  = 25.7005
  Prefactor  = 1.44021
  norm       = 2.98217
  norm       = 2.70172
  norm       = 0.576884
  Prefactor  = 0.000100033
  norm       = 2.32077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6677
  norm       = 82.9977
  Prefactor  = 12.2977
  Prefactor  = 0.00012491
  Prefactor  = 0.000100057
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 45.4951
  norm       = 2.13979
  Normalizat = 0.956293
  Prefactor  = 0.571735
 **********
 **   18 **HESSE 
 **********

 FCN=   3726.005     FROM HESSE     STATUS=OK           418 CALLS     2522 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2489        2.9489        .56182E-02   -1.5347    
   3  norm          2.5694        2.2652        .63662E-02   -1.5387    
   4  Prefactor     25.700        17.444        .19755E-02   -1.4694    
   5  Prefactor     1.4402        5.6260        .89878E-02   -1.5468    
   6  norm          2.9822        1.6741        .58776E-02   -1.5363    
   7  norm          2.7017        1.9941        .61959E-02   -1.5379    
   8  norm          .57688        2.2366        .11582E-01   -1.5556    
   9  Prefactor     .10003E-03    32.598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3208        1.8872        .67312E-02   -1.5403    
  11  Prefactor     .10000E-03    4.4185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.668        17.382        .21508E-02   -1.4777    
  14  norm          82.998        87.129        .11022E-02   -1.3883    
  15  Prefactor     12.298        7.5654        .28557E-02   -1.5006    
  16  Prefactor     .12491E-03    123.21        .10723E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    11.097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    10.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.495        38.398        .14861E-02   -1.4358    
  21  norm          2.1398        1.6190        .70445E-02   -1.5415    
  22  Normalizat    .95629        .18231        .45618E-01   -.94509    
  23  Prefactor     .57173        .19889        .63981E-01   -1.0879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10528e-06
Minuit parameter uncertainties:
  1  0.000318281
  2  2.949
  3  2.26527
  4  17.4475
  5  5.62803
  6  1.67414
  7  1.9942
  8  2.23692
  9  0.0020782
  10  1.88722
  11  3.69443e-05
  12  1.77757e-05
  13  17.3863
  14  87.2632
  15  7.56597
  16  0.111028
  17  0.00159474
  18  0.00111493
  19  6.16286e-06
  20  38.4191
  21  1.61899
  22  0.182432
  23  0.199138
Done.

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

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.694e-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:  5.717e-01  1.991e-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.563e-01  1.824e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136780/likelihoodResults_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.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) = 3726.00639375
delta logL = -0.00107184492299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3726.00532183
delta logL = 7.19778654457e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1737       1.0000          .0000       10.000    
     3 'Normalizat'    .95630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57174       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=   3726.005     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    61.436        .12655E-02** at limit **
   2  Index         2.1265        8.2298        .50000        .25148E-04
   3  Normalizat    .95629        .16020E-01    .19705E-03   -.16616E-04
   4  Prefactor     .57173        .18242E-01    .28311E-03   -.11605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100891
  Index      = 2.12654
  Normalizat = 0.956294
  Prefactor  = 0.571735
 **********
 **   18 **HESSE 
 **********

 FCN=   3726.005     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    251.27        .25310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1265        5.8227        .50000       -.61223    
   3  Normalizat    .95629        .34184E-01    .78820E-05   -.94509    
   4  Prefactor     .57173        .38922E-01    .11324E-04   -1.0879    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64293e-08
Minuit parameter uncertainties:
  1  0.030052
  2  549.241
  3  0.0341846
  4  0.0389239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136780': 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) = 3726.00532158
delta logL = 3.24479970004e-07

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  1.009e-04  3.005e-02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.127e+00  5.492e+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:  5.717e-01  3.892e-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:  9.563e-01  3.418e-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/136780/cmap_HighResolution_564883201_565142401_4FGL_J0207.5-2402_daily_bin1256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-08-15 08:38:36.546558', job_id='136780', GAL2='0.57', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629041916.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='3.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1256' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:38:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 136780: <4FGL_J0207.5-2402_daily_bin1256> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1256 31.8989 -24.0484 564883201 565142401 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 :                                   610.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            786 sec.

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

