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


Performing analysis on: 4FGL_J0207.5-2402_daily_bin1543
RA = 31.8989, Dec = -24.0484
tmin = 639273601, tmax = 639532801
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='138127', job_status='RUN', time_executed='2021-08-15 08:31:18.685173', time_epoch_executed='1629041478.69' WHERE source_name='4FGL J0207.5-2402' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138127/ft1_4FGL_J0207.5-2402_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138127/ft1_4FGL_J0207.5-2402_daily_bin1543.fits outfile=/scratch/kocevski/138127/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1543.fits ra=31.8989 dec=-24.0484 rad=12.0 tmin=639273601.0 tmax=639532801.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.32
user 5.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.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/138127/ft1_filteredMKT_4FGL_J0207.5-2402_daily_bin1543.fits evtable="EVENTS" outfile="/scratch/kocevski/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.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 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/138127/ltcube_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.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/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits
.....................!
real 16.49
user 16.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/138127/ltcube_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.fits outfile=/scratch/kocevski/138127/expmap_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.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/138127/ltcube_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.fits
.....................!
real 192.60
user 187.64
sys 4.56

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/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.fits scfile=/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits outfile=/scratch/kocevski/138127/cmap_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.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 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.fits scfile=/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits outfile=/scratch/kocevski/138127/cmap_HighResolution_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.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 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/138127/ft2_4FGL_J0207.5-2402_daily_bin1543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/138127/Model_4FGL_J0207.5-2402_daily_bin1543.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/138127/ft1_filtered_4FGL_J0207.5-2402_daily_bin1543.fits.....................!
real 129.33
user 127.38
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0220       1.0000         .10000E-03   10000.    
     2 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6545       1.0000         .10000E-03   10000.    
     7 'norm      '    .17518       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.410       1.0000         .10000E-03   10000.    
    10 'norm      '    13.002       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15340E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.063       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71750E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.215       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.324       1.0000         .10000E-03   10000.    
    21 'norm      '    .74578       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72184       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=   6556.114     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2583 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0144        10.342        .10403E-06   -.19483E-04
   2  norm          .10000E-03    1.1583       -.26800E-07** at limit **
   3  norm          1.4879        1.1085       -.24212E-07   -.28180E-04
   4  Prefactor     .10000E-03    2.9745       -.16643E-07** at limit **
   5  Prefactor     .10000E-03    1.1501       -.18576E-07** at limit **
   6  norm          1.6544        1.2705        .83079E-07   -.79995E-04
   7  norm          .17477        1.2739        .13852E-05   -.16305E-03
   8  norm          1.6363        1.9775        .83936E-07   -.20970E-03
   9  Prefactor     23.410        23.610       -.35836E-07   -.17134E-04
  10  norm          13.002        2.9005        .33677E-07   -.11814E-03
  11  Prefactor     24.183        10.953       -.12375E-07   -.10747E-03
  12  Prefactor     .10000E-03    6.5764        .22383E-06** at limit **
  13  Prefactor     34.062        10.755        .64260E-07   -.31192E-04
  14  norm          .10000E-03    28.268        .89774E-07** at limit **
  15  Prefactor     .10001E-03    2.5539        .56058E-06** at limit **
  16  Prefactor     .10000E-03    17.078        .25555E-07** at limit **
  17  Prefactor     19.193        29.173       -.33623E-06   -.13116E-03
  18  Prefactor     36.070        26.357        .79040E-07    .16651E-04
  19  Prefactor     .10000E-03    1.1073       -.54510E-07** at limit **
  20  Prefactor     21.318        43.374       -.14577E-06   -.47588E-04
  21  norm          .74629        1.3892        .58198E-06    .63694E-03
  22  Normalizat    1.0461        .15616       -.81751E-06   -.27259E-03
  23  Prefactor     .72211        .16775       -.10695E-06   -.19985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.01445
  norm       = 0.0001
  norm       = 1.48787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65437
  norm       = 0.174773
  norm       = 1.63627
  Prefactor  = 23.4103
  norm       = 13.0022
  Prefactor  = 24.1826
  Prefactor  = 0.0001
  Prefactor  = 34.062
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 19.1931
  Prefactor  = 36.07
  Prefactor  = 0.0001
  Prefactor  = 21.3184
  norm       = 0.746287
  Normalizat = 1.0461
  Prefactor  = 0.722107
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.114     FROM HESSE     STATUS=OK           376 CALLS     2959 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0144        9.3729        .14156E-03   -1.5142    
   2  norm          .10000E-03    1.5611        .15336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4879        1.1185        .71782E-04   -1.5464    
   4  Prefactor     .10000E-03    2.9777        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1571        .84730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6544        1.2615        .76285E-04   -1.5451    
   7  norm          .17477        1.2087        .17003E-03   -1.5624    
   8  norm          1.6363        1.9537        .11878E-03   -1.5452    
   9  Prefactor     23.410        23.608        .82788E-04   -1.4740    
  10  norm          13.002        2.9077        .61597E-04   -1.4987    
  11  Prefactor     24.183        10.954        .81473E-04   -1.4724    
  12  Prefactor     .10000E-03    6.8375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.062        10.756        .68660E-04   -1.4540    
  14  norm          .10000E-03    28.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    13.649        .24186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.193        29.218        .91369E-04   -1.4831    
  18  Prefactor     36.070        26.217        .66741E-04   -1.4506    
  19  Prefactor     .10000E-03    1.1115        .83173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.318        43.551        .86738E-04   -1.4784    
  21  norm          .74629        1.2848        .13379E-02   -1.5535    
  22  Normalizat    1.0461        .18411        .21247E-03   -.91502    
  23  Prefactor     .72211        .19720        .28827E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10481e-09
Minuit parameter uncertainties:
  1  9.37462
  2  1.06798e-06
  3  1.11856
  4  2.05899e-06
  5  1.44411e-06
  6  1.26153
  7  0.918987
  8  1.95379
  9  23.6172
  10  2.90772
  11  10.9553
  12  5.70487e-06
  13  10.7571
  14  2.99189e-05
  15  0.000781915
  16  8.01169e-06
  17  29.2395
  18  26.2256
  19  1.27117e-06
  20  43.6162
  21  1.2848
  22  0.184225
  23  0.197395
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.046e+00  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.18
Ra Dec: 31.899 -24.048
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.24e-05

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) = 6556.00773674
delta logL = 0.106324218471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.00663161
delta logL = 0.107429345309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.449       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0039       1.0000          .0000       10.000    
     3 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71379       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=   6556.007     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      301 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.453        14.213        .38233E-03    .56230E-04
   2  Index         2.0037        .40231        .56365E-02    .27654E-03
   3  Normalizat    1.0589        .17213        .21139E-03   -.25654E-04
   4  Prefactor     .71368        .19549        .28986E-03   -.19885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4534
  Index      = 2.00373
  Normalizat = 1.0589
  Prefactor  = 0.713676
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.007     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.453        14.033        .15293E-04   -1.4660    
   2  Index         2.0037        .39702        .11273E-02   -.64257    
   3  Normalizat    1.0589        .17220        .84555E-05   -.91083    
   4  Prefactor     .71368        .19564        .11595E-04   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7376e-12
Minuit parameter uncertainties:
  1  14.035
  2  0.397674
  3  0.172294
  4  0.195824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138127': 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) = 6556.00663139
delta logL = 0.107429571277

Extracting fit parameters...

4FGL J0207.5-2402
   Spectrum: PowerLaw
282    Prefactor:  2.745e+01  1.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.004e+00  3.977e-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:  7.137e-01  1.958e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.059e+00  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.35
Ra Dec: 31.899 -24.048
Photon Index (Free Index): 2.00 +/- 0.40
Photon Flux (Free Index): 4.96e-08 +/- 3.18e-08
Energy Flux (Free Index): 3.40e-05 +/- 2.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/138127/cmap_HighResolution_639273601_639532801_4FGL_J0207.5-2402_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='3.40e-05', photon_flux_error='2.71e-08', dlogl='1.07e-01', energy_flux='2.74e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-08-15 08:43:54.936294', photon_index_error2='0.40', photon_index2='2.00', ts='19.18', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.42e-05', EG='1.05', time_epoch_completed='1629042234.94', return_code='0', job_id='138127', GAL2='0.71', EG2='1.06', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.18e-08', ts2='19.35', photon_index='2.19' WHERE bin_id='1543' AND source_name='4FGL J0207.5-2402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 08:43:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 138127: <4FGL_J0207.5-2402_daily_bin1543> in cluster <slac> Done

Job <4FGL_J0207.5-2402_daily_bin1543> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Aug 15 08:30:33 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 08:30:54 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:30:54 2021
Terminated at Sun Aug 15 08:43:55 2021
Results reported at Sun Aug 15 08:43:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0207.5-2402_daily_bin1543 31.8989 -24.0484 639273601 639532801 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            802 sec.

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

