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


Performing analysis on: 4FGL_J0456.2+2702_daily_bin1389
RA = 74.0673, Dec = 27.0403
tmin = 599356801, tmax = 599616001
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='859733', job_status='RUN', time_executed='2021-08-21 14:39:58.447277', time_epoch_executed='1629581998.45' WHERE source_name='4FGL J0456.2+2702' and cadence='daily' and bin_id='1389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859733/ft1_4FGL_J0456.2+2702_daily_bin1389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859733/ft1_4FGL_J0456.2+2702_daily_bin1389.fits outfile=/scratch/kocevski/859733/ft1_filteredMKT_4FGL_J0456.2+2702_daily_bin1389.fits ra=74.0673 dec=27.0403 rad=12.0 tmin=599356801.0 tmax=599616001.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 5.99
user 2.48
sys 3.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.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/859733/ft1_filteredMKT_4FGL_J0456.2+2702_daily_bin1389.fits evtable="EVENTS" outfile="/scratch/kocevski/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.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 3.76
user 0.34
sys 3.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits" evtable="EVENTS" scfile=/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits sctable="SC_DATA" outfile=/scratch/kocevski/859733/ltcube_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.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/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits
.....................!
real 16.32
user 12.31
sys 3.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits sctable="SC_DATA" expcube=/scratch/kocevski/859733/ltcube_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.fits outfile=/scratch/kocevski/859733/expmap_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.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/859733/ltcube_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.fits
.....................!
real 196.63
user 187.55
sys 8.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 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/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits scfile=/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits outfile=/scratch/kocevski/859733/cmap_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.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 3.74
user 0.37
sys 3.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits scfile=/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits outfile=/scratch/kocevski/859733/cmap_HighResolution_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.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 3.74
user 0.39
sys 3.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits evtable="EVENTS" scfile=/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/859733/Model_4FGL_J0456.2+2702_daily_bin1389.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/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits.....................!
real 95.70
user 89.55
sys 5.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits', '/scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits', expMap='/scratch/kocevski/859733/expmap_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.fits', expCube='/scratch/kocevski/859733/ltcube_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/859733/Model_4FGL_J0456.2+2702_daily_bin1389.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/859733/ft1_filtered_4FGL_J0456.2+2702_daily_bin1389.fits
Spacecraft file(s): /scratch/kocevski/859733/ft2_4FGL_J0456.2+2702_daily_bin1389.fits
Exposure map: /scratch/kocevski/859733/expmap_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.fits
Exposure cube: /scratch/kocevski/859733/ltcube_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/859733/Model_4FGL_J0456.2+2702_daily_bin1389.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) = 2988.83943542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.492       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96535E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    112.93       1.0000         .10000E-03   10000.    
     7 'norm      '    16.612       1.0000         .10000E-03   10000.    
     8 'norm      '    52.276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    712.05       1.0000         .10000E-03   10000.    
    10 'Prefactor '    792.58       1.0000         .10000E-03   10000.    
    11 'norm      '    .11377E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12661E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0739       1.0000         .10000E-03   10000.    
    14 'norm      '    .28761E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16410E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    2.7654       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .73172       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=   2988.652     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1901 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.366        118.99       -.78853E-05   -.24451E-04
   2  Prefactor     .10008E-03    927.48       -.36998E-04** at limit **
   3  norm          .10000E-03    12.042       -.91776E-07** at limit **
   4  Prefactor     .10000E-03    27.224       -.45933E-06** at limit **
   5  norm          .10000E-03    99.490        .10393E-05** at limit **
   6  norm          112.86        118.57        .55142E-06    .33481E-05
   7  norm          16.614        20.064        .24179E-06    .57076E-05
   8  norm          52.249        43.452       -.21458E-06    .16776E-04
   9  Prefactor     711.78        472.65        .40751E-06    .14275E-04
  10  Prefactor     794.56        1412.7        .72429E-05   -.19851E-05
  11  norm          .10000E-03    24.918       -.40018E-05** at limit **
  12  Prefactor     .10000E-03    681.07       -.37401E-05** at limit **
  13  Prefactor     1.0737        .96593        .32086E-06   -.69918E-05
  14  norm          .10012E-03    76.767       -.96133E-05** at limit **
  15  Prefactor     .10000E-03    35.221       -.45644E-05** at limit **
  16  Normalizat    2.7654        .76878       -.12912E-05   -.80684E-04
  17  Prefactor     .73171        .10645       -.65098E-06   -.82118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3656
  Prefactor  = 0.000100083
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 112.855
  norm       = 16.6141
  norm       = 52.2487
  Prefactor  = 711.782
  Prefactor  = 794.559
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.07372
  norm       = 0.00010012
  Prefactor  = 0.000100001
  Normalizat = 2.76543
  Prefactor  = 0.731713
 **********
 **   18 **HESSE 
 **********

 FCN=   2988.652     FROM HESSE     STATUS=OK           225 CALLS     2126 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.366        121.22        .71401E-04   -1.4587    
   2  Prefactor     .10008E-03    85.875        .12353       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    99.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          112.86        118.74        .18928E-03   -1.3579    
   7  norm          16.614        20.078        .98267E-04   -1.4893    
   8  norm          52.249        43.427        .55471E-04   -1.4261    
   9  Prefactor     711.78        472.73        .77771E-04   -1.0307    
  10  Prefactor     794.56        1409.5        .74035E-04   -.99929    
  11  norm          .10000E-03    24.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    681.27        .18172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0737        .98712        .50452E-04   -1.5501    
  14  norm          .10012E-03    345.34        .65446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    2.7654        .87419        .61563E-03   -.46493    
  17  Prefactor     .73171        .12003        .14596E-03   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92346e-10
Minuit parameter uncertainties:
  1  122.187
  2  0.00533739
  3  1.17052e-05
  4  0.000126335
  5  6.08212e-05
  6  118.99
  7  20.0866
  8  43.4537
  9  475.436
  10  1482.65
  11  0.000172519
  12  0.000673877
  13  0.987135
  14  0.0129388
  15  0.000300643
  16  0.879872
  17  0.120072
Done.

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

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  1.129e+02  1.190e+02  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:  7.317e-01  1.201e-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:  2.765e+00  8.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 74.067 27.040
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 1.81e-07
Energy Flux (Fixed Index): 7.43e-05 +/- 7.83e-05

TS (Fixed Index): 1.60
Ra Dec: 74.067 27.040
Photon Flux Upper Limit: 6.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859733/likelihoodResults_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.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) = 2988.63937795
delta logL = 0.0125390093767

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2988.63530931
delta logL = 0.0166076516284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    101.64       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4705       1.0000          .0000       5.0000    
     3 'Normalizat'    2.7594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73144       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2988.635     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      251 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          101.61        130.04        .19940E-03    .62967E-03
   2  alpha         2.4710        .84456        .12553E-01    .26468E-03
   3  Normalizat    2.7579        .84577        .61605E-03   -.12244E-03
   4  Prefactor     .73169        .11864        .14594E-03   -.79221E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 101.611
  alpha      = 2.47096
  Normalizat = 2.75791
  Prefactor  = 0.731686
 **********
 **   18 **HESSE 
 **********

 FCN=   2988.635     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          101.61        126.27        .39880E-04   -1.3688    
   2  alpha         2.4710        .82074        .50212E-03   -.11615E-01
   3  Normalizat    2.7579        .84597        .12321E-03   -.46662    
   4  Prefactor     .73169        .11869        .29188E-04   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36632e-09
Minuit parameter uncertainties:
  1  126.604
  2  0.836245
  3  0.85112
  4  0.11873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859733': 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) = 2988.63530686
delta logL = 0.0166100983474

Extracting fit parameters...

4FGL J0456.2+2702
   Spectrum: LogParabola
237         norm:  1.016e+02  1.266e+02  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.471e+00  8.362e-01  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:  7.317e-01  1.187e-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:  2.758e+00  8.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 74.067 27.040
Photon Index (Free Index): 2.47 +/- 0.84
Photon Flux (Free Index): 1.97e-07 +/- 2.45e-07
Energy Flux (Free Index): 7.26e-05 +/- 7.59e-05

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/859733/cmap_HighResolution_599356801_599616001_4FGL_J0456.2+2702_daily_bin1389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-04', comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='7.26e-05', photon_flux_error='1.81e-07', dlogl='1.66e-02', energy_flux='7.43e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-08-21 14:49:57.586644', photon_index_error2='0.84', photon_index2='2.47', ts='1.60', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='6.29e-07', energy_flux_error2='7.59e-05', EG='2.77', time_epoch_completed='1629582597.59', return_code='0', job_id='859733', GAL2='0.73', EG2='2.76', return_code2='0', energy_flux_error='7.83e-05', photon_flux_error2='2.45e-07', ts2='1.63', photon_index='2.32' WHERE bin_id='1389' AND source_name='4FGL J0456.2+2702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 14:49:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 859733: <4FGL_J0456.2+2702_daily_bin1389> in cluster <slac> Done

Job <4FGL_J0456.2+2702_daily_bin1389> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 14:35:27 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 14:35:29 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:29 2021
Terminated at Sat Aug 21 14:49:58 2021
Results reported at Sat Aug 21 14:49:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0456.2+2702_daily_bin1389 74.0673 27.0403 599356801 599616001 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 :                                   583.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

