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


Performing analysis on: 4FGL_J1435.9-8348_daily_bin1245
RA = 218.978, Dec = -83.8017
tmin = 562032001, tmax = 562291201
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='622236', job_status='RUN', time_executed='2021-09-10 00:51:27.096579', time_epoch_executed='1631260287.1' WHERE source_name='4FGL J1435.9-8348' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/622236

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/622236/ft1_4FGL_J1435.9-8348_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/622236/ft1_4FGL_J1435.9-8348_daily_bin1245.fits outfile=/scratch/kocevski/622236/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1245.fits ra=218.978 dec=-83.8017 rad=12.0 tmin=562032001.0 tmax=562291201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.56
user 3.36
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.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/622236/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1245.fits evtable="EVENTS" outfile="/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/622236/ltcube_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.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/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits
.....................!
real 11.94
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/622236/ltcube_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.fits outfile=/scratch/kocevski/622236/expmap_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.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/622236/ltcube_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.fits
.....................!
real 190.10
user 184.46
sys 5.32

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 HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Added 204 point sources and 5 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 J1435.9-8348 @ 218.978 -83.8017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits scfile=/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits outfile=/scratch/kocevski/622236/cmap_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.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=218.978 yref=-83.8017 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits scfile=/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits outfile=/scratch/kocevski/622236/cmap_HighResolution_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.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=218.978 yref=-83.8017 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.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/622236/Model_4FGL_J1435.9-8348_daily_bin1245.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 FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1507-622
adding source RCW 86
Working on...
/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits.....................!
real 131.39
user 129.91
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits', '/scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits', expMap='/scratch/kocevski/622236/expmap_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.fits', expCube='/scratch/kocevski/622236/ltcube_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/622236/Model_4FGL_J1435.9-8348_daily_bin1245.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1435.9-8348'

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.034e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  2.546e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/622236/ft1_filtered_4FGL_J1435.9-8348_daily_bin1245.fits
Spacecraft file(s): /scratch/kocevski/622236/ft2_4FGL_J1435.9-8348_daily_bin1245.fits
Exposure map: /scratch/kocevski/622236/expmap_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.fits
Exposure cube: /scratch/kocevski/622236/ltcube_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/622236/Model_4FGL_J1435.9-8348_daily_bin1245.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) = 9360.15699753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.206       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.415       1.0000         .10000E-03   10000.    
     5 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10412       1.0000         .10000E-03   10000.    
    14 'norm      '    105.70       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6229       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0537       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9360.154     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1984 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.150        68.043        .14448E-04    .39867E-03
   2  Prefactor     .10000E-03    7.7554        .10644E-07** at limit **
   3  Prefactor     .10000E-03    15.583        .17424E-07** at limit **
   4  Prefactor     25.381        31.089        .19355E-05    .32108E-04
   5  norm          .10000E-03    2.6640        .61288E-07** at limit **
   6  Prefactor     .10000E-03    1.8709       -.81524E-07** at limit **
   7  Prefactor     .10000E-03    173.31        .75272E-06** at limit **
   8  norm          .10000E-03    31.760       -.15077E-06** at limit **
   9  Prefactor     5.5570        4.0054        .11692E-05   -.15515E-03
  10  Prefactor     .10000E-03    13.312       -.35776E-06** at limit **
  11  norm          .10000E-03    .27400       -.42033E-07** at limit **
  12  Prefactor     .10000E-03    13.324       -.12390E-07** at limit **
  13  norm          .10014E-03    5.2916        .36927E-06** at limit **
  14  norm          106.28        123.10        .49555E-05    .14415E-03
  15  norm          2.6198        10.387        .18966E-05    .46204E-04
  16  norm          3.3216        4.4377        .52042E-05   -.42188E-03
  17  Prefactor     .10000E-03    29.566        .13083E-06** at limit **
  18  Normalizat    1.0545        .31361       -.10724E-04    .18523E-04
  19  Prefactor     1.0928        .83200E-01    .15306E-05   -.64052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.15
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3813
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 5.55695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100145
  norm       = 106.283
  norm       = 2.61983
  norm       = 3.32164
  Prefactor  = 0.0001
  Normalizat = 1.05446
  Prefactor  = 1.09275
 **********
 **   18 **HESSE 
 **********

 FCN=   9360.154     FROM HESSE     STATUS=OK           270 CALLS     2254 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.150        71.523        .59631E-04   -1.4363    
   2  Prefactor     .10000E-03    7.7565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.381        31.128        .79460E-04   -1.4700    
   5  norm          .10000E-03    11.099        .30651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8805        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    176.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    31.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5570        4.0094        .78990E-03   -1.5236    
  10  Prefactor     .10000E-03    13.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .28002        .49402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10014E-03    11.158        .60111E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          106.28        124.77        .19557E-03   -1.3642    
  15  norm          2.6198        10.367        .25182E-03   -1.5384    
  16  norm          3.3216        4.5580        .11102E-02   -1.5343    
  17  Prefactor     .10000E-03    29.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0545        .34631        .51107E-03   -.91228    
  19  Prefactor     1.0928        .93375E-01    .14324E-03   -.89699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71445e-09
Minuit parameter uncertainties:
  1  71.6595
  2  2.89232e-06
  3  6.62648e-06
  4  31.1481
  5  0.000303315
  6  4.17876e-06
  7  0.0016549
  8  3.13511e-05
  9  4.00956
  10  4.96585e-05
  11  2.00623e-06
  12  1.41618e-05
  13  0.00254226
  14  125.076
  15  10.3741
  16  4.55851
  17  7.00821e-05
  18  0.34706
  19  0.0933892
Done.

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

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  5.557e+00  4.010e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  2.546e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.093e+00  9.339e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  1.054e+00  3.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.18
Ra Dec: 218.978 -83.802
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.31e-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) = 9358.2920029
delta logL = 1.86200753853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9357.95903103
delta logL = 2.19497941569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0066       1.0000         .10000E-03   10000.    
     2 'Index     '    .92150       1.0000          .0000       10.000    
     3 'Normalizat'    1.1134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9357.959     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0032        .81142        .19865E-01   -.42235E-03
   2  Index         .92039        .33822        .24156       -.84747E-04
   3  Normalizat    1.1131        .28257        .11256        .32035E-04
   4  Prefactor     1.0875        .80937E-01    .38087E-01   -.13175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00319
  Index      = 0.92039
  Normalizat = 1.11314
  Prefactor  = 1.08747
 **********
 **   18 **HESSE 
 **********

 FCN=   9357.959     FROM HESSE     STATUS=OK            35 CALLS      258 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0032        2.2669        .69751E-03   -1.5508    
   2  Index         .92039        .73338        .10096E-01   -.95432    
   3  Normalizat    1.1131        .32084        .49905E-03   -.89331    
   4  Prefactor     1.0875        .92260E-01    .14358E-03   -.89868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19485e-09
Minuit parameter uncertainties:
  1  2.26709
  2  0.741486
  3  0.321404
  4  0.0922732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/622236': 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) = 9357.95902961
delta logL = 2.19498082592

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.003e+00  2.267e+00  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  9.204e-01  7.415e-01  0.000e+00  1.000e+01 (-1.000e+00)
410        Scale:  7.726e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.087e+00  9.227e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  1.113e+00  3.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 218.978 -83.802
Photon Index (Free Index): 0.92 +/- 0.74
Photon Flux (Free Index): 6.07e-09 +/- 7.57e-09
Energy Flux (Free Index): 1.06e-04 +/- 1.42e-04

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/622236/cmap_HighResolution_562032001_562291201_4FGL_J1435.9-8348_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='1.06e-04', photon_flux_error='4.73e-08', dlogl='2.19e+00', energy_flux='1.81e-05', photon_flux2='6.07e-09', job_status='DONE', time_completed='2021-09-10 01:05:08.486730', photon_index_error2='0.74', photon_index2='0.92', ts='7.18', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.42e-04', EG='1.05', time_epoch_completed='1631261108.49', return_code='0', job_id='622236', GAL2='1.09', EG2='1.11', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='7.57e-09', ts2='11.53', photon_index='2.55' WHERE bin_id='1245' AND source_name='4FGL J1435.9-8348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 622236: <4FGL_J1435.9-8348_daily_bin1245> in cluster <slac> Done

Job <4FGL_J1435.9-8348_daily_bin1245> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 00:51:13 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 00:51:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 00:51:14 2021
Terminated at Fri Sep 10 01:05:09 2021
Results reported at Fri Sep 10 01:05:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1435.9-8348_daily_bin1245 218.978 -83.8017 562032001 562291201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1435.9-8348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             359.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

