/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 73 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 = 7529
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1308
RA = 215.792, Dec = 37.6452
tmin = 578361601, tmax = 578620801
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='392462', job_status='RUN', time_executed='2021-09-09 12:14:24.004649', time_epoch_executed='1631214864.0' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392462

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392462/ft1_4FGL_J1423.1+3738_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392462/ft1_4FGL_J1423.1+3738_daily_bin1308.fits outfile=/scratch/kocevski/392462/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1308.fits ra=215.792 dec=37.6452 rad=12.0 tmin=578361601.0 tmax=578620801.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.98
user 3.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392462/ft1_filtered_4FGL_J1423.1+3738_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/392462/ltcube_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.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/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits
.....................!
real 12.42
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392462/ft1_filtered_4FGL_J1423.1+3738_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/392462/ltcube_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.fits outfile=/scratch/kocevski/392462/expmap_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.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/392462/ltcube_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.fits
.....................!
real 191.07
user 184.84
sys 4.65

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/392462/ft1_filtered_4FGL_J1423.1+3738_daily_bin1308.fits scfile=/scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits outfile=/scratch/kocevski/392462/cmap_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.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 1.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392462/ft1_filtered_4FGL_J1423.1+3738_daily_bin1308.fits scfile=/scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits outfile=/scratch/kocevski/392462/cmap_HighResolution_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.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.59
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/392462/ft1_filtered_4FGL_J1423.1+3738_daily_bin1308.fits', '/scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits', expMap='/scratch/kocevski/392462/expmap_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.fits', expCube='/scratch/kocevski/392462/ltcube_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/392462/Model_4FGL_J1423.1+3738_daily_bin1308.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/392462/ft1_filtered_4FGL_J1423.1+3738_daily_bin1308.fits
Spacecraft file(s): /scratch/kocevski/392462/ft2_4FGL_J1423.1+3738_daily_bin1308.fits
Exposure map: /scratch/kocevski/392462/expmap_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.fits
Exposure cube: /scratch/kocevski/392462/ltcube_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/392462/Model_4FGL_J1423.1+3738_daily_bin1308.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) = 6695.19819511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.249       1.0000         .10000E-03   10000.    
     3 'norm      '    19.450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9303       1.0000         .10000E-03   10000.    
     5 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.096       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.8252       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.089       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.3750       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8148       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .69266       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3680       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9419       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1367       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83555       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=   6695.157     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2620 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.688       -.62201E-04** at limit **
   2  Prefactor     31.248        40.288       -.20512E-05    .14950E-04
   3  norm          19.450        2.7551        .41088E-07    .34505E-03
   4  Prefactor     1.9304        5.1070       -.12889E-05   -.96937E-03
   5  norm          .10000E-03    12.562        .32579E-06** at limit **
   6  Prefactor     .10000E-03    5.4607        .35331E-05** at limit **
   7  Prefactor     .10000E-03    1.8576        .87234E-07** at limit **
   8  Prefactor     .10000E-03    19.675       -.19050E-04** at limit **
   9  norm          .10000E-03    1.3419       -.34210E-07** at limit **
  10  Prefactor     .10000E-03    12.253        .38401E-05** at limit **
  11  Prefactor     .10000E-03    5.9502       -.47969E-05** at limit **
  12  Prefactor     13.096        4.4394        .48468E-06   -.12608E-03
  13  norm          .10000E-03    4.9234       -.88436E-06** at limit **
  14  Prefactor     .10000E-03    6.4214        .15270E-05** at limit **
  15  norm          6.8252        6.1874       -.23968E-06   -.17704E-03
  16  Prefactor     28.088        31.636       -.72579E-06    .23964E-05
  17  Prefactor     .10000E-03    32.778        .42339E-04** at limit **
  18  norm          9.3754        8.3432       -.11712E-07    .31386E-05
  19  Prefactor     7.8169        10.174       -.18521E-06   -.10778E-03
  20  Prefactor     .10000E-03    2.1628        .21748E-07** at limit **
  21  norm          .69288        1.0597       -.16455E-06   -.15361E-02
  22  Prefactor     6.3682        7.0856       -.19597E-06   -.11100E-03
  23  Prefactor     .10000E-03    37.636        .22460E-04** at limit **
  24  Prefactor     4.9421        10.502       -.16538E-06   -.69122E-04
  25  Normalizat    1.1366        .17140        .53694E-06    .15854E-04
  26  Prefactor     .83556        .18679       -.29562E-06   -.10606E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.2476
  norm       = 19.4498
  Prefactor  = 1.93043
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0965
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.82523
  Prefactor  = 28.0882
  Prefactor  = 0.0001
  norm       = 9.37539
  Prefactor  = 7.81691
  Prefactor  = 0.0001
  norm       = 0.692882
  Prefactor  = 6.36815
  Prefactor  = 0.0001
  Prefactor  = 4.94214
  Normalizat = 1.13662
  Prefactor  = 0.835561
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.157     FROM HESSE     STATUS=OK           454 CALLS     3074 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.248        40.326        .71677E-04   -1.4589    
   3  norm          19.450        2.7583        .49154E-04   -1.4826    
   4  Prefactor     1.9304        5.1415        .28070E-03   -1.5430    
   5  norm          .10000E-03    12.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8712        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3554        .92547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.096        4.4473        .96249E-04   -1.4984    
  13  norm          .10000E-03    4.9280        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.8252        6.1825        .15358E-03   -1.5185    
  16  Prefactor     28.088        31.629        .75592E-04   -1.4648    
  17  Prefactor     .10000E-03    32.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.3754        8.3416        .13089E-03   -1.5095    
  19  Prefactor     7.8169        10.162        .14344E-03   -1.5149    
  20  Prefactor     .10000E-03    2.1672        .11747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .69288        .92054        .99870E-03   -1.5541    
  22  Prefactor     6.3682        7.0803        .15906E-03   -1.5203    
  23  Prefactor     .10000E-03    37.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9421        10.488        .18092E-03   -1.5263    
  25  Normalizat    1.1366        .20115        .22812E-03   -.88585    
  26  Prefactor     .83556        .21914        .29862E-03   -.98431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66495e-09
Minuit parameter uncertainties:
  1  6.03618e-05
  2  40.3608
  3  2.75827
  4  5.14269
  5  4.34507e-06
  6  1.5889e-06
  7  1.95903e-06
  8  7.20043e-05
  9  1.44038e-06
  10  2.67034e-05
  11  3.12436e-06
  12  4.44739
  13  1.66857e-06
  14  4.10795e-07
  15  6.18305
  16  31.6481
  17  0.000129704
  18  8.34266
  19  10.1638
  20  9.0449e-07
  21  0.920555
  22  7.08127
  23  2.19054e-05
  24  10.4921
  25  0.201288
  26  0.219371
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.669e-06  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:  8.356e-01  2.194e-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:  1.137e+00  2.013e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392462/likelihoodResults_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.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) = 6695.15832934
delta logL = -0.000957349815508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6695.15737199
delta logL = 2.64753907686e-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.9302       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83556       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   6695.157     FROM MIGRAD    STATUS=FAILED        67 CALLS      222 TOTAL
                     EDM=   .27E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10033E-03   10000.0         .0000    ** at limit **
   2  alpha         2.5699        1.6184         .0000       -.64849E-05
   3  Normalizat    1.1366        8.5603         .0000       -.11394E-03
   4  Prefactor     .83556        8.8998         .0000       -.92250E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6695.157     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      399 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10033E-03   10000.0        .36866E-03** at limit **
   2  alpha         2.5699        1.6184        .10686E-05   -.64849E-05
   3  Normalizat    1.1366        8.5603        .76110E-05   -.11394E-03
   4  Prefactor     .83556        8.8998        .38165E-05   -.92250E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6695.157     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      446 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2867        .11291E-04** at limit **
   2  alpha         2.5698        3.5753       -.36209E-04   -.64613E-05
   3  Normalizat    1.1366        .18863       -.48044E-06   -.40537E-03
   4  Prefactor     .83556        .21586        .36152E-06   -.22978E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.56978
  Normalizat = 1.13661
  Prefactor  = 0.835562
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.157     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2798        .35994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5698        3.5678        .50000        .27914E-01
   3  Normalizat    1.1366        .18890        .91249E-05   -.88585    
   4  Prefactor     .83556        .21609        .11945E-04   -.98430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0618e-10
Minuit parameter uncertainties:
  1  4.41876e-05
  2  2.50007
  3  0.189013
  4  0.216308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392462': 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) = 6695.15737131
delta logL = 6.87798092258e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  4.419e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.570e+00  2.500e+00  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:  8.356e-01  2.163e-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:  1.137e+00  1.890e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/392462/cmap_HighResolution_578361601_578620801_4FGL_J1423.1+3738_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='2.81e-08', time_completed='2021-09-09 12:26:58.200024', job_id='392462', GAL2='0.84', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631215618.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='6.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1308' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 392462: <4FGL_J1423.1+3738_daily_bin1308> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1308> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 12:11:29 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:11:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 12:11:30 2021
Terminated at Thu Sep  9 12:26:59 2021
Results reported at Thu Sep  9 12:26:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1308 215.792 37.6452 578361601 578620801 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 :                                   732.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

