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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin555
RA = 215.792, Dec = 37.6452
tmin = 383184001, tmax = 383443201
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='387897', job_status='RUN', time_executed='2021-09-09 11:57:02.511327', time_epoch_executed='1631213822.51' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387897

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387897/ft1_4FGL_J1423.1+3738_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387897/ft1_4FGL_J1423.1+3738_daily_bin555.fits outfile=/scratch/kocevski/387897/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin555.fits ra=215.792 dec=37.6452 rad=12.0 tmin=383184001.0 tmax=383443201.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.42
user 3.19
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.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/387897/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin555.fits evtable="EVENTS" outfile="/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/387897/ltcube_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.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/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits
.....................!
real 14.19
user 13.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/387897/ltcube_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.fits outfile=/scratch/kocevski/387897/expmap_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.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/387897/ltcube_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.fits
.....................!
real 191.11
user 185.52
sys 5.11

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

Setting source of interest to:
4FGL J1423.1+3738 @ 215.792 37.6452

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits scfile=/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits outfile=/scratch/kocevski/387897/cmap_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.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=215.792 yref=37.6452 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits scfile=/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits outfile=/scratch/kocevski/387897/cmap_HighResolution_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.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=215.792 yref=37.6452 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387897/Model_4FGL_J1423.1+3738_daily_bin555.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/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits.....................!
real 48.44
user 47.03
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits', '/scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits', expMap='/scratch/kocevski/387897/expmap_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.fits', expCube='/scratch/kocevski/387897/ltcube_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/387897/Model_4FGL_J1423.1+3738_daily_bin555.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1423.1+3738'

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.465e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/387897/ft1_filtered_4FGL_J1423.1+3738_daily_bin555.fits
Spacecraft file(s): /scratch/kocevski/387897/ft2_4FGL_J1423.1+3738_daily_bin555.fits
Exposure map: /scratch/kocevski/387897/expmap_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.fits
Exposure cube: /scratch/kocevski/387897/ltcube_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/387897/Model_4FGL_J1423.1+3738_daily_bin555.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) = 6321.51599765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8181       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1695       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.262       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13935E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5510       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.430       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.019       1.0000         .10000E-03   10000.    
    18 'norm      '    .19635E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2629       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .64819       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99345       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6321.452     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3149 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3995        156.33       -.11910E-03    .16749E-05
   2  Prefactor     .10000E-03    44.537        .48818E-04** at limit **
   3  norm          6.8185        1.9544       -.84426E-07    .50607E-04
   4  Prefactor     .10000E-03    2.1279       -.83186E-08** at limit **
   5  norm          2.1625        21.463       -.27924E-05   -.13274E-03
   6  Prefactor     .10000E-03    7.8475        .76935E-06** at limit **
   7  Prefactor     4.1929        4.0890        .82834E-06   -.13156E-04
   8  Prefactor     .10000E-03    8.5333       -.16446E-05** at limit **
   9  norm          12.263        4.8610        .23567E-06    .49511E-03
  10  Prefactor     24.349        14.618        .43876E-06    .14352E-02
  11  Prefactor     .10000E-03    39.164       -.37594E-04** at limit **
  12  Prefactor     4.5511        3.4850       -.13037E-05   -.19547E-03
  13  norm          .10000E-03    4.9485        .90885E-07** at limit **
  14  Prefactor     10.435        19.568        .35443E-05    .88358E-04
  15  norm          2.0017        3.2432       -.15699E-06   -.14334E-03
  16  Prefactor     14.968        23.944       -.88752E-07    .52434E-04
  17  Prefactor     10.024        33.711        .19903E-04    .35896E-04
  18  norm          .17694        4.3912        .50022E-07    .30450E-03
  19  Prefactor     3.2242        12.012       -.16810E-04   -.14621E-03
  20  Prefactor     .10000E-03    2.7212        .16585E-06** at limit **
  21  norm          .64835        1.2212        .53898E-07   -.25946E-03
  22  Prefactor     .10000E-03    3.5826       -.14215E-06** at limit **
  23  Prefactor     .10000E-03    118.15       -.81808E-04** at limit **
  24  Prefactor     .10000E-03    14.340        .17905E-05** at limit **
  25  Normalizat    .99399        .16879        .64682E-06    .67400E-03
  26  Prefactor     .95260        .18921        .25102E-05    .43665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39945
  Prefactor  = 0.0001
  norm       = 6.81851
  Prefactor  = 0.0001
  norm       = 2.16248
  Prefactor  = 0.0001
  Prefactor  = 4.19294
  Prefactor  = 0.0001
  norm       = 12.2626
  Prefactor  = 24.3489
  Prefactor  = 0.000100001
  Prefactor  = 4.55108
  norm       = 0.0001
  Prefactor  = 10.4349
  norm       = 2.00168
  Prefactor  = 14.9678
  Prefactor  = 10.0242
  norm       = 0.176937
  Prefactor  = 3.22422
  Prefactor  = 0.0001
  norm       = 0.648345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.993987
  Prefactor  = 0.952602
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.452     FROM HESSE     STATUS=OK           458 CALLS     3607 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3995        157.64        .19108E-03   -1.5288    
   2  Prefactor     .10000E-03    44.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8185        1.9565        .57113E-04   -1.5186    
   4  Prefactor     .10000E-03    2.1646        .11319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1625        21.476        .27958E-03   -1.5414    
   6  Prefactor     .10000E-03    7.8546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1929        4.0886        .15415E-03   -1.5298    
   8  Prefactor     .10000E-03    8.5590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.263        4.8596        .10505E-03   -1.5007    
  10  Prefactor     24.349        14.541        .81217E-04   -1.4721    
  11  Prefactor     .10000E-03    39.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5511        3.4884        .12370E-03   -1.5281    
  13  norm          .10000E-03    4.9497        .17271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.435        19.573        .12406E-03   -1.5062    
  15  norm          2.0017        3.2200        .17644E-03   -1.5425    
  16  Prefactor     14.968        23.937        .10353E-03   -1.4934    
  17  Prefactor     10.024        33.732        .12659E-03   -1.5075    
  18  norm          .17694        45.068        .31912E-02   -1.5624    
  19  Prefactor     3.2242        11.967        .22419E-03   -1.5349    
  20  Prefactor     .10000E-03    2.7337        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .64835        1.1837        .11374E-03   -1.5547    
  22  Prefactor     .10000E-03    3.5929        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    118.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99399        .20193        .22803E-03   -.93232    
  26  Prefactor     .95260        .22584        .26954E-03   -.94327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87162e-09
Minuit parameter uncertainties:
  1  52.821
  2  4.45536e-06
  3  1.95648
  4  3.79965e-06
  5  13.6357
  6  3.61446e-06
  7  4.08888
  8  2.80733e-05
  9  4.85976
  10  14.5426
  11  0.000309708
  12  3.48858
  13  5.92267e-07
  14  19.585
  15  3.22026
  16  23.952
  17  33.7959
  18  5.65042
  19  11.9762
  20  2.51013e-05
  21  1.18373
  22  6.39119e-06
  23  0.000354437
  24  2.97997e-05
  25  0.202083
  26  0.226063
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.923e-07  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.526e-01  2.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.940e-01  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 2.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387897/likelihoodResults_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6321.45273171
delta logL = -0.000958420457209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6321.45177328
delta logL = 9.75433067651e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9227       1.0000          .0000       5.0000    
     3 'Normalizat'    .99399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95260       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   6321.452     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      223 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    558.52        .17288E-02** at limit **
   2  alpha         1.7072        3.3499        .50000       -.47703E-07
   3  Normalizat    .99398        .48633E-01    .22803E-03    .82012E-04
   4  Prefactor     .95260        .56691E-01    .26954E-03    .70059E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70724
  Normalizat = 0.993985
  Prefactor  = 0.952603
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.452     FROM HESSE     STATUS=OK            27 CALLS      250 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4657        .34575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7072        3.5931        .20000       -.32267    
   3  Normalizat    .99398        .19098        .91213E-05   -.93232    
   4  Prefactor     .95260        .22257        .10781E-04   -.94326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18644e-11
Minuit parameter uncertainties:
  1  2.0721e-05
  2  320.928
  3  0.19111
  4  0.22278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387897': 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) = 6321.45177307
delta logL = 2.25683834287e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  2.072e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.707e+00  3.209e+02  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.526e-01  2.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.940e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 215.792 37.645

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/387897/cmap_HighResolution_383184001_383443201_4FGL_J1423.1+3738_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', job_status='DONE', photon_flux_upper_limit='2.92e-08', time_completed='2021-09-09 12:09:34.998974', job_id='387897', GAL2='0.95', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631214575.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='555' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:09:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 387897: <4FGL_J1423.1+3738_daily_bin555> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin555> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:56:48 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:56:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:56:49 2021
Terminated at Thu Sep  9 12:09:35 2021
Results reported at Thu Sep  9 12:09:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin555 215.792 37.6452 383184001 383443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1423.1+3738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

