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


Performing analysis on: 4FGL_J1427.0+2348_daily_bin1384
RA = 216.756, Dec = 23.8013
tmin = 598060801, tmax = 598320001
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='478771', job_status='RUN', time_executed='2021-09-09 16:55:05.136487', time_epoch_executed='1631231705.14' WHERE source_name='4FGL J1427.0+2348' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478771/ft1_4FGL_J1427.0+2348_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478771/ft1_4FGL_J1427.0+2348_daily_bin1384.fits outfile=/scratch/kocevski/478771/ft1_filteredMKT_4FGL_J1427.0+2348_daily_bin1384.fits ra=216.756 dec=23.8013 rad=12.0 tmin=598060801.0 tmax=598320001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.88
user 4.64
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/478771/ltcube_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.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/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits
.....................!
real 22.30
user 12.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/478771/ltcube_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.fits outfile=/scratch/kocevski/478771/expmap_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.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/478771/ltcube_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.fits
.....................!
real 191.74
user 186.18
sys 4.77

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/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits scfile=/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits outfile=/scratch/kocevski/478771/cmap_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits scfile=/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits outfile=/scratch/kocevski/478771/cmap_HighResolution_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478771/Model_4FGL_J1427.0+2348_daily_bin1384.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/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits.....................!
real 48.37
user 47.08
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits', '/scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits', expMap='/scratch/kocevski/478771/expmap_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.fits', expCube='/scratch/kocevski/478771/ltcube_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478771/Model_4FGL_J1427.0+2348_daily_bin1384.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/478771/ft1_filtered_4FGL_J1427.0+2348_daily_bin1384.fits
Spacecraft file(s): /scratch/kocevski/478771/ft2_4FGL_J1427.0+2348_daily_bin1384.fits
Exposure map: /scratch/kocevski/478771/expmap_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.fits
Exposure cube: /scratch/kocevski/478771/ltcube_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478771/Model_4FGL_J1427.0+2348_daily_bin1384.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) = 6121.12733696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.077       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1187       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4436       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8934       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4240       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.864       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.468       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   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'    .94428       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87531       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=   6121.126     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1864 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5172        3.5627       -.11187E-05   -.54727E-03
   2  Prefactor     1.8944        7.7353       -.21778E-05   -.45997E-03
   3  Prefactor     16.078        24.090        .19336E-05   -.33901E-05
   4  Prefactor     33.476        6.4911        .13953E-06    .10871E-03
   5  Prefactor     .10000E-03    4.6459       -.71085E-07** at limit **
   6  norm          5.0426        2.3663       -.26212E-07    .12909E-03
   7  Prefactor     9.1195        7.1978       -.15052E-06   -.11395E-03
   8  norm          2.4433        2.4846       -.18229E-06   -.34306E-03
   9  norm          2.8935        3.1352        .12284E-06   -.20960E-03
  10  Prefactor     8.4154        33.278       -.23438E-04   -.74288E-05
  11  Prefactor     33.864        26.781       -.50516E-06    .48871E-05
  12  Prefactor     17.673        17.961       -.98703E-06   -.77501E-05
  13  Prefactor     30.468        25.113        .10205E-06    .32999E-05
  14  Prefactor     .10000E-03    14.595       -.71246E-07** at limit **
  15  Prefactor     .10000E-03    3.2505        .11252E-07** at limit **
  16  norm          .10000E-03    20.539        .87633E-07** at limit **
  17  Prefactor     .10000E-03    3.0648       -.40092E-07** at limit **
  18  Normalizat    .94418        .18652        .33435E-05   -.55158E-04
  19  Prefactor     .87539        .14696       -.90975E-06    .17897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51719
  Prefactor  = 1.89437
  Prefactor  = 16.078
  Prefactor  = 33.476
  Prefactor  = 0.0001
  norm       = 5.04258
  Prefactor  = 9.11948
  norm       = 2.44329
  norm       = 2.89349
  Prefactor  = 8.41542
  Prefactor  = 33.8637
  Prefactor  = 17.6728
  Prefactor  = 30.4683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.944181
  Prefactor  = 0.875392
 **********
 **   18 **HESSE 
 **********

 FCN=   6121.126     FROM HESSE     STATUS=OK           272 CALLS     2136 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5172        3.6017        .17021E-03   -1.5391    
   2  Prefactor     1.8944        8.1449        .30226E-03   -1.5433    
   3  Prefactor     16.078        24.056        .99890E-04   -1.4906    
   4  Prefactor     33.476        6.5259        .69259E-04   -1.4550    
   5  Prefactor     .10000E-03    4.6813        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0426        2.3676        .80105E-04   -1.5259    
   7  Prefactor     9.1195        7.1934        .13272E-03   -1.5104    
   8  norm          2.4433        2.4753        .11909E-03   -1.5395    
   9  norm          2.8935        3.1260        .13970E-03   -1.5368    
  10  Prefactor     8.4154        33.019        .13812E-03   -1.5128    
  11  Prefactor     33.864        26.759        .68861E-04   -1.4543    
  12  Prefactor     17.673        17.955        .95270E-04   -1.4867    
  13  Prefactor     30.468        25.097        .72587E-04   -1.4603    
  14  Prefactor     .10000E-03    14.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2793        .13774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.0753        .13376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94418        .21587        .25882E-03   -.94925    
  19  Prefactor     .87539        .17062        .22394E-03   -.97006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11315e-09
Minuit parameter uncertainties:
  1  3.60196
  2  7.85768
  3  24.0701
  4  6.52602
  5  1.55747e-05
  6  2.36767
  7  7.1941
  8  2.47544
  9  3.12619
  10  33.0911
  11  26.7686
  12  17.9609
  13  25.1054
  14  1.4184e-06
  15  3.43322e-06
  16  9.52154e-07
  17  1.69279e-06
  18  0.216065
  19  0.170721
Done.

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

Extracting fit parameters...

4FGL J1427.0+2348
   Spectrum: LogParabola
266         norm:  5.043e+00  2.368e+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:  8.754e-01  1.707e-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:  9.442e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.97
Ra Dec: 216.756 23.801
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 5.44e-05 +/- 2.56e-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) = 6119.15899443
delta logL = 1.9667882366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6118.62046807
delta logL = 2.50531460519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2101       1.0000         .10000E-03   10000.    
     2 'alpha     '    .85801       1.0000          .0000       5.0000    
     3 'Normalizat'    .95792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88032       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=   6118.620     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      201 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2101        1.4028        .69172E-02    .25660E-02
   2  alpha         .85801        .26928        .20274        .65220E-06
   3  Normalizat    .95792        .17174        .45637E-01    .30003E-04
   4  Prefactor     .88032        .14455        .44754E-01   -.62056E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2101
  alpha      = 0.858007
  Normalizat = 0.957919
  Prefactor  = 0.88032
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.620     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2101        2.0473        .58560E-04   -1.5411    
   2  alpha         .85801        .39260        .88969E-03   -.71656    
   3  Normalizat    .95792        .19842        .25719E-03   -.94454    
   4  Prefactor     .88032        .16710        .22358E-03   -.96832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01684e-09
Minuit parameter uncertainties:
  1  2.04741
  2  0.395496
  3  0.198569
  4  0.167201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478771': 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) = 6118.62046807
delta logL = 2.50531460558

Extracting fit parameters...

4FGL J1427.0+2348
   Spectrum: LogParabola
266         norm:  2.210e+00  2.047e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  8.580e-01  3.955e-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:  8.803e-01  1.672e-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:  9.579e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.95
Ra Dec: 216.756 23.801
Photon Index (Free Index): 0.86 +/- 0.40
Photon Flux (Free Index): 1.62e-08 +/- 1.01e-08
Energy Flux (Free Index): 2.10e-04 +/- 1.55e-04

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/478771/cmap_HighResolution_598060801_598320001_4FGL_J1427.0+2348_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='2.10e-04', photon_flux_error='1.98e-08', dlogl='2.51e+00', energy_flux='5.44e-05', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-09-09 17:04:02.993410', photon_index_error2='0.40', photon_index2='0.86', ts='29.97', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.55e-04', EG='0.94', time_epoch_completed='1631232242.99', return_code='0', job_id='478771', GAL2='0.88', EG2='0.96', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='1.01e-08', ts2='34.95', photon_index='1.71' WHERE bin_id='1384' AND source_name='4FGL J1427.0+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 17:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 478771: <4FGL_J1427.0+2348_daily_bin1384> in cluster <slac> Done

Job <4FGL_J1427.0+2348_daily_bin1384> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 16:51:07 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 16:51:09 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:51:09 2021
Terminated at Thu Sep  9 17:04:06 2021
Results reported at Thu Sep  9 17:04:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.0+2348_daily_bin1384 216.756 23.8013 598060801 598320001 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 :                                   512.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             214.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            779 sec.

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

