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


Performing analysis on: 4FGL_J0456.4-4043_daily_bin1108
RA = 74.1111, Dec = -40.7222
tmin = 526521601, tmax = 526780801
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='871559', job_status='RUN', time_executed='2021-08-21 15:10:59.072184', time_epoch_executed='1629583859.07' WHERE source_name='4FGL J0456.4-4043' and cadence='daily' and bin_id='1108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/871559

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/871559/ft1_4FGL_J0456.4-4043_daily_bin1108.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/871559/ft1_4FGL_J0456.4-4043_daily_bin1108.fits outfile=/scratch/kocevski/871559/ft1_filteredMKT_4FGL_J0456.4-4043_daily_bin1108.fits ra=74.1111 dec=-40.7222 rad=12.0 tmin=526521601.0 tmax=526780801.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.92
user 4.26
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.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/871559/ft1_filteredMKT_4FGL_J0456.4-4043_daily_bin1108.fits evtable="EVENTS" outfile="/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.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.88
user 0.33
sys 0.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits" evtable="EVENTS" scfile=/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits sctable="SC_DATA" outfile=/scratch/kocevski/871559/ltcube_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.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/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits
.....................!
real 12.48
user 11.64
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits sctable="SC_DATA" expcube=/scratch/kocevski/871559/ltcube_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.fits outfile=/scratch/kocevski/871559/expmap_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.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/871559/ltcube_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.fits
.....................!
real 190.03
user 185.16
sys 4.56

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.
Added 188 point sources and 1 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 J0456.4-4043 @ 74.1111 -40.7222

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits scfile=/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits outfile=/scratch/kocevski/871559/cmap_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.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=74.1111 yref=-40.7222 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.94
user 0.40
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits scfile=/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits outfile=/scratch/kocevski/871559/cmap_HighResolution_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.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=74.1111 yref=-40.7222 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.93
user 0.37
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits evtable="EVENTS" scfile=/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/871559/Model_4FGL_J0456.4-4043_daily_bin1108.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
Working on...
/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits.....................!
real 110.48
user 108.59
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits', '/scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits', expMap='/scratch/kocevski/871559/expmap_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.fits', expCube='/scratch/kocevski/871559/ltcube_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/871559/Model_4FGL_J0456.4-4043_daily_bin1108.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0456.4-4043'

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  3.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.300e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/871559/ft1_filtered_4FGL_J0456.4-4043_daily_bin1108.fits
Spacecraft file(s): /scratch/kocevski/871559/ft2_4FGL_J0456.4-4043_daily_bin1108.fits
Exposure map: /scratch/kocevski/871559/expmap_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.fits
Exposure cube: /scratch/kocevski/871559/ltcube_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/871559/Model_4FGL_J0456.4-4043_daily_bin1108.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) = 5124.80312804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0553       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .41367E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .31683E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7905       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51810E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6118       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.968       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1531       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2778       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3047       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.1968       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.444       1.0000         .10000E-03   10000.    
    27 'norm      '    3.2540       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1704       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5124.764     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3945 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .30988        .26788E-06** at limit **
   2  norm          3.0457        7.7195       -.59461E-06   -.18210E-03
   3  Prefactor     .10000E-03    22.310        .20422E-06** at limit **
   4  Prefactor     11.783        11.532       -.10698E-06   -.10728E-03
   5  Prefactor     .10000E-03    6.4882        .65870E-06** at limit **
   6  norm          3.0550        .90671       -.30709E-07   -.71667E-03
   7  Prefactor     .10000E-03    2.6242        .54909E-06** at limit **
   8  norm          .10001E-03    119.55        .52088E-05** at limit **
   9  norm          .61661E-01    1.8141        .10311E-05   -.17738E-02
  10  Prefactor     5.7563        3.8209       -.72744E-06   -.22523E-02
  11  Prefactor     .10000E-03    4.6378        .20617E-06** at limit **
  12  norm          .10000E-03    2.2511        .28946E-06** at limit **
  13  Prefactor     .10001E-03    272.51       -.23713E-04** at limit **
  14  Prefactor     .10000E-03    3.1809        .48959E-06** at limit **
  15  Prefactor     .10000E-03    6.6434        .16788E-06** at limit **
  16  Prefactor     .10000E-03    18.880        .95820E-06** at limit **
  17  Prefactor     7.6128        3.0306        .26540E-07   -.15211E-03
  18  Prefactor     .10000E-03    2.2009        .45238E-07** at limit **
  19  norm          14.967        3.9239        .13627E-07   -.30715E-04
  20  norm          6.1551        3.9943       -.43278E-07   -.44015E-04
  21  norm          .10000E-03    .91767        .61424E-07** at limit **
  22  Prefactor     3.2818        7.8584       -.42503E-06   -.65477E-04
  23  Prefactor     5.3054        12.789       -.19780E-05   -.96231E-04
  24  Prefactor     .10000E-03    9.1079       -.71770E-06** at limit **
  25  norm          3.2006        5.3213       -.99862E-07    .20323E-04
  26  Prefactor     28.435        37.983       -.39989E-06   -.30841E-04
  27  norm          3.2547        1.2642       -.16255E-07   -.95639E-04
  28  norm          .10000E-03    5.8733       -.75389E-07** at limit **
  29  Normalizat    1.1710        .22147        .12270E-05   -.37074E-03
  30  Prefactor     .69038        .19883       -.93891E-06   -.18906E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.0457
  Prefactor  = 0.0001
  Prefactor  = 11.7834
  Prefactor  = 0.0001
  norm       = 3.05503
  Prefactor  = 0.0001
  norm       = 0.000100014
  norm       = 0.0616611
  Prefactor  = 5.75634
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.61275
  Prefactor  = 0.0001
  norm       = 14.9666
  norm       = 6.15505
  norm       = 0.0001
  Prefactor  = 3.28176
  Prefactor  = 5.30538
  Prefactor  = 0.0001
  norm       = 3.20063
  Prefactor  = 28.4352
  norm       = 3.25467
  norm       = 0.0001
  Normalizat = 1.171
  Prefactor  = 0.690382
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.764     FROM HESSE     STATUS=OK           592 CALLS     4537 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .56502        .72758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0457        7.5517        .23259E-03   -1.5359    
   3  Prefactor     .10000E-03    22.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.783        11.524        .11670E-03   -1.5021    
   5  Prefactor     .10000E-03    6.5194        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0550        .90835        .35148E-04   -1.5358    
   7  Prefactor     .10000E-03    2.7294        .22551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    116.98        .37021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .61661E-01    23.691        .13612E-02   -1.5658    
  10  Prefactor     5.7563        4.4412        .89714E-04   -1.5228    
  11  Prefactor     .10000E-03    4.6463        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2836        .10493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    262.08        .19153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2064        .12463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6445        .18022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6128        3.0324        .74994E-04   -1.5156    
  18  Prefactor     .10000E-03    2.2254        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.967        3.9226        .67830E-04   -1.4934    
  20  norm          6.1551        3.9914        .11100E-03   -1.5212    
  21  norm          .10000E-03    .91846        .66950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2818        7.7499        .22366E-03   -1.5346    
  23  Prefactor     5.3054        12.779        .87252E-03   -1.5247    
  24  Prefactor     .10000E-03    9.1107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.2006        5.2860        .20146E-03   -1.5350    
  26  Prefactor     28.435        37.787        .75119E-04   -1.4641    
  27  norm          3.2547        1.2643        .47877E-04   -1.5347    
  28  norm          .10000E-03    5.8762        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1710        .26438        .25266E-03   -.87504    
  30  Prefactor     .69038        .23985        .29983E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08679e-08
Minuit parameter uncertainties:
  1  1.54292e-05
  2  7.55409
  3  1.63502e-05
  4  11.5266
  5  2.18344e-05
  6  0.908357
  7  1.32586e-05
  8  0.00255869
  9  2.41628
  10  4.44146
  11  7.44359e-06
  12  8.07091e-06
  13  0.00328798
  14  1.03423e-05
  15  5.32894e-06
  16  5.28786e-05
  17  3.03242
  18  5.23649e-06
  19  3.92264
  20  3.99153
  21  9.15317e-07
  22  7.7523
  23  12.7853
  24  2.30221e-05
  25  5.28672
  26  37.8186
  27  1.26429
  28  7.20351e-07
  29  0.264686
  30  0.240211
Done.

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

Extracting fit parameters...

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  3.288e-03  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.300e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  6.904e-01  2.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.171e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 74.111 -40.722
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/871559/likelihoodResults_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.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) = 5124.76369142
delta logL = -1.8035307221e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5124.76367337
delta logL = 1.27765815705e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5124.764     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      258 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9656.4        .90712E-02** at limit **
   2  Index         2.3936        6.1419        .50000       -.22304E-05
   3  Normalizat    1.1710        .41596E-01    .57136E-01    .79876E-05
   4  Prefactor     .69038        .39047E-01    .67757E-01    .61199E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.39358
  Normalizat = 1.171
  Prefactor  = 0.69038
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.764     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9627.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3936        8.7899        .50000       -.54836    
   3  Normalizat    1.1710        .63842E-01    .25266E-03   -.87504    
   4  Prefactor     .69038        .59896E-01    .29983E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09342e-09
Minuit parameter uncertainties:
  1  0.0424568
  2  45.0185
  3  0.063846
  4  0.059902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/871559': 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): 102
logL (Free Index) = 5124.76367334
delta logL = 4.61486706627e-08

Extracting fit parameters...

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  4.246e-02  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  2.394e+00  4.502e+01  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  6.904e-01  5.990e-02  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.171e+00  6.385e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 74.111 -40.722

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/871559/cmap_HighResolution_526521601_526780801_4FGL_J0456.4-4043_daily_bin1108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-21 15:25:14.806588', job_id='871559', GAL2='0.69', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1629584714.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='4.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1108' AND source_name='4FGL J0456.4-4043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 15:25:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 871559: <4FGL_J0456.4-4043_daily_bin1108> in cluster <slac> Done

Job <4FGL_J0456.4-4043_daily_bin1108> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 21 15:10:24 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 15:10:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 15:10:25 2021
Terminated at Sat Aug 21 15:25:15 2021
Results reported at Sat Aug 21 15:25:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.4-4043_daily_bin1108 74.1111 -40.7222 526521601 526780801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0456.4-4043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   857.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

