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


Performing analysis on: 4FGL_J0720.0-6237_daily_bin1142
RA = 110.018, Dec = -62.6173
tmin = 535334401, tmax = 535593601
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='246810', job_status='RUN', time_executed='2021-08-27 01:25:45.069405', time_epoch_executed='1630052745.07' WHERE source_name='4FGL J0720.0-6237' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/246810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/246810/ft1_4FGL_J0720.0-6237_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/246810/ft1_4FGL_J0720.0-6237_daily_bin1142.fits outfile=/scratch/kocevski/246810/ft1_filteredMKT_4FGL_J0720.0-6237_daily_bin1142.fits ra=110.018 dec=-62.6173 rad=12.0 tmin=535334401.0 tmax=535593601.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.74
user 4.95
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.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/246810/ft1_filteredMKT_4FGL_J0720.0-6237_daily_bin1142.fits evtable="EVENTS" outfile="/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.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.09
user 0.35
sys 0.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/246810/ltcube_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.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/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits
.....................!
real 12.10
user 11.09
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/246810/ltcube_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.fits outfile=/scratch/kocevski/246810/expmap_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.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/246810/ltcube_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.fits
.....................!
real 191.27
user 185.81
sys 5.06

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 LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 218 point sources and 7 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 J0720.0-6237 @ 110.018 -62.6173

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits scfile=/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits outfile=/scratch/kocevski/246810/cmap_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.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=110.018 yref=-62.6173 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.14
user 0.39
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits scfile=/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits outfile=/scratch/kocevski/246810/cmap_HighResolution_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.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=110.018 yref=-62.6173 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.26
user 0.41
sys 0.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/246810/Model_4FGL_J0720.0-6237_daily_bin1142.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 GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits.....................!
real 5359.00
user 5348.28
sys 1.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits', '/scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits', expMap='/scratch/kocevski/246810/expmap_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.fits', expCube='/scratch/kocevski/246810/ltcube_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/246810/Model_4FGL_J0720.0-6237_daily_bin1142.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0720.0-6237'

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  2.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
350        Index:  3.129e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  2.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/246810/ft1_filtered_4FGL_J0720.0-6237_daily_bin1142.fits
Spacecraft file(s): /scratch/kocevski/246810/ft2_4FGL_J0720.0-6237_daily_bin1142.fits
Exposure map: /scratch/kocevski/246810/expmap_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.fits
Exposure cube: /scratch/kocevski/246810/ltcube_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/246810/Model_4FGL_J0720.0-6237_daily_bin1142.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) = 9081.75411815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15830E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.851       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4252       1.0000         .10000E-03   10000.    
    11 'norm      '    .12406E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .46979E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.393       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8805       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.177       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.125       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9081.745     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2247 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2097        .13370E-06** at limit **
   2  Prefactor     .10000E-03    35.947        .46654E-07** at limit **
   3  Prefactor     9.7901        18.324        .10543E-05    .14684E-03
   4  Prefactor     .10000E-03    6.0423        .49632E-07** at limit **
   5  Prefactor     .10079E-03    9.2749       -.17145E-05** at limit **
   6  Prefactor     22.110        13.752       -.72630E-07   -.34771E-04
   7  Prefactor     .10000E-03    71.137        .11311E-05** at limit **
   8  Prefactor     20.831        24.325        .15699E-06    .69719E-04
   9  norm          4.7495        4.0730        .16999E-06    .77297E-04
  10  Prefactor     3.3918        82.507        .65401E-05    .17063E-04
  11  norm          .10000E-03    2.9269       -.19989E-06** at limit **
  12  Prefactor     .10000E-03    7.9483       -.14975E-06** at limit **
  13  Prefactor     .10000E-03    5.0398       -.10205E-05** at limit **
  14  Prefactor     18.341        72.009        .14297E-04    .38646E-04
  15  Prefactor     .10000E-03    113.38       -.52863E-05** at limit **
  16  norm          3.8845        7.3648        .38411E-05   -.11225E-03
  17  Prefactor     .10000E-03    3.8125        .11634E-06** at limit **
  18  norm          15.174        13.556       -.15836E-05   -.45876E-04
  19  Prefactor     18.123        17.795        .38290E-06   -.76236E-05
  20  Normalizat    1.0291        .25059       -.18615E-05    .73767E-05
  21  Prefactor     1.0373        .84242E-01   -.32871E-06   -.83649E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.79015
  Prefactor  = 0.0001
  Prefactor  = 0.000100791
  Prefactor  = 22.1101
  Prefactor  = 0.0001
  Prefactor  = 20.8306
  norm       = 4.74949
  Prefactor  = 3.39184
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3409
  Prefactor  = 0.000100001
  norm       = 3.8845
  Prefactor  = 0.0001
  norm       = 15.1738
  Prefactor  = 18.1228
  Normalizat = 1.02913
  Prefactor  = 1.03726
 **********
 **   18 **HESSE 
 **********

 FCN=   9081.745     FROM HESSE     STATUS=OK           329 CALLS     2576 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7901        18.401        .12793E-03   -1.5082    
   4  Prefactor     .10000E-03    6.0605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10079E-03    10.170        .80478E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.110        13.752        .85186E-04   -1.4767    
   7  Prefactor     .10000E-03    71.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.831        24.351        .87716E-04   -1.4795    
   9  norm          4.7495        3.9890        .16791E-03   -1.5272    
  10  Prefactor     3.3918        82.710        .21856E-03   -1.5340    
  11  norm          .10000E-03    7.5319        .30798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.282        .39849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.341        72.114        .93388E-04   -1.4851    
  15  Prefactor     .10000E-03    113.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8845        7.4497        .10242E-02   -1.5314    
  17  Prefactor     .10000E-03    3.8358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.174        13.575        .10281E-03   -1.4929    
  19  Prefactor     18.123        17.812        .94076E-04   -1.4856    
  20  Normalizat    1.0291        .28005        .44117E-03   -.92061    
  21  Prefactor     1.0373        .95543E-01    .15472E-03   -.91498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64032e-10
Minuit parameter uncertainties:
  1  1.72912e-05
  2  7.4881e-05
  3  18.4117
  4  7.60254e-06
  5  0.00567244
  6  13.7541
  7  9.64863e-05
  8  24.3628
  9  3.98926
  10  33.5502
  11  4.61407e-05
  12  1.04138e-05
  13  9.30434e-06
  14  72.4604
  15  0.000497755
  16  7.45152
  17  9.00637e-06
  18  13.5775
  19  17.8169
  20  0.280449
  21  0.0955584
Done.

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

Extracting fit parameters...

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.041e-05  1.000e-04  1.000e+04 ( 1.000e-11)
350        Index:  3.129e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  2.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.037e+00  9.556e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.029e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 110.018 -62.617
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/246810/likelihoodResults_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9081.74599576
delta logL = -0.000591680418438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9081.74540437
delta logL = -2.84053385258e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1559       1.0000          .0000       10.000    
     3 'Normalizat'    1.0292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7430E+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=   9081.735     FROM MIGRAD    STATUS=FAILED       160 CALLS      313 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15760E-01    7.3775        .85682E-02    .68311E-02
   2  Index        10.0000        8.8601        .20000    ** at limit **
   3  Normalizat    1.0201        .86571E-01    .44117E-03   -.16905E-04
   4  Prefactor     1.0392        .24915E-01    .15472E-03   -.52610E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9081.735     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      471 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15760E-01    7.3775        .77965E-06    .68311E-02
   2  Index        10.0000        8.8601        .23072E-01** at limit **
   3  Normalizat    1.0201        .86571E-01    .15836E-06   -.16905E-04
   4  Prefactor     1.0392        .24915E-01    .55064E-08   -.52610E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9081.735     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      511 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15760E-01    .20220         .0000        .27381E-01
   2  Index        10.0000        5.2137         .0000    ** at limit **
   3  Normalizat    1.0201        .27022         .0000       -.17008E-04
   4  Prefactor     1.0392        .94021E-01     .0000       -.52904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0157597
  Index      = 10
  Normalizat = 1.02005
  Prefactor  = 1.03921
 **********
 **   18 **HESSE 
 **********

 FCN=   9081.735     FROM HESSE     STATUS=OK            25 CALLS      536 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15760E-01    .20010        .10726E-03   -1.5683    
   2  Index        10.0000        5.2281        .80000E-02    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0201        .26918        .35293E-05   -.92362    
   4  Prefactor     1.0392        .93899E-01    .12378E-05   -.91434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59073e-11
Minuit parameter uncertainties:
  1  0.111956
  2  2.06064e-05
  3  0.26954
  4  0.0939134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/246810': 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) = 9081.73490589
delta logL = 0.0104981889708

Extracting fit parameters...

4FGL J0720.0-6237
   Spectrum: PowerLaw
349    Prefactor:  1.576e-02  1.120e-01  1.000e-04  1.000e+04 ( 1.000e-11)
350        Index:  1.000e+01  2.061e-05  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  2.274e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.039e+00  9.391e-02  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.020e+00  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 110.018 -62.617

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/246810/cmap_HighResolution_535334401_535593601_4FGL_J0720.0-6237_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-27 03:10:37.560691', job_id='246810', GAL2='1.04', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1630059037.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.05e-02', ts2='0.02', photon_index_error='0.00', photon_index='3.13' WHERE bin_id='1142' AND source_name='4FGL J0720.0-6237' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 03:10:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0184>
Subject: Job 246810: <4FGL_J0720.0-6237_daily_bin1142> in cluster <slac> Done

Job <4FGL_J0720.0-6237_daily_bin1142> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 01:25:23 2021
Job was executed on host(s) <bullet0184>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 01:25:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 01:25:25 2021
Terminated at Fri Aug 27 03:10:37 2021
Results reported at Fri Aug 27 03:10:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0720.0-6237_daily_bin1142 110.018 -62.6173 535334401 535593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0720.0-6237 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6287.47 sec.
    Max Memory :                                 646 MB
    Average Memory :                             579.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2938 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   6312 sec.
    Turnaround time :                            6314 sec.

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

