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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin466
RA = 215.792, Dec = 37.6452
tmin = 360115201, tmax = 360374401
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='387756', job_status='RUN', time_executed='2021-09-09 11:56:52.944690', time_epoch_executed='1631213812.94' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387756/ft1_4FGL_J1423.1+3738_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387756/ft2_4FGL_J1423.1+3738_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387756/ft1_4FGL_J1423.1+3738_daily_bin466.fits outfile=/scratch/kocevski/387756/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin466.fits ra=215.792 dec=37.6452 rad=12.0 tmin=360115201.0 tmax=360374401.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.47
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387756/ft1_filtered_4FGL_J1423.1+3738_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/387756/ft2_4FGL_J1423.1+3738_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/387756/ltcube_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.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/387756/ft2_4FGL_J1423.1+3738_daily_bin466.fits
.....................!
real 11.92
user 11.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387756/ft1_filtered_4FGL_J1423.1+3738_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/387756/ft2_4FGL_J1423.1+3738_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/387756/ltcube_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.fits outfile=/scratch/kocevski/387756/expmap_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.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/387756/ltcube_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.fits
.....................!
real 190.60
user 184.87
sys 5.30

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/387756/ft1_filtered_4FGL_J1423.1+3738_daily_bin466.fits scfile=/scratch/kocevski/387756/ft2_4FGL_J1423.1+3738_daily_bin466.fits outfile=/scratch/kocevski/387756/cmap_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387756/ft1_filtered_4FGL_J1423.1+3738_daily_bin466.fits scfile=/scratch/kocevski/387756/ft2_4FGL_J1423.1+3738_daily_bin466.fits outfile=/scratch/kocevski/387756/cmap_HighResolution_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0390       1.0000         .10000E-03   10000.    
     3 'norm      '    25.281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73326       1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6952       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.977       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8807       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4150       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 '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98624       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76387       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6437.833     FROM MIGRAD    STATUS=FAILED      1050 CALLS     3037 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.388        .18142E-02** at limit **
   2  Prefactor     9.0820        102.79        .13331E-03   -.52191E-04
   3  norm          25.282        3.1063        .47558E-04   -.77929E-04
   4  Prefactor     .73819        5.8300        .26405E-02    .27731E-03
   5  norm          .10000E-03    5.6852        .18142E-02** at limit **
   6  Prefactor     .88763        156.82        .60613E-02    .75568E-03
   7  Prefactor     .10000E-03    2.3711        .12014E-02** at limit **
   8  Prefactor     .10000E-03    24.455        .18142E-02** at limit **
   9  norm          30.343        6.7838        .72738E-04   -.29762E-03
  10  Prefactor     .10000E-03    26.419        .36285E-03** at limit **
  11  Prefactor     2.6852        23.730        .24816E-03   -.15301E-03
  12  Prefactor     .10000E-03    1.1250        .82728E-03** at limit **
  13  norm          .10000E-03    11.671        .18142E-02** at limit **
  14  Prefactor     36.983        23.674        .65909E-04   -.94733E-04
  15  norm          7.8841        6.2790        .14283E-03   -.82937E-04
  16  Prefactor     22.624        24.287        .84223E-04   -.46111E-04
  17  Prefactor     .10000E-03    16.804        .18142E-02** at limit **
  18  norm          10.506        8.0630        .12361E-03    .36788E-06
  19  Prefactor     .10000E-03    6.0420        .18142E-02** at limit **
  20  Prefactor     .10000E-03    1.9173        .10839E-02** at limit **
  21  norm          2.4155        1.4605        .72327E-04   -.10610E-03
  22  Prefactor     .10000E-03    2.9836        .13520E-02** at limit **
  23  Prefactor     .10000E-03    26.897        .18142E-02** at limit **
  24  Prefactor     .10000E-03    13.363        .18142E-02** at limit **
  25  Normalizat    .98560        .20577        .23114E-03   -.21416E-03
  26  Prefactor     .76454        .21986        .29697E-03   -.68104E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6437.833     FROM SIMPLEX   STATUS=UNCHANGED   1413 CALLS     4450 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.388        .54948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0820        102.79        .15036E-05   -1.5105    
   3  norm          25.282        3.1063        .14318E-05   -1.4702    
   4  Prefactor     .73819        5.8300        .15076E-05   -1.5536    
   5  norm          .10000E-03    5.6852        .23369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .88763        156.82        .15438E-05   -1.5520    
   7  Prefactor     .10000E-03    2.3711        .13068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.455        .46930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.343        6.7838        .14211E-05   -1.4606    
  10  Prefactor     .10000E-03    26.419        .40134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6852        23.730        .14954E-05   -1.5380    
  12  Prefactor     .10000E-03    1.1250        .71978E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.671        .25433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.983        23.674        .14107E-05   -1.4491    
  15  norm          7.8841        6.2790        .14744E-05   -1.5146    
  16  Prefactor     22.624        24.287        .14382E-05   -1.4756    
  17  Prefactor     .10000E-03    16.804        .27530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.506        8.0630        .14638E-05   -1.5060    
  19  Prefactor     .10000E-03    6.0420        .18515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9173        .17331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4155        1.4605        .14985E-05   -1.5397    
  22  Prefactor     .10000E-03    2.9836        .11921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.897        .50020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.363        .10120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98560        .20577        .91021E-06   -.93515    
  26  Prefactor     .76454        .21986        .98334E-06   -1.0105    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6437.833     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     4887 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.388        .36285E-03** at limit **
   2  Prefactor     9.0825        102.71        .53324E-05    .17056E-06
   3  norm          25.282        3.1058        .19023E-05    .23905E-05
   4  Prefactor     .73816        5.7812        .10562E-03   -.11840E-05
   5  norm          .10000E-03    5.6855        .36285E-03** at limit **
   6  Prefactor     .88751        151.92        .12123E-02   -.27759E-05
   7  Prefactor     .10000E-03    2.3715        .24028E-03** at limit **
   8  Prefactor     .10000E-03    24.467        .36285E-03** at limit **
   9  norm          30.343        6.7612        .14548E-04    .16255E-04
  10  Prefactor     .10000E-03    26.418        .72569E-04** at limit **
  11  Prefactor     2.6854        22.907        .99262E-05    .38941E-05
  12  Prefactor     .10000E-03    1.1250        .16546E-03** at limit **
  13  norm          .10000E-03    11.673        .36285E-03** at limit **
  14  Prefactor     36.983        23.665        .13182E-04    .68997E-06
  15  norm          7.8841        6.2771        .57133E-05    .15919E-05
  16  Prefactor     22.624        24.286        .16845E-04    .13498E-06
  17  Prefactor     .10000E-03    16.807        .36285E-03** at limit **
  18  norm          10.506        8.0629        .49445E-05    .18394E-06
  19  Prefactor     .10000E-03    6.0431        .36285E-03** at limit **
  20  Prefactor     .10000E-03    1.9173        .21678E-03** at limit **
  21  norm          2.4155        1.4601        .28931E-05    .78592E-06
  22  Prefactor     .10000E-03    2.9837        .27039E-03** at limit **
  23  Prefactor     .10000E-03    26.898        .36285E-03** at limit **
  24  Prefactor     .10000E-03    13.364        .36285E-03** at limit **
  25  Normalizat    .98560        .20547        .46229E-04    .10624E-04
  26  Prefactor     .76454        .22007        .11879E-04    .72736E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.08246
  norm       = 25.2821
  Prefactor  = 0.738164
  norm       = 0.0001
  Prefactor  = 0.887505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.3425
  Prefactor  = 0.0001
  Prefactor  = 2.68537
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9833
  norm       = 7.88407
  Prefactor  = 22.6236
  Prefactor  = 0.0001
  norm       = 10.5059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.41551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985599
  Prefactor  = 0.764541
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.833     FROM HESSE     STATUS=OK           432 CALLS     5319 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.388        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0825        102.71        .53324E-05   -1.5105    
   3  norm          25.282        3.1057        .38047E-06   -1.4702    
   4  Prefactor     .73816        5.7795        .42248E-05   -1.5536    
   5  norm          .10000E-03    5.6856        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .88751        150.18        .48490E-04   -1.5520    
   7  Prefactor     .10000E-03    2.3715        .48056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.468        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.343        6.7560        .29095E-05   -1.4606    
  10  Prefactor     .10000E-03    26.419        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6854        22.722        .19852E-05   -1.5380    
  12  Prefactor     .10000E-03    1.1250        .33091E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.673        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.983        23.665        .26363E-05   -1.4491    
  15  norm          7.8841        6.2776        .11427E-05   -1.5146    
  16  Prefactor     22.624        24.288        .33689E-05   -1.4756    
  17  Prefactor     .10000E-03    16.807        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.506        8.0629        .49445E-05   -1.5060    
  19  Prefactor     .10000E-03    6.0432        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9173        .43356E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4155        1.4600        .57862E-06   -1.5397    
  22  Prefactor     .10000E-03    2.9838        .54078E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    26.898        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.364        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98560        .20551        .92457E-05   -.93514    
  26  Prefactor     .76454        .22025        .23758E-05   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54319e-12
Minuit parameter uncertainties:
  1  3.51349e-07
  2  61.2184
  3  3.10575
  4  4.13123
  5  2.89327e-07
  6  23.1478
  7  4.76414e-08
  8  2.26852e-06
  9  6.7562
  10  3.01892e-06
  11  15.6304
  12  3.37404e-08
  13  1.4214e-06
  14  23.6713
  15  6.27811
  16  24.2985
  17  4.68612e-07
  18  8.06375
  19  2.35758e-07
  20  4.09098e-08
  21  1.46007
  22  4.94388e-08
  23  1.63216e-07
  24  2.17099e-07
  25  0.205679
  26  0.220499
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.421e-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:  7.645e-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:  9.856e-01  2.057e-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: 4.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387756/likelihoodResults_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.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) = 6437.83347173
delta logL = -0.000408208258705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6437.83306353
delta logL = -9.19953890843e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9371       1.0000          .0000       5.0000    
     3 'Normalizat'    .98562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76453       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=   6437.833     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      245 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    370.76        .18142E-02** at limit **
   2  alpha         2.0632        3.3426        .50000        .31537E-07
   3  Normalizat    .98560        .22619E-01    .23115E-03   -.16004E-03
   4  Prefactor     .76454        .26009E-01    .29697E-03   -.12392E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.06324
  Normalizat = 0.985598
  Prefactor  = 0.76454
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.833     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1428.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0632        3.5148        .50000       -.17561    
   3  Normalizat    .98560        .52841E-01    .92458E-05   -.93514    
   4  Prefactor     .76454        .60758E-01    .11879E-04   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5284e-11
Minuit parameter uncertainties:
  1  0.000724867
  2  2261.93
  3  0.052844
  4  0.0607635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387756': 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): 102
logL (Free Index) = 6437.83306341
delta logL = 1.11062036012e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  7.249e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.063e+00  2.262e+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:  7.645e-01  6.076e-02  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.856e-01  5.284e-02  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/387756/cmap_HighResolution_360115201_360374401_4FGL_J1423.1+3738_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-05', job_status='DONE', photon_flux_upper_limit='4.14e-08', time_completed='2021-09-09 12:11:53.963274', job_id='387756', GAL2='0.76', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631214713.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='466' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 387756: <4FGL_J1423.1+3738_daily_bin466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin466 215.792 37.6452 360115201 360374401 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 :                                   894.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

