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


Performing analysis on: 4FGL_J1427.0+2348_daily_bin1064
RA = 216.756, Dec = 23.8013
tmin = 515116801, tmax = 515376001
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='475790', job_status='RUN', time_executed='2021-09-09 16:41:49.070568', time_epoch_executed='1631230909.07' WHERE source_name='4FGL J1427.0+2348' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475790/ft1_4FGL_J1427.0+2348_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475790/ft1_4FGL_J1427.0+2348_daily_bin1064.fits outfile=/scratch/kocevski/475790/ft1_filteredMKT_4FGL_J1427.0+2348_daily_bin1064.fits ra=216.756 dec=23.8013 rad=12.0 tmin=515116801.0 tmax=515376001.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.51
user 3.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.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/475790/ft1_filteredMKT_4FGL_J1427.0+2348_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/475790/ltcube_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.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/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits
.....................!
real 11.89
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/475790/ltcube_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.fits outfile=/scratch/kocevski/475790/expmap_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.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/475790/ltcube_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.fits
.....................!
real 190.95
user 185.59
sys 5.01

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
Added 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J1427.0+2348 @ 216.756 23.8013

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits scfile=/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits outfile=/scratch/kocevski/475790/cmap_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.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=216.756 yref=23.8013 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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits scfile=/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits outfile=/scratch/kocevski/475790/cmap_HighResolution_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.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=216.756 yref=23.8013 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475790/Model_4FGL_J1427.0+2348_daily_bin1064.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
Working on...
/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits.....................!
real 47.30
user 45.97
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits', '/scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits', expMap='/scratch/kocevski/475790/expmap_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.fits', expCube='/scratch/kocevski/475790/ltcube_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/475790/Model_4FGL_J1427.0+2348_daily_bin1064.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1427.0+2348'

4FGL J1427.0+2348
   Spectrum: LogParabola
266         norm:  7.035e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  1.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  5.813e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.205e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/475790/ft1_filtered_4FGL_J1427.0+2348_daily_bin1064.fits
Spacecraft file(s): /scratch/kocevski/475790/ft2_4FGL_J1427.0+2348_daily_bin1064.fits
Exposure map: /scratch/kocevski/475790/expmap_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.fits
Exposure cube: /scratch/kocevski/475790/ltcube_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/475790/Model_4FGL_J1427.0+2348_daily_bin1064.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) = 6122.66729878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13323E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27152E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6114       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1529       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6855       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0439       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.175       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.364       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5205       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2011       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .81182       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6122.661     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1914 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0476       -.25974E-07** at limit **
   2  Prefactor     .10000E-03    6.1323       -.52636E-06** at limit **
   3  Prefactor     .10000E-03    17.179       -.24506E-06** at limit **
   4  Prefactor     .19773E-01    40.398       -.71354E-05    .18144E-04
   5  Prefactor     1.6106        5.9053       -.10226E-05    .68621E-04
   6  norm          6.1526        2.9950       -.13100E-06    .55839E-05
   7  Prefactor     7.6844        6.5708       -.41033E-07    .77550E-04
   8  norm          5.0434        3.2794       -.18900E-06    .12359E-03
   9  norm          2.7391        3.8188       -.26544E-06   -.64221E-04
  10  Prefactor     36.170        34.534        .70468E-06   -.15352E-04
  11  Prefactor     .10000E-03    19.530       -.13435E-05** at limit **
  12  Prefactor     19.365        21.640       -.58823E-06   -.36686E-04
  13  Prefactor     15.078        32.389       -.73705E-06   -.51702E-04
  14  Prefactor     6.4953        92.733       -.68814E-06   -.41160E-04
  15  Prefactor     3.2009        4.4901       -.23363E-06   -.10439E-04
  16  norm          .10000E-03    17.218        .12684E-06** at limit **
  17  Prefactor     .10000E-03    2.8542       -.15189E-06** at limit **
  18  Normalizat    .81185        .20847       -.38901E-05    .21762E-03
  19  Prefactor     1.2516        .18758        .47682E-05    .19485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.019773
  Prefactor  = 1.61057
  norm       = 6.15259
  Prefactor  = 7.6844
  norm       = 5.04339
  norm       = 2.73905
  Prefactor  = 36.1705
  Prefactor  = 0.0001
  Prefactor  = 19.3645
  Prefactor  = 15.0778
  Prefactor  = 6.49528
  Prefactor  = 3.20085
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.811854
  Prefactor  = 1.25158
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.661     FROM HESSE     STATUS=OK           282 CALLS     2196 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3519        .20921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.2182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .19773E-01    2.0483        .34579E-01   -1.5680    
   5  Prefactor     1.6106        5.9365        .16683E-02   -1.5454    
   6  norm          6.1526        2.9940        .91212E-04   -1.5212    
   7  Prefactor     7.6844        6.5588        .72325E-03   -1.5153    
   8  norm          5.0434        3.2744        .10897E-03   -1.5259    
   9  norm          2.7391        3.8088        .17437E-03   -1.5377    
  10  Prefactor     36.170        34.548        .66632E-04   -1.4504    
  11  Prefactor     .10000E-03    19.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.365        21.606        .91017E-04   -1.4828    
  13  Prefactor     15.078        32.159        .10314E-03   -1.4931    
  14  Prefactor     6.4953        92.123        .15716E-03   -1.5198    
  15  Prefactor     3.2009        4.4800        .19104E-03   -1.5350    
  16  norm          .10000E-03    17.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.8593        .12914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .81185        .21156        .28532E-03   -.99630    
  19  Prefactor     1.2516        .18867        .20864E-03   -.84758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22668e-10
Minuit parameter uncertainties:
  1  0.000180339
  2  1.02374e-05
  3  6.16954e-05
  4  0.401489
  5  5.93862
  6  2.99402
  7  6.55936
  8  3.27455
  9  3.80917
  10  34.5675
  11  5.95041e-05
  12  21.6149
  13  32.1961
  14  49.014
  15  4.48052
  16  5.07045e-05
  17  4.17329e-06
  18  0.211775
  19  0.188771
Done.

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

Extracting fit parameters...

4FGL J1427.0+2348
   Spectrum: LogParabola
266         norm:  6.153e+00  2.994e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  1.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  5.813e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.205e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.252e+00  1.888e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  8.119e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.10
Ra Dec: 216.756 23.801
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 6.64e-05 +/- 3.23e-05

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) = 6122.65779757
delta logL = 0.00352253134861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6122.65775318
delta logL = 0.0035669224435

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6122.658     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1402        6.9237        .40464E-02    .88791E-04
   2  alpha         1.7334        .70130        .23995        .46467E-05
   3  Normalizat    .81090        .18294        .64530E-01    .42541E-04
   4  Prefactor     1.2516        .16208        .33513E-01    .83089E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.1402
  alpha      = 1.73341
  Normalizat = 0.810903
  Prefactor  = 1.25162
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.658     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1402        2.9861        .90682E-04   -1.5212    
   2  alpha         1.7334        .33406        .96710E-02   -.31166    
   3  Normalizat    .81090        .20378        .28546E-03   -.99666    
   4  Prefactor     1.2516        .18244        .20863E-03   -.84757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70067e-12
Minuit parameter uncertainties:
  1  2.98617
  2  0.335171
  3  0.203972
  4  0.182537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475790': 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) = 6122.65774484
delta logL = 0.00357525708841

Extracting fit parameters...

4FGL J1427.0+2348
   Spectrum: LogParabola
266         norm:  6.140e+00  2.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  1.733e+00  3.352e-01  0.000e+00  5.000e+00 ( 1.000e+00)
268         beta:  5.813e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.205e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
524    Prefactor:  1.252e+00  1.825e-01  0.000e+00  1.000e+01 ( 1.000e+00)
525        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
526        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  8.109e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.09
Ra Dec: 216.756 23.801
Photon Index (Free Index): 1.73 +/- 0.34
Photon Flux (Free Index): 5.29e-08 +/- 3.09e-08
Energy Flux (Free Index): 6.35e-05 +/- 4.61e-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/475790/cmap_HighResolution_515116801_515376001_4FGL_J1427.0+2348_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='6.35e-05', photon_flux_error='2.50e-08', dlogl='3.58e-03', energy_flux='6.64e-05', photon_flux2='5.29e-08', job_status='DONE', time_completed='2021-09-09 16:50:22.083470', photon_index_error2='0.34', photon_index2='1.73', ts='11.10', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='4.61e-05', EG='0.81', time_epoch_completed='1631231422.08', return_code='0', job_id='475790', GAL2='1.25', EG2='0.81', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='3.09e-08', ts2='11.09', photon_index='1.71' WHERE bin_id='1064' AND source_name='4FGL J1427.0+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 16:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 475790: <4FGL_J1427.0+2348_daily_bin1064> in cluster <slac> Done

Job <4FGL_J1427.0+2348_daily_bin1064> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 16:41:30 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 16:41:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 16:41:31 2021
Terminated at Thu Sep  9 16:50:22 2021
Results reported at Thu Sep  9 16:50:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.0+2348_daily_bin1064 216.756 23.8013 515116801 515376001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1427.0+2348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   508.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            532 sec.

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

