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


Performing analysis on: 4FGL_J0455.7-4617_daily_bin1019
RA = 73.9463, Dec = -46.2871
tmin = 503452801, tmax = 503712001
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='844206', job_status='RUN', time_executed='2021-08-21 13:41:54.394592', time_epoch_executed='1629578514.39' WHERE source_name='4FGL J0455.7-4617' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/844206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/844206/ft1_4FGL_J0455.7-4617_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/844206/ft1_4FGL_J0455.7-4617_daily_bin1019.fits outfile=/scratch/kocevski/844206/ft1_filteredMKT_4FGL_J0455.7-4617_daily_bin1019.fits ra=73.9463 dec=-46.2871 rad=12.0 tmin=503452801.0 tmax=503712001.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 8.46
user 7.58
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.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/844206/ft1_filteredMKT_4FGL_J0455.7-4617_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.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.11
user 0.32
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/844206/ltcube_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.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/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits
.....................!
real 12.31
user 11.25
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/844206/ltcube_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.fits outfile=/scratch/kocevski/844206/expmap_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.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/844206/ltcube_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.fits
.....................!
real 194.36
user 187.65
sys 6.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
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.
Added 196 point sources and 2 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 J0455.7-4617 @ 73.9463 -46.2871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits scfile=/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits outfile=/scratch/kocevski/844206/cmap_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.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=73.9463 yref=-46.2871 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.13
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits scfile=/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits outfile=/scratch/kocevski/844206/cmap_HighResolution_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.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=73.9463 yref=-46.2871 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.13
user 0.39
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/844206/Model_4FGL_J0455.7-4617_daily_bin1019.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source Fornax A
adding source GAL_V02
adding source LMC-North
Working on...
/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits.....................!
real 155.71
user 153.20
sys 2.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits', '/scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits', expMap='/scratch/kocevski/844206/expmap_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.fits', expCube='/scratch/kocevski/844206/ltcube_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/844206/Model_4FGL_J0455.7-4617_daily_bin1019.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0455.7-4617'

4FGL J0455.7-4617
   Spectrum: LogParabola
294         norm:  4.061e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.483e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  8.159e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.907e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/844206/ft1_filtered_4FGL_J0455.7-4617_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/844206/ft2_4FGL_J0455.7-4617_daily_bin1019.fits
Exposure map: /scratch/kocevski/844206/expmap_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.fits
Exposure cube: /scratch/kocevski/844206/ltcube_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/844206/Model_4FGL_J0455.7-4617_daily_bin1019.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) = 2832.48129545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.010       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.592       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.068       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.448       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    92.565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0126       1.0000         .10000E-03   10000.    
    10 'norm      '    116.30       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1025       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3274       1.0000         .10000E-03   10000.    
    21 'norm      '    23.811       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5156       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.465       1.0000         .10000E-03   10000.    
    26 'norm      '    5.3789       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    13.918       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81234       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2832.478     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     4172 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.008        39.910        .15109E-05    .13740E-04
   2  Prefactor     .10000E-03    10.180       -.39776E-06** at limit **
   3  Prefactor     85.616        91.356       -.21910E-05    .17740E-04
   4  Prefactor     10.087        64.099       -.63351E-05    .26671E-05
   5  norm          .10000E-03    2.1970        .91503E-07** at limit **
   6  Prefactor     68.451        38.778        .24991E-06    .33093E-04
   7  norm          1.4466        1.9223        .23748E-06    .17122E-03
   8  Prefactor     92.600        104.77       -.29778E-05    .20895E-04
   9  Prefactor     6.0135        8.5220        .29851E-06    .22909E-04
  10  norm          116.30        39.060        .33436E-07    .12281E-04
  11  norm          .10000E-03    1.4507       -.30158E-07** at limit **
  12  Prefactor     .10000E-03    4.5034       -.96434E-07** at limit **
  13  Prefactor     .10000E-03    21.228       -.91341E-07** at limit **
  14  norm          .10000E-03    5.2003       -.84207E-07** at limit **
  15  Prefactor     3.1048        1154.8        .57875E-06    .11955E-05
  16  Prefactor     .10000E-03    13.937        .39673E-06** at limit **
  17  Prefactor     31.446        104.04       -.19004E-05    .64351E-05
  18  Prefactor     4.4887        4.5167        .10785E-06    .14279E-04
  19  Prefactor     .10000E-03    3.8986       -.29313E-07** at limit **
  20  norm          5.3273        4.9775        .34233E-06    .27399E-04
  21  norm          23.812        12.692       -.10057E-05    .81111E-05
  22  norm          3.5149        8.6412        .35105E-05   -.20912E-04
  23  Prefactor     .10000E-03    13.141       -.82564E-06** at limit **
  24  Prefactor     .10000E-03    66.925       -.93104E-06** at limit **
  25  Prefactor     53.455        61.694        .13986E-05    .42074E-05
  26  norm          5.3789        2.1652       -.29832E-07    .44680E-04
  27  Prefactor     .10000E-03    4.7138       -.82067E-07** at limit **
  28  norm          .10000E-03    9.8396        .32025E-06** at limit **
  29  norm          13.916        19.842       -.64375E-07    .71394E-06
  30  Normalizat    1.0668        .35366       -.24371E-05    .58536E-05
  31  Prefactor     .81280        .29538        .25774E-05    .36635E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.0082
  Prefactor  = 0.0001
  Prefactor  = 85.6161
  Prefactor  = 10.0873
  norm       = 0.0001
  Prefactor  = 68.4508
  norm       = 1.44662
  Prefactor  = 92.5997
  Prefactor  = 6.01346
  norm       = 116.301
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.10482
  Prefactor  = 0.0001
  Prefactor  = 31.4464
  Prefactor  = 4.48866
  Prefactor  = 0.0001
  norm       = 5.3273
  norm       = 23.8121
  norm       = 3.51493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.4549
  norm       = 5.37889
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.9156
  Normalizat = 1.06683
  Prefactor  = 0.812796
 **********
 **   18 **HESSE 
 **********

 FCN=   2832.478     FROM HESSE     STATUS=OK           622 CALLS     4794 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.008        39.772        .74384E-04   -1.4630    
   2  Prefactor     .10000E-03    10.186        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.616        91.642        .43423E-04   -1.3855    
   4  Prefactor     10.087        63.255        .12628E-03   -1.5073    
   5  norm          .10000E-03    2.1988        .77049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     68.451        38.581        .48516E-04   -1.4051    
   7  norm          1.4466        1.8818        .64756E-04   -1.5467    
   8  Prefactor     92.600        105.19        .20885E-03   -1.3780    
   9  Prefactor     6.0135        8.4965        .15651E-03   -1.5217    
  10  norm          116.30        38.896        .37309E-04   -1.3547    
  11  norm          .10000E-03    1.4564        .62530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5760        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2166        .11850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1048        1137.1        .23022E-03   -1.5356    
  16  Prefactor     .10000E-03    13.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.446        103.48        .71466E-04   -1.4586    
  18  Prefactor     4.4887        4.5127        .10690E-03   -1.5284    
  19  Prefactor     .10000E-03    3.9088        .10256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3273        4.9745        .54626E-03   -1.5246    
  21  norm          23.812        12.770        .82089E-04   -1.4732    
  22  norm          3.5149        8.7683        .10167E-02   -1.5333    
  23  Prefactor     .10000E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    67.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     53.455        61.678        .54854E-04   -1.4244    
  26  norm          5.3789        2.1654        .47711E-04   -1.5244    
  27  Prefactor     .10000E-03    4.7669        .11278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    9.8411        .16304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          13.916        19.865        .10736E-03   -1.4962    
  30  Normalizat    1.0668        .41870        .30973E-03   -.90824    
  31  Prefactor     .81280        .35066        .31214E-03   -.99258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26238e-11
Minuit parameter uncertainties:
  1  39.8086
  2  8.99288e-06
  3  91.7941
  4  50.5992
  5  5.02357e-06
  6  38.5947
  7  1.8819
  8  105.398
  9  8.49824
  10  38.9043
  11  7.24709e-07
  12  1.09911e-06
  13  6.38111e-06
  14  2.36121e-06
  15  121.232
  16  7.65874e-06
  17  104.075
  18  4.51305
  19  4.72854e-06
  20  4.97485
  21  12.7714
  22  8.77147
  23  6.63925e-05
  24  0.000311058
  25  61.7516
  26  2.16548
  27  1.25616e-05
  28  1.08562e-05
  29  19.8742
  30  0.420005
  31  0.351627
Done.

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

Extracting fit parameters...

4FGL J0455.7-4617
   Spectrum: LogParabola
294         norm:  1.000e-04  2.361e-06  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.483e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  8.159e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.907e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  8.128e-01  3.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.067e+00  4.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 73.946 -46.287
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/844206/likelihoodResults_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.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) = 2832.47843524
delta logL = -0.000901666125174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2832.47753356
delta logL = 1.36678863782e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4757       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6410E+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=   2832.478     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      242 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    327.85        .11879E-01** at limit **
   2  alpha         2.0524        3.5182        .16462       -.33150E-08
   3  Normalizat    1.0668        .67407E-01    .30974E-03    .31089E-04
   4  Prefactor     .81279        .60397E-01    .31214E-03    .36203E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05242
  Normalizat = 1.06683
  Prefactor  = 0.812795
 **********
 **   18 **HESSE 
 **********

 FCN=   2832.478     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6357        .12305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0524        3.1516        .65847E-02   -.18000    
   3  Normalizat    1.0668        .37583        .12389E-04   -.90824    
   4  Prefactor     .81279        .33674        .12486E-04   -.99258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85251e-12
Minuit parameter uncertainties:
  1  2.28535e-06
  2  332.681
  3  0.376772
  4  0.337603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/844206': 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) = 2832.47753287
delta logL = 7.01766111888e-07

Extracting fit parameters...

4FGL J0455.7-4617
   Spectrum: LogParabola
294         norm:  1.000e-04  2.285e-06  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.052e+00  3.327e+02  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  8.159e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.907e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  8.128e-01  3.376e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.067e+00  3.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 73.946 -46.287

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/844206/cmap_HighResolution_503452801_503712001_4FGL_J0455.7-4617_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-08-21 13:54:36.444586', job_id='844206', GAL2='0.81', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629579276.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1019' AND source_name='4FGL J0455.7-4617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 13:54:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 844206: <4FGL_J0455.7-4617_daily_bin1019> in cluster <slac> Done

Job <4FGL_J0455.7-4617_daily_bin1019> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 21 13:40:30 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 13:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 13:40:31 2021
Terminated at Sat Aug 21 13:54:37 2021
Results reported at Sat Aug 21 13:54:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0455.7-4617_daily_bin1019 73.9463 -46.2871 503452801 503712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0455.7-4617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

