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


Performing analysis on: 4FGL_J0456.4-4043_daily_bin1123
RA = 74.1111, Dec = -40.7222
tmin = 530409601, tmax = 530668801
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='871590', job_status='RUN', time_executed='2021-08-21 15:11:55.716060', time_epoch_executed='1629583915.72' WHERE source_name='4FGL J0456.4-4043' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/871590

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/871590/ft1_4FGL_J0456.4-4043_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/871590/ft1_4FGL_J0456.4-4043_daily_bin1123.fits outfile=/scratch/kocevski/871590/ft1_filteredMKT_4FGL_J0456.4-4043_daily_bin1123.fits ra=74.1111 dec=-40.7222 rad=12.0 tmin=530409601.0 tmax=530668801.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.96
user 3.38
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.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/871590/ft1_filteredMKT_4FGL_J0456.4-4043_daily_bin1123.fits evtable="EVENTS" outfile="/scratch/kocevski/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.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.79
user 0.32
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/871590/ltcube_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.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/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits
.....................!
real 12.23
user 11.39
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/871590/ltcube_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.fits outfile=/scratch/kocevski/871590/expmap_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.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/871590/ltcube_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.fits
.....................!
real 190.89
user 185.34
sys 5.25

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/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits scfile=/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits outfile=/scratch/kocevski/871590/cmap_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.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.82
user 0.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits scfile=/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits outfile=/scratch/kocevski/871590/cmap_HighResolution_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.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.84
user 0.39
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/871590/Model_4FGL_J0456.4-4043_daily_bin1123.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/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits.....................!
real 120.89
user 119.05
sys 1.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits', '/scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits', expMap='/scratch/kocevski/871590/expmap_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.fits', expCube='/scratch/kocevski/871590/ltcube_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/871590/Model_4FGL_J0456.4-4043_daily_bin1123.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/871590/ft1_filtered_4FGL_J0456.4-4043_daily_bin1123.fits
Spacecraft file(s): /scratch/kocevski/871590/ft2_4FGL_J0456.4-4043_daily_bin1123.fits
Exposure map: /scratch/kocevski/871590/expmap_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.fits
Exposure cube: /scratch/kocevski/871590/ltcube_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/871590/Model_4FGL_J0456.4-4043_daily_bin1123.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) = 5635.36242228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.3311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .89752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14133E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.719       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.381       1.0000         .10000E-03   10000.    
    12 'norm      '    .11657E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56728E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.9967       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5860       1.0000         .10000E-03   10000.    
    21 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.959       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .75714       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2400       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0785       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=   5635.296     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     3946 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .17890        .27445E-08** at limit **
   2  norm          5.3318        8.4263       -.56855E-06   -.22472E-03
   3  Prefactor     .10000E-03    14.334        .83224E-05** at limit **
   4  Prefactor     .10000E-03    4.5845        .34542E-05** at limit **
   5  Prefactor     .10000E-03    7.1022        .63121E-05** at limit **
   6  norm          .89760        .53397       -.54717E-07   -.79424E-03
   7  Prefactor     .10002E-03    2.1018       -.10883E-05** at limit **
   8  norm          18.723        12.688        .14452E-06    .30630E-03
   9  norm          1.4128        1.2395        .86950E-07    .34925E-03
  10  Prefactor     .10000E-03    2.0124        .16024E-06** at limit **
  11  Prefactor     15.339        23.027       -.39519E-05   -.36639E-03
  12  norm          .10001E-03    5.1639        .26593E-05** at limit **
  13  Prefactor     .10000E-03    202.86       -.10771E-03** at limit **
  14  Prefactor     .10000E-03    4.4818       -.31619E-05** at limit **
  15  Prefactor     .10000E-03    9.1314       -.65583E-05** at limit **
  16  Prefactor     .10000E-03    20.544       -.20949E-04** at limit **
  17  Prefactor     3.3282        3.2708       -.17827E-06   -.54973E-03
  18  Prefactor     .10000E-03    2.1213       -.60563E-07** at limit **
  19  norm          4.9968        2.5876       -.47396E-07    .26849E-04
  20  norm          2.5846        4.2838        .48846E-07    .48395E-04
  21  norm          .10000E-03    3.6846       -.88912E-06** at limit **
  22  Prefactor     7.2530        7.2292       -.31685E-06   -.20172E-03
  23  Prefactor     .10000E-03    6.3629       -.18508E-05** at limit **
  24  Prefactor     .10000E-03    5.3292        .33307E-05** at limit **
  25  norm          10.960        6.1009       -.14821E-06   -.16048E-03
  26  Prefactor     .10000E-03    29.599        .15760E-04** at limit **
  27  norm          .75717        .79743       -.22150E-07   -.56012E-04
  28  norm          .10000E-03    6.5538        .10351E-05** at limit **
  29  Normalizat    1.2397        .21974        .12111E-05    .20980E-03
  30  Prefactor     1.0787        .20500        .20374E-06    .24850E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.33182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.8976
  Prefactor  = 0.000100018
  norm       = 18.7229
  norm       = 1.41278
  Prefactor  = 0.0001
  Prefactor  = 15.3395
  norm       = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3282
  Prefactor  = 0.0001
  norm       = 4.9968
  norm       = 2.58464
  norm       = 0.000100002
  Prefactor  = 7.25301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9596
  Prefactor  = 0.0001
  norm       = 0.757171
  norm       = 0.0001
  Normalizat = 1.23969
  Prefactor  = 1.07869
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.296     FROM HESSE     STATUS=OK           582 CALLS     4528 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .27760        .60040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3318        8.2547        .17406E-03   -1.5246    
   3  Prefactor     .10000E-03    14.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5882        .15694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .89760        .53783        .40784E-04   -1.5518    
   7  Prefactor     .10002E-03    5.5348        .19625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.723        12.364        .92572E-04   -1.4842    
   9  norm          1.4128        1.2516        .75473E-04   -1.5470    
  10  Prefactor     .10000E-03    2.0531        .20704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.339        20.558        .10212E-03   -1.4924    
  12  norm          .10001E-03    15.442        .29386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    203.11        .21093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5516        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3282        3.2472        .12459E-03   -1.5343    
  18  Prefactor     .10000E-03    2.1388        .10665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9968        2.5845        .83069E-04   -1.5261    
  20  norm          2.5846        3.8267        .17145E-03   -1.5386    
  21  norm          .10000E-03    6.3659        .24922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2530        7.2173        .14893E-03   -1.5169    
  23  Prefactor     .10000E-03    6.3699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3309        .16917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.960        6.0964        .12102E-03   -1.5046    
  26  Prefactor     .10000E-03    29.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .75717        .78574        .66020E-04   -1.5534    
  28  norm          .10000E-03    6.5592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2397        .26306        .26641E-03   -.85385    
  30  Prefactor     1.0787        .24663        .27222E-03   -.90151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81881e-09
Minuit parameter uncertainties:
  1  1.1576e-06
  2  8.25644
  3  3.96187e-06
  4  4.03321e-06
  5  2.5022e-05
  6  0.537832
  7  0.000628704
  8  12.3657
  9  1.25161
  10  1.30373e-05
  11  20.5672
  12  0.000624497
  13  0.00156408
  14  2.8241e-06
  15  3.92926e-06
  16  1.10163e-05
  17  3.24733
  18  1.44919e-06
  19  2.5846
  20  3.82711
  21  0.000208022
  22  7.21817
  23  7.70844e-07
  24  1.78314e-07
  25  6.0967
  26  3.55165e-05
  27  0.78575
  28  1.78367e-06
  29  0.26334
  30  0.246887
Done.

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

Extracting fit parameters...

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  1.000e-04  1.564e-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:  1.079e+00  2.469e-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.240e+00  2.633e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/871590/likelihoodResults_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.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) = 5635.29580331
delta logL = -2.33150904023e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5635.2646016
delta logL = 0.0311783996376

Fit tolerance = 1e-08

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

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

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

 FCN=   5635.265     FROM MIGRAD    STATUS=FAILED       105 CALLS      389 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43830        353.34        .19176E-03   -.80690E-04
   2  Index         3.9332        8.0133        .85890E-02    .17940E-03
   3  Normalizat    1.2236        .16769        .26792E-03   -.59407E-04
   4  Prefactor     1.0875        .16128        .27127E-03   -.62318E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5635.265     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      493 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43830        353.34        .55891E-03   -.80690E-04
   2  Index         3.9332        8.0133        .59000E-02    .17940E-03
   3  Normalizat    1.2236        .16769        .13413E-03   -.59407E-04
   4  Prefactor     1.0875        .16128        .44768E-04   -.62318E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5635.265     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      530 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43830        370.37        .76702E-05   -.97824E-05
   2  Index         3.9332        8.0330        .17178E-02   -.82727E-06
   3  Normalizat    1.2236        .24431        .10717E-04   -.16973E-05
   4  Prefactor     1.0875        .23308        .10851E-04   -.67054E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.438303
  Index      = 3.93322
  Normalizat = 1.22364
  Prefactor  = 1.08746
 **********
 **   18 **HESSE 
 **********

 FCN=   5635.265     FROM HESSE     STATUS=OK            23 CALLS      553 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43830        53.931        .15340E-05   -1.5576    
   2  Index         3.9332        6.8197        .68712E-04   -.21501    
   3  Normalizat    1.2236        .26010        .21433E-05   -.85876    
   4  Prefactor     1.0875        .24647        .21702E-05   -.89868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91566e-13
Minuit parameter uncertainties:
  1  9.73169
  2  8.30591
  3  0.260376
  4  0.246728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/871590': 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) = 5635.26457948
delta logL = 0.0312005165279

Extracting fit parameters...

4FGL J0456.4-4043
   Spectrum: PowerLaw
298    Prefactor:  4.383e-01  9.732e+00  1.000e-04  1.000e+04 ( 1.000e-14)
299        Index:  3.933e+00  8.306e+00  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:  1.087e+00  2.467e-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.224e+00  2.604e-01  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/871590/cmap_HighResolution_530409601_530668801_4FGL_J0456.4-4043_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2021-08-21 15:27:00.376787', job_id='871590', GAL2='1.09', fit_tolerance='1e-08', EG2='1.22', EG='1.24', time_epoch_completed='1629584820.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.12e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1123' AND source_name='4FGL J0456.4-4043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 15:27:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 871590: <4FGL_J0456.4-4043_daily_bin1123> in cluster <slac> Done

Job <4FGL_J0456.4-4043_daily_bin1123> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 21 15:10:25 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 15:10:27 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:27 2021
Terminated at Sat Aug 21 15:27:01 2021
Results reported at Sat Aug 21 15:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.4-4043_daily_bin1123 74.1111 -40.7222 530409601 530668801 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 :                                   902.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             342.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

