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


Performing analysis on: 4FGL_J1435.9-8348_daily_bin1483
RA = 218.978, Dec = -83.8017
tmin = 623721601, tmax = 623980801
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='623863', job_status='RUN', time_executed='2021-09-10 00:56:28.328312', time_epoch_executed='1631260588.33' WHERE source_name='4FGL J1435.9-8348' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623863/ft1_4FGL_J1435.9-8348_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623863/ft1_4FGL_J1435.9-8348_daily_bin1483.fits outfile=/scratch/kocevski/623863/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1483.fits ra=218.978 dec=-83.8017 rad=12.0 tmin=623721601.0 tmax=623980801.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 4.05
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.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/623863/ft1_filteredMKT_4FGL_J1435.9-8348_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.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.42
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/623863/ltcube_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.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/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits
.....................!
real 9.04
user 8.76
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/623863/ltcube_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.fits outfile=/scratch/kocevski/623863/expmap_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.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/623863/ltcube_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.fits
.....................!
real 148.23
user 144.71
sys 3.24

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/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits scfile=/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits outfile=/scratch/kocevski/623863/cmap_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits scfile=/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits outfile=/scratch/kocevski/623863/cmap_HighResolution_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623863/Model_4FGL_J1435.9-8348_daily_bin1483.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/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits.....................!
real 142.36
user 140.43
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits', '/scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits', expMap='/scratch/kocevski/623863/expmap_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.fits', expCube='/scratch/kocevski/623863/ltcube_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/623863/Model_4FGL_J1435.9-8348_daily_bin1483.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/623863/ft1_filtered_4FGL_J1435.9-8348_daily_bin1483.fits
Spacecraft file(s): /scratch/kocevski/623863/ft2_4FGL_J1435.9-8348_daily_bin1483.fits
Exposure map: /scratch/kocevski/623863/expmap_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.fits
Exposure cube: /scratch/kocevski/623863/ltcube_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/623863/Model_4FGL_J1435.9-8348_daily_bin1483.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) = 13021.7776118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.110       1.0000         .10000E-03   10000.    
     5 'norm      '    .10654E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7758       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8463       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.605       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15100E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    71.947       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .75563       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0010       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=   13021.77     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1928 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.486       -.64918E-06** at limit **
   2  Prefactor     .10000E-03    14.075        .69929E-06** at limit **
   3  Prefactor     50.980        44.257       -.16477E-05   -.69368E-04
   4  Prefactor     40.107        29.822        .30026E-06   -.21327E-04
   5  norm          .10000E-03    1.8769       -.14982E-06** at limit **
   6  Prefactor     5.7753        4.4747        .72715E-06   -.11938E-03
   7  Prefactor     .10000E-03    61.223        .16651E-05** at limit **
   8  norm          .10000E-03    8.6445       -.64985E-09** at limit **
   9  Prefactor     .10000E-03    1.5557       -.44853E-07** at limit **
  10  Prefactor     3.8474        7.3966        .30892E-05   -.59221E-04
  11  norm          .10000E-03    .34717       -.46939E-07** at limit **
  12  Prefactor     .10000E-03    22.779       -.35137E-06** at limit **
  13  norm          12.605        5.5512       -.59785E-07   -.67009E-04
  14  norm          .10000E-03    25.892        .14503E-05** at limit **
  15  norm          .10000E-03    5.1583       -.36923E-07** at limit **
  16  norm          71.946        9.9052        .62301E-07    .11676E-03
  17  Prefactor     .10000E-03    49.824       -.25988E-05** at limit **
  18  Normalizat    .75544        .26010       -.11241E-05   -.38396E-04
  19  Prefactor     1.0010        .69772E-01    .13155E-07   -.66253E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.9797
  Prefactor  = 40.1068
  norm       = 0.000100003
  Prefactor  = 5.7753
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84739
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6053
  norm       = 0.0001
  norm       = 0.0001
  norm       = 71.9462
  Prefactor  = 0.0001
  Normalizat = 0.755441
  Prefactor  = 1.00105
 **********
 **   18 **HESSE 
 **********

 FCN=   13021.77     FROM HESSE     STATUS=OK           272 CALLS     2200 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.980        44.332        .56176E-04   -1.4279    
   4  Prefactor     40.107        29.761        .63291E-04   -1.4441    
   5  norm          .10000E-03    1.9249        .51971E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7753        4.4675        .83560E-03   -1.5227    
   7  Prefactor     .10000E-03    61.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.6513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5854        .13892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8474        7.4025        .10289E-02   -1.5316    
  11  norm          .10000E-03    .70369        .12912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.605        5.5437        .11283E-03   -1.4998    
  14  norm          .10000E-03    25.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          71.946        9.8930        .47330E-04   -1.4010    
  17  Prefactor     .10000E-03    49.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .75544        .27425        .55553E-03   -1.0174    
  19  Prefactor     1.0010        .74934E-01    .13799E-03   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34205e-11
Minuit parameter uncertainties:
  1  3.17734e-05
  2  0.000142011
  3  44.3603
  4  29.7723
  5  0.000151115
  6  4.46781
  7  6.08629e-05
  8  1.03304e-06
  9  3.50361e-06
  10  7.40423
  11  2.47636e-06
  12  1.91008e-05
  13  5.54395
  14  9.21116e-05
  15  3.40407e-06
  16  9.89325
  17  0.000200845
  18  0.274748
  19  0.0749415
Done.

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

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.000e-04  3.504e-06  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.001e+00  7.494e-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:  7.554e-01  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 218.978 -83.802
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623863/likelihoodResults_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.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) = 13021.7767428
delta logL = -0.00300756589786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13021.7737353
delta logL = -5.66451490158e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5375       1.0000          .0000       10.000    
     3 'Normalizat'    .75545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0011       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   13021.77     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10087E-03    59.747        .13934E-02** at limit **
   2  Index         2.4598        7.4635        .50000        .32974E-04
   3  Normalizat    .75544        .36798E-01    .55553E-03   -.89635E-05
   4  Prefactor     1.0010        .10494E-01    .13799E-03   -.34602E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13021.77     FROM SIMPLEX   STATUS=PROGRESS     135 CALLS      382 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    59.747        .16139E-03** at limit **
   2  Index         2.4581        7.4635        .55229E-03    .32974E-04
   3  Normalizat    .75542        .36798E-01    .93608E-05   -.89635E-05
   4  Prefactor     1.0010        .10494E-01    .16937E-05   -.34602E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13021.77     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      428 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    326.16        .27869E-03** at limit **
   2  Index         2.2527        6.6096        .50000       -.91632E-07
   3  Normalizat    .75544        .12753        .22221E-04   -.20874E-04
   4  Prefactor     1.0010        .36311E-01    .55197E-05    .88153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2527
  Normalizat = 0.755441
  Prefactor  = 1.00105
 **********
 **   18 **HESSE 
 **********

 FCN=   13021.77     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8422        .55737E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2527        7.8120        .50000       -.58172    
   3  Normalizat    .75544        .26037        .44442E-05   -1.0174    
   4  Prefactor     1.0010        .74381E-01    .11039E-05   -.92695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15154e-11
Minuit parameter uncertainties:
  1  1.45743e-06
  2  92.0011
  3  0.260804
  4  0.074389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623863': 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) = 13021.7737337
delta logL = 1.57688555191e-06

Extracting fit parameters...

4FGL J1435.9-8348
   Spectrum: PowerLaw
408    Prefactor:  1.000e-04  1.457e-06  1.000e-04  1.000e+04 ( 1.000e-12)
409        Index:  2.253e+00  9.200e+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.001e+00  7.439e-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:  7.554e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 218.978 -83.802

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/623863/cmap_HighResolution_623721601_623980801_4FGL_J1435.9-8348_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-10 01:11:59.404467', job_id='623863', GAL2='1.00', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631261519.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1483' AND source_name='4FGL J1435.9-8348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:11:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 623863: <4FGL_J1435.9-8348_daily_bin1483> in cluster <slac> Done

Job <4FGL_J1435.9-8348_daily_bin1483> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 00:56:12 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 00:56:13 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:56:13 2021
Terminated at Fri Sep 10 01:11:59 2021
Results reported at Fri Sep 10 01:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1435.9-8348_daily_bin1483 218.978 -83.8017 623721601 623980801 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 :                                   912.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             347.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

