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


Performing analysis on: 4FGL_J1457.4-3539_daily_bin1255
RA = 224.366, Dec = -35.6527
tmin = 564624001, tmax = 564883201
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='906243', job_status='RUN', time_executed='2021-09-10 16:11:33.850438', time_epoch_executed='1631315493.85' WHERE source_name='4FGL J1457.4-3539' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906243

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906243/ft1_4FGL_J1457.4-3539_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906243/ft1_4FGL_J1457.4-3539_daily_bin1255.fits outfile=/scratch/kocevski/906243/ft1_filteredMKT_4FGL_J1457.4-3539_daily_bin1255.fits ra=224.366 dec=-35.6527 rad=12.0 tmin=564624001.0 tmax=564883201.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.58
user 3.37
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.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/906243/ft1_filteredMKT_4FGL_J1457.4-3539_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.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/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/906243/ltcube_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.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/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits
.....................!
real 11.96
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/906243/ltcube_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.fits outfile=/scratch/kocevski/906243/expmap_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.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/906243/ltcube_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.fits
.....................!
real 191.07
user 185.74
sys 4.78

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Added 273 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 J1457.4-3539 @ 224.366 -35.6527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits scfile=/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits outfile=/scratch/kocevski/906243/cmap_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.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=224.366 yref=-35.6527 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits scfile=/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits outfile=/scratch/kocevski/906243/cmap_HighResolution_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.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=224.366 yref=-35.6527 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/906243/Model_4FGL_J1457.4-3539_daily_bin1255.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 CenA Lobes
adding source EG_v02
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1614-518
adding source HESS J1616-508
Working on...
/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits......................!
real 32.40
user 31.11
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits', '/scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits', expMap='/scratch/kocevski/906243/expmap_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.fits', expCube='/scratch/kocevski/906243/ltcube_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906243/Model_4FGL_J1457.4-3539_daily_bin1255.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1457.4-3539'

4FGL J1457.4-3539
   Spectrum: LogParabola
349         norm:  1.028e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
350        alpha:  2.175e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  1.703e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  7.352e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/906243/ft1_filtered_4FGL_J1457.4-3539_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/906243/ft2_4FGL_J1457.4-3539_daily_bin1255.fits
Exposure map: /scratch/kocevski/906243/expmap_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.fits
Exposure cube: /scratch/kocevski/906243/ltcube_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906243/Model_4FGL_J1457.4-3539_daily_bin1255.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1041.28506791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1038.29991026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8426       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20071       1.0000         .10000E-03   10000.    
     4 'norm      '    .20369E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.586       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6544       1.0000         .10000E-03   10000.    
     8 'Prefactor '    556.07       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23351E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    597.58       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92352E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4869       1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16587E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .22794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .30983E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60860E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2616       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1038.282     FROM MIGRAD    STATUS=CONVERGED    197 CALLS      522 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6433        1.0013         .0000         .0000    
   2  Prefactor     8.8426        1.0016         .0000         .0000    
   3  Prefactor     .10000E-03    196.81        .39080E-06** at limit **
   4  norm          .10000E-03    73.049       -.42503E-05** at limit **
   5  Prefactor     .43845E-02    1039.6       -.64128E-04   -.28809E-02
   6  norm          1.3015        1.1043         .0000         .0000    
   7  Prefactor     9.6544        1.0013         .0000         .0000    
   8  Prefactor     585.04        411.69        .10109E-04   -.99528E-02
   9  Prefactor     .10000E-03    214.49       -.94652E-05** at limit **
  10  norm          590.37        58.467       -.20934E-05    .24771E-01
  11  Prefactor     .10002E-03    338.05       -.17128E-04** at limit **
  12  Prefactor     .10000E-03    252.54        .69783E-05** at limit **
  13  Prefactor     .29587        914.09       -.70645E-05    .45304E-02
  14  norm          .10000E-03    2.7779       -.39092E-08** at limit **
  15  Prefactor     .10000E-03    26.613        .62129E-06** at limit **
  16  Prefactor     .10000E-03    108.17        .96204E-05** at limit **
  17  norm          .10000E-03    14.492        .73208E-07** at limit **
  18  norm          .10000E-03    124.78       -.84363E-06** at limit **
  19  Prefactor     .10000E-03    25.366        .74294E-06** at limit **
  20  norm          .10000E-03    135.89       -.26941E-04** at limit **
  21  Prefactor     .10001E-03    754.95       -.69472E-04** at limit **
  22  Normalizat    .10000E-01    1.4206        .43283E-04** at limit **
  23  Prefactor     1.2612        .14935        .18298E-05    .20582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64326
  Prefactor  = 8.84264
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00438447
  norm       = 1.30146
  Prefactor  = 9.65438
  Prefactor  = 585.038
  Prefactor  = 0.000100005
  norm       = 590.37
  Prefactor  = 0.000100016
  Prefactor  = 0.000100003
  Prefactor  = 0.295872
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100008
  Normalizat = 0.01
  Prefactor  = 1.26121
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1038.282     FROM HESSE     STATUS=FAILED        11 CALLS      533 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     493.17        483.50         .0000       -1.5087    
   2  Prefactor     8.8426        1.0016         .0000       -1.5113    
   3  Prefactor     .10000E-03    .24904        .39080E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .20571       -.42503E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .43845E-02    .11151E-01   -.64128E-04   -1.5721    
   6  norm          1.3015        1.1043         .0000       -1.5480    
   7  Prefactor     9.6544        1.0013         .0000       -1.5086    
   8  Prefactor     585.04        1.0241        .10109E-04   -1.0822    
   9  Prefactor     .10000E-03    .20881       -.94652E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          590.37        .99433       -.20934E-05   -1.0799    
  11  Prefactor     .10002E-03    .24742       -.17128E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20751        .69783E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29587        .25843       -.70645E-05   -1.5599    
  14  norm          .10000E-03    .20571       -.39092E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .20571        .62129E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20728        .96204E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571        .73208E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .25525       -.84363E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571        .74294E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .28558       -.26941E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    .22369       -.69472E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25505        .43283E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2612        1.0857        .18298E-05   -.84468    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.01189e-10
Minuit parameter uncertainties:
  1  1.00135
  2  1.00161
  3  5.92227e-06
  4  1.99187e-05
  5  0.0111506
  6  1.10433
  7  1.00135
  8  1.02415
  9  6.30674e-05
  10  0.99433
  11  0.000124178
  12  5.37151e-05
  13  0.258434
  14  1.78019e-07
  15  3.30773e-07
  16  8.60824e-06
  17  6.78922e-08
  18  1.98693e-05
  19  8.23372e-07
  20  6.10828e-05
  21  8.36997e-05
  22  2.35854e-06
  23  1.106
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1038.28160565

Extracting fit parameters...

4FGL J1457.4-3539
   Spectrum: LogParabola
349         norm:  1.000e-04  1.780e-07  1.000e-04  1.000e+04 ( 1.000e-11)
350        alpha:  2.175e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  1.703e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  7.352e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
963    Prefactor:  1.261e+00  1.106e+00  0.000e+00  1.000e+01 ( 1.000e+00)
964        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
965        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
947   Normalization:  1.000e-02  2.359e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 224.366 -35.653
Photon Flux Upper Limit: 7.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/906243/likelihoodResults_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.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) = 1038.28234525
delta logL = -0.000739600556699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1038.28160591
delta logL = -2.58490217675e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1697       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2612       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9730E+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=   1038.282     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      237 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    320.53        .52565E-02** at limit **
   2  alpha         1.8025        4.0543        .16646        .21172E-08
   3  Normalizat    .10000E-01    .40655        .17116E-01** at limit **
   4  Prefactor     1.2612        .77999E-01    .13948E-03   -.21905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80252
  Normalizat = 0.01
  Prefactor  = 1.26121
 **********
 **   18 **HESSE 
 **********

 FCN=   1038.282     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9500        .54056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8025        3.3350        .66584E-02   -.28274    
   3  Normalizat    .10000E-01    1.4003        .34232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2612        .14710        .55792E-05   -.84468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9915e-13
Minuit parameter uncertainties:
  1  1.17436e-07
  2  254.794
  3  9.03565e-08
  4  0.147148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906243': 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) = 1038.28160461
delta logL = 1.04620835373e-06

Extracting fit parameters...

4FGL J1457.4-3539
   Spectrum: LogParabola
349         norm:  1.000e-04  1.174e-07  1.000e-04  1.000e+04 ( 1.000e-11)
350        alpha:  1.803e+00  2.548e+02  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  1.703e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  7.352e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
963    Prefactor:  1.261e+00  1.471e-01  0.000e+00  1.000e+01 ( 1.000e+00)
964        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
965        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
947   Normalization:  1.000e-02  9.036e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.366 -35.653

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/906243/cmap_HighResolution_564624001_564883201_4FGL_J1457.4-3539_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-04', job_status='DONE', photon_flux_upper_limit='7.74e-07', time_completed='2021-09-10 16:17:58.776113', job_id='906243', GAL2='1.26', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631315878.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.26', dlogl='1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1255' AND source_name='4FGL J1457.4-3539' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 16:17:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 906243: <4FGL_J1457.4-3539_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1457.4-3539_daily_bin1255> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 16:11:18 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 16:11:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 16:11:20 2021
Terminated at Fri Sep 10 16:17:59 2021
Results reported at Fri Sep 10 16:17:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1457.4-3539_daily_bin1255 224.366 -35.6527 564624001 564883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1457.4-3539 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   383.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             548.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   399 sec.
    Turnaround time :                            401 sec.

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

