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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1229
RA = 215.792, Dec = 37.6452
tmin = 557884801, tmax = 558144001
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='392351', job_status='RUN', time_executed='2021-09-09 12:16:53.094663', time_epoch_executed='1631215013.09' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392351

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392351/ft1_4FGL_J1423.1+3738_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392351/ft1_4FGL_J1423.1+3738_daily_bin1229.fits outfile=/scratch/kocevski/392351/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1229.fits ra=215.792 dec=37.6452 rad=12.0 tmin=557884801.0 tmax=558144001.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.36
user 3.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.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/392351/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.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.62
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/392351/ltcube_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.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/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits
.....................!
real 11.94
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/392351/ltcube_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.fits outfile=/scratch/kocevski/392351/expmap_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.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/392351/ltcube_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.fits
.....................!
real 190.76
user 184.88
sys 3.93

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/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.fits scfile=/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits outfile=/scratch/kocevski/392351/cmap_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.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 4.51
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.fits scfile=/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits outfile=/scratch/kocevski/392351/cmap_HighResolution_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.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 2.81
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.fits', '/scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits', expMap='/scratch/kocevski/392351/expmap_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.fits', expCube='/scratch/kocevski/392351/ltcube_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/392351/Model_4FGL_J1423.1+3738_daily_bin1229.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/392351/ft1_filtered_4FGL_J1423.1+3738_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/392351/ft2_4FGL_J1423.1+3738_daily_bin1229.fits
Exposure map: /scratch/kocevski/392351/expmap_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.fits
Exposure cube: /scratch/kocevski/392351/ltcube_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/392351/Model_4FGL_J1423.1+3738_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 204.954232512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 203.500321774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6544       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.146       1.0000         .10000E-03   10000.    
     5 'norm      '    .77366E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28669E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9961       1.0000         .10000E-03   10000.    
     9 'norm      '    .12401E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51826E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10383E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.541       1.0000         .10000E-03   10000.    
    13 'norm      '    .21220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79537E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .26731E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .60068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.407       1.0000         .10000E-03   10000.    
    18 'norm      '    .45692E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.117       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12278E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    88.101       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .37382E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .20675E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .33872       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   203.4866     FROM MIGRAD    STATUS=CONVERGED    304 CALLS      686 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39432E-01    7673.1        .46249E-02   -.14817E-02
   2  Prefactor     1.9450        8901.6        .36236E-02    .57943E-02
   3  norm          6.7947        1.0027         .0000         .0000    
   4  Prefactor     19.833        1.0181       -.82192E-05   -.71898E-02
   5  norm          .11755E-03    .22103        .14318E-03** at limit **
   6  Prefactor     .10001E-03    .21001        .57980E-04** at limit **
   7  Prefactor     1.3385        1.0961         .0000         .0000    
   8  Prefactor     2.9961        1.0146         .0000         .0000    
   9  norm          .10000E-03    .20571        .71030E-05** at limit **
  10  Prefactor     .10000E-03    .22926        .52653E-05** at limit **
  11  Prefactor     .10048E-03    .20588        .22956E-04** at limit **
  12  Prefactor     29.446        .96644       -.41230E-05    .51885E-02
  13  norm          .10000E-03    .25166        .16769E-04** at limit **
  14  Prefactor     .10029E-03    .22152       -.11681E-03** at limit **
  15  norm          .10000E-03    .20957       -.31365E-04** at limit **
  16  Prefactor     .11658E-03    .27729        .43436E-04** at limit **
  17  Prefactor     77.834        1.2931        .11985E-03    .82721E-02
  18  norm          .10000E-03    .23338       -.12121E-04** at limit **
  19  Prefactor     29.586        .90547       -.60775E-04    .43694E-03
  20  Prefactor     .10000E-03    .20571        .80056E-05** at limit **
  21  norm          .10000E-03    .20571       -.31961E-05** at limit **
  22  Prefactor     .10138E-03    .20631        .25565E-04** at limit **
  23  Prefactor     80.219        .95461        .13861E-04    .23894E-01
  24  Prefactor     .10060E-03    .21198        .14285E-04** at limit **
  25  Normalizat    .10000E-01    .25786       -.59359E-03** at limit **
  26  Prefactor     .33454        .65630       -.15177E-04   -.13469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0394322
  Prefactor  = 1.94498
  norm       = 6.79466
  Prefactor  = 19.8326
  norm       = 0.000117553
  Prefactor  = 0.000100011
  Prefactor  = 1.33853
  Prefactor  = 2.99605
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100479
  Prefactor  = 29.4462
  norm       = 0.000100003
  Prefactor  = 0.00010029
  norm       = 0.000100001
  Prefactor  = 0.000116584
  Prefactor  = 77.8343
  norm       = 0.0001
  Prefactor  = 29.5863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101384
  Prefactor  = 80.2186
  Prefactor  = 0.000100602
  Normalizat = 0.01
  Prefactor  = 0.334543
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   203.4866     FROM HESSE     STATUS=FAILED        15 CALLS      701 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39432E-01    7673.1        .46249E-02   -1.5748    
   2  Prefactor     1.9450        8901.6        .36236E-02   -1.5429    
   3  norm          515.00        508.17         .0000       -1.5187    
   4  Prefactor     19.833        1.0181       -.82192E-05   -1.4817    
   5  norm          .11755E-03    .22103        .14318E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    .21001        .57980E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3385        1.0961         .0000       -1.5477    
   8  Prefactor     2.9961        1.0146         .0000       -1.5362    
   9  norm          .10000E-03    .20571        .71030E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .22926        .52653E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10048E-03    .20588        .22956E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.446        .96644       -.41230E-05   -1.4622    
  13  norm          .10000E-03    .25166        .16769E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10029E-03    .22152       -.11681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20957       -.31365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11658E-03    .27729        .43436E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.834        1.2931        .11985E-03   -1.3941    
  18  norm          .10000E-03    .23338       -.12121E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.586        .90547       -.60775E-04   -1.4620    
  20  Prefactor     .10000E-03    .20571        .80056E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20571       -.31961E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10138E-03    .20631        .25565E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     80.219        .95461        .13861E-04   -1.3914    
  24  Prefactor     .10060E-03    .21198        .14285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25786       -.59359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .33454        .65630       -.15177E-04   -1.2029    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.22739e-09
Minuit parameter uncertainties:
  1  32.4487
  2  305.987
  3  1.00273
  4  1.01809
  5  0.00393936
  6  9.82845e-05
  7  1.0961
  8  1.01465
  9  2.12977e-06
  10  2.32019e-05
  11  0.00062837
  12  0.966443
  13  5.39687e-05
  14  0.000507211
  15  2.08631e-05
  16  0.00428889
  17  1.2931
  18  3.10162e-06
  19  0.905472
  20  1.59419e-05
  21  2.51008e-06
  22  0.00106879
  23  0.954614
  24  0.000714252
  25  7.03875e-06
  26  0.671818
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 203.486631558

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.397e-05  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:  3.345e-01  6.718e-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.000e-02  7.039e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 5.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392351/likelihoodResults_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.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) = 203.486689599
delta logL = -5.80406119752e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 203.486633862
delta logL = -2.30413215263e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15069E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9191       1.0000          .0000       5.0000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33455       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=   203.4866     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      310 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7681.0        .80346E-02** at limit **
   2  alpha         1.4134        2.6810        .16763        .21109E-08
   3  Normalizat    .10000E-01    .66696        .94688E-02** at limit **
   4  Prefactor     .33454        .89518E-01    .17106E-03    .26350E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.41343
  Normalizat = 0.01
  Prefactor  = 0.334544
 **********
 **   18 **HESSE 
 **********

 FCN=   203.4866     FROM HESSE     STATUS=OK            23 CALLS      333 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    95.075        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4134        2.9312        .67051E-02   -.44962    
   3  Normalizat    .10000E-01    6.8120        .18938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33454        .21991        .34213E-04   -1.2029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4218e-11
Minuit parameter uncertainties:
  1  6.48315e-05
  2  1274.21
  3  2.87396e-05
  4  0.220467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392351': 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) = 203.486631476
delta logL = 8.15169585167e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  6.483e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.413e+00  1.274e+03  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:  3.345e-01  2.205e-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.000e-02  2.874e-05  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/392351/cmap_HighResolution_557884801_558144001_4FGL_J1423.1+3738_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-04', job_status='DONE', photon_flux_upper_limit='5.36e-07', time_completed='2021-09-09 12:23:35.376934', job_id='392351', GAL2='0.33', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631215415.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.33', dlogl='8.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1229' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:23:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 392351: <4FGL_J1423.1+3738_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1229> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 12:11:21 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:11:22 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:22 2021
Terminated at Thu Sep  9 12:23:36 2021
Results reported at Thu Sep  9 12:23:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1229 215.792 37.6452 557884801 558144001 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 :                                   323.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             163.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            735 sec.

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

