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


Performing analysis on: 4FGL_J0456.2+2702_daily_bin1494
RA = 74.0673, Dec = 27.0403
tmin = 626572801, tmax = 626832001
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='859890', job_status='RUN', time_executed='2021-08-21 14:38:07.087557', time_epoch_executed='1629581887.09' WHERE source_name='4FGL J0456.2+2702' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859890

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859890/ft1_4FGL_J0456.2+2702_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859890/ft1_4FGL_J0456.2+2702_daily_bin1494.fits outfile=/scratch/kocevski/859890/ft1_filteredMKT_4FGL_J0456.2+2702_daily_bin1494.fits ra=74.0673 dec=27.0403 rad=12.0 tmin=626572801.0 tmax=626832001.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 11.16
user 2.75
sys 8.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.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/859890/ft1_filteredMKT_4FGL_J0456.2+2702_daily_bin1494.fits evtable="EVENTS" outfile="/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.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 8.79
user 0.35
sys 8.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/859890/ltcube_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.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/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits
.....................!
real 23.56
user 13.89
sys 9.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/859890/ltcube_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.fits outfile=/scratch/kocevski/859890/expmap_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.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/859890/ltcube_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.fits
.....................!
real 201.04
user 185.33
sys 15.27

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 161 point sources and 3 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.2+2702 @ 74.0673 27.0403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits scfile=/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits outfile=/scratch/kocevski/859890/cmap_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.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.0673 yref=27.0403 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 8.61
user 0.37
sys 8.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits scfile=/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits outfile=/scratch/kocevski/859890/cmap_HighResolution_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.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.0673 yref=27.0403 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 8.61
user 0.38
sys 8.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859890/Model_4FGL_J0456.2+2702_daily_bin1494.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 GAL_V02
adding source HB 9
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits.....................!
real 67.39
user 55.14
sys 12.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits', '/scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits', expMap='/scratch/kocevski/859890/expmap_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.fits', expCube='/scratch/kocevski/859890/ltcube_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859890/Model_4FGL_J0456.2+2702_daily_bin1494.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0456.2+2702'

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  6.481e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/859890/ft1_filtered_4FGL_J0456.2+2702_daily_bin1494.fits
Spacecraft file(s): /scratch/kocevski/859890/ft2_4FGL_J0456.2+2702_daily_bin1494.fits
Exposure map: /scratch/kocevski/859890/expmap_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.fits
Exposure cube: /scratch/kocevski/859890/ltcube_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859890/Model_4FGL_J0456.2+2702_daily_bin1494.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) = 1672.66397631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    325.49       1.0000         .10000E-03   10000.    
     6 'norm      '    .80708E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17922E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4097       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5068       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0092       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    17 'Prefactor '    .89824       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1672.634     FROM MIGRAD    STATUS=CONVERGED     70 CALLS     1271 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23896E-02    51.201       -.42446E-03** at limit **
   2  Prefactor     .14648E-03    54.272       -.20598E-04** at limit **
   3  norm          .12626E-03    116.27       -.60608E-03** at limit **
   4  Prefactor     .17827E-03    56.420       -.14423E-03** at limit **
   5  norm          325.48        2.3586       -.36309E-05    .75221E-02
   6  norm          .71808E-03    74.282       -.50413E-03** at limit **
   7  norm          .10000E-03    20.606        .32165E-04** at limit **
   8  norm          .10000E-03    13.170        .23349E-04** at limit **
   9  Prefactor     .15048E-03    101.30       -.50893E-03** at limit **
  10  Prefactor     .16499E-03    136.28        .54197E-03** at limit **
  11  norm          1.4088        1.4968       -.26480E-04   -.38745E-02
  12  Prefactor     .10000E-03    22.560        .13724E-04** at limit **
  13  Prefactor     1.5067        .34482       -.21436E-06   -.28001E-02
  14  norm          .10000E-03    3.0723       -.10868E-04** at limit **
  15  Prefactor     1.0091        3.0169        .13135E-04   -.91694E-04
  16  Normalizat    .10000E-01    .79618        .47210E-03** at limit **
  17  Prefactor     .89803        .10583       -.32890E-05   -.21329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00238964
  Prefactor  = 0.000146482
  norm       = 0.00012626
  Prefactor  = 0.000178267
  norm       = 325.48
  norm       = 0.000718075
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000150483
  Prefactor  = 0.000164991
  norm       = 1.40879
  Prefactor  = 0.0001
  Prefactor  = 1.50673
  norm       = 0.0001
  Prefactor  = 1.0091
  Normalizat = 0.01
  Prefactor  = 0.89803
 **********
 **   18 **HESSE 
 **********

 FCN=   1672.634     FROM HESSE     STATUS=OK           251 CALLS     1522 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23896E-02    1040.4        .90712E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14648E-03    217.51        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .12626E-03    436.98        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17827E-03    232.29        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          325.48        504.79        .56353E-03   -1.2080    
   6  norm          .71808E-03    695.50        .92309E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15048E-03    320.47        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16499E-03    175.49        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4088        17.911        .91234E-02   -1.5471    
  12  Prefactor     .10000E-03    22.570        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5067        .37355        .19378E-02   -1.5462    
  14  norm          .10000E-03    3.0663        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0091        3.3136        .13222E-01   -1.5507    
  16  Normalizat    .10000E-01    .73059        .47731       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .89803        .11591        .31665E-01   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85987e-06
Minuit parameter uncertainties:
  1  3.1431
  2  0.201837
  3  0.215838
  4  0.270724
  5  511.863
  6  1.32698
  7  0.000333278
  8  5.06861e-05
  9  0.255766
  10  0.214223
  11  10.0498
  12  0.000153091
  13  0.373546
  14  1.12044e-05
  15  3.31416
  16  4.20644e-06
  17  0.115941
Done.

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

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  7.181e-04  1.327e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.980e-01  1.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.000e-02  4.206e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 74.067 27.040
Photon Flux Upper Limit: 1.74e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859890/likelihoodResults_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.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) = 1672.63409075
delta logL = 6.4869709604e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1672.63409075
delta logL = 2.13549355976e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71505E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3193       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89803       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1672.634     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    695.97       -.49549E-03** at limit **
   2  alpha         2.3191        3.5100       -.82914E-04   -.43559E-06
   3  Normalizat    .10000E-01    .54672        .34581E-05** at limit **
   4  Prefactor     .89803        .10748       -.12695E-06    .70624E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31911
  Normalizat = 0.01
  Prefactor  = 0.898031
 **********
 **   18 **HESSE 
 **********

 FCN=   1672.634     FROM HESSE     STATUS=OK            27 CALLS      223 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    544.22        .20968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3191        3.5076        .16515       -.72421E-01
   3  Normalizat    .10000E-01    .60351        .19558E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89803        .10011        .13995E-03   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45628e-11
Minuit parameter uncertainties:
  1  0.000237578
  2  2.49364
  3  4.77493e-06
  4  0.100129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859890': 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) = 1672.63409032
delta logL = 4.33679588241e-07

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  1.000e-04  2.376e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.319e+00  2.494e+00  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  1.733e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.269e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  8.980e-01  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.000e-02  4.775e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 74.067 27.040

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/859890/cmap_HighResolution_626572801_626832001_4FGL_J0456.2+2702_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-04', job_status='DONE', photon_flux_upper_limit='1.74e-06', time_completed='2021-08-21 14:47:32.886285', job_id='859890', GAL2='0.90', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629582452.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1494' AND source_name='4FGL J0456.2+2702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 14:47:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 859890: <4FGL_J0456.2+2702_daily_bin1494> in cluster <slac> Done

Job <4FGL_J0456.2+2702_daily_bin1494> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 14:35:39 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 14:35:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 14:35:42 2021
Terminated at Sat Aug 21 14:47:35 2021
Results reported at Sat Aug 21 14:47:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.2+2702_daily_bin1494 74.0673 27.0403 626572801 626832001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0456.2+2702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            716 sec.

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

