/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin820
RA = 215.792, Dec = 37.6452
tmin = 451872001, tmax = 452131201
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='389342', job_status='RUN', time_executed='2021-09-09 12:01:50.044221', time_epoch_executed='1631214110.04' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389342/ft1_4FGL_J1423.1+3738_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389342/ft2_4FGL_J1423.1+3738_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389342/ft1_4FGL_J1423.1+3738_daily_bin820.fits outfile=/scratch/kocevski/389342/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin820.fits ra=215.792 dec=37.6452 rad=12.0 tmin=451872001.0 tmax=452131201.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.39
user 3.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/389342/ft2_4FGL_J1423.1+3738_daily_bin820.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/389342/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin820.fits evtable="EVENTS" outfile="/scratch/kocevski/389342/ft1_filtered_4FGL_J1423.1+3738_daily_bin820.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389342/ft1_filtered_4FGL_J1423.1+3738_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/389342/ft2_4FGL_J1423.1+3738_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/389342/ltcube_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.fits outfile=/scratch/kocevski/389342/expmap_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.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/389342/ltcube_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.fits
.....................!
real 189.80
user 185.14
sys 4.32

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/389342/ft1_filtered_4FGL_J1423.1+3738_daily_bin820.fits scfile=/scratch/kocevski/389342/ft2_4FGL_J1423.1+3738_daily_bin820.fits outfile=/scratch/kocevski/389342/cmap_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.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.52
user 0.36
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389342/ft1_filtered_4FGL_J1423.1+3738_daily_bin820.fits scfile=/scratch/kocevski/389342/ft2_4FGL_J1423.1+3738_daily_bin820.fits outfile=/scratch/kocevski/389342/cmap_HighResolution_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.849       1.0000         .10000E-03   10000.    
     3 'norm      '    8.4493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7867       1.0000         .10000E-03   10000.    
     5 'norm      '    .10122E-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 '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44563       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.499       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6624       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1216       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.497       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78720       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94781       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=   5366.054     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3808 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.883       -.43306E-06** at limit **
   2  Prefactor     53.850        60.686        .18967E-05    .82582E-05
   3  norm          8.4494        2.2485       -.64019E-08   -.95703E-04
   4  Prefactor     1.7870        2.8986       -.40441E-06   -.44909E-03
   5  norm          .10000E-03    19.161       -.56183E-05** at limit **
   6  Prefactor     .10000E-03    8.9923       -.10422E-04** at limit **
   7  Prefactor     .10000E-03    1.6647        .53229E-07** at limit **
   8  Prefactor     .10000E-03    11.895        .88014E-05** at limit **
   9  norm          .10000E-03    1.8394       -.91396E-07** at limit **
  10  Prefactor     .10000E-03    7.5725        .72386E-05** at limit **
  11  Prefactor     25.272        14.645       -.39285E-06   -.21763E-03
  12  Prefactor     .44183        2.8999       -.10986E-05   -.43240E-03
  13  norm          .10000E-03    5.5087        .71591E-06** at limit **
  14  Prefactor     43.501        27.538        .84671E-06   -.40142E-04
  15  norm          .10000E-03    1.3295       -.75498E-09** at limit **
  16  Prefactor     10.097        19.213       -.10422E-05   -.28022E-03
  17  Prefactor     .10000E-03    32.646        .22379E-04** at limit **
  18  norm          16.494        9.6081        .33261E-07    .42180E-04
  19  Prefactor     .10000E-03    6.2370       -.23436E-05** at limit **
  20  Prefactor     5.6627        5.0207        .47012E-07   -.27742E-05
  21  norm          2.1217        1.3020       -.18173E-07    .38231E-04
  22  Prefactor     21.492        13.861        .25895E-06    .10487E-03
  23  Prefactor     .10000E-03    57.397       -.14115E-04** at limit **
  24  Prefactor     .10000E-03    23.580       -.93176E-05** at limit **
  25  Normalizat    .78709        .17098       -.20029E-06    .70765E-04
  26  Prefactor     .94785        .18736        .49551E-06    .74011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.8503
  norm       = 8.44936
  Prefactor  = 1.78696
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2721
  Prefactor  = 0.441825
  norm       = 0.0001
  Prefactor  = 43.5012
  norm       = 0.0001
  Prefactor  = 10.0974
  Prefactor  = 0.0001
  norm       = 16.4941
  Prefactor  = 0.0001
  Prefactor  = 5.66269
  norm       = 2.12165
  Prefactor  = 21.4922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.787091
  Prefactor  = 0.94785
 **********
 **   18 **HESSE 
 **********

 FCN=   5366.054     FROM HESSE     STATUS=OK           454 CALLS     4262 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.850        60.941        .54659E-04   -1.4239    
   3  norm          8.4494        2.2557        .54023E-04   -1.5127    
   4  Prefactor     1.7870        2.8799        .15332E-03   -1.5441    
   5  norm          .10000E-03    19.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6753        .92298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8732        .96975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.272        14.652        .79687E-04   -1.4702    
  12  Prefactor     .44183        5.5185        .23034E-02   -1.5575    
  13  norm          .10000E-03    5.5141        .16790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.501        27.613        .60785E-04   -1.4388    
  15  norm          .10000E-03    1.3316        .82483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.097        19.275        .63050E-03   -1.5072    
  17  Prefactor     .10000E-03    32.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.494        9.6094        .98621E-04   -1.4895    
  19  Prefactor     .10000E-03    6.2622        .17862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6627        5.0209        .14728E-03   -1.5232    
  21  norm          2.1217        1.3001        .62018E-04   -1.5417    
  22  Prefactor     21.492        13.848        .86388E-04   -1.4780    
  23  Prefactor     .10000E-03    57.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78709        .20129        .23285E-03   -1.0055    
  26  Prefactor     .94785        .22152        .24951E-03   -.94489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79361e-10
Minuit parameter uncertainties:
  1  2.77705e-06
  2  61.0112
  3  2.25571
  4  2.88015
  5  4.47615e-05
  6  1.29837e-05
  7  1.18822e-06
  8  2.12947e-05
  9  2.25519e-06
  10  3.49709e-06
  11  14.6545
  12  3.12296
  13  1.62862e-07
  14  27.6212
  15  1.22768e-07
  16  19.2869
  17  2.16659e-05
  18  9.61029
  19  4.08757e-07
  20  5.02122
  21  1.30016
  22  13.8496
  23  3.81214e-05
  24  2.83869e-06
  25  0.201479
  26  0.221736
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.478e-01  2.217e-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:  7.871e-01  2.015e-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: 3.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389342/likelihoodResults_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.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) = 5366.05523711
delta logL = -0.000858992440953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5366.0543781
delta logL = 2.28719727602e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9187       1.0000          .0000       5.0000    
     3 'Normalizat'    .78710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94784       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=   5366.054     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1082.7        .16842E-02** at limit **
   2  alpha         1.6814        3.2079        .17061        .11994E-07
   3  Normalizat    .78709        .84032E-01    .23285E-03    .20848E-04
   4  Prefactor     .94785        .98587E-01    .24951E-03    .22554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68135
  Normalizat = 0.787091
  Prefactor  = 0.94785
 **********
 **   18 **HESSE 
 **********

 FCN=   5366.054     FROM HESSE     STATUS=OK            27 CALLS      260 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8497        .33684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6814        3.4755        .68246E-01   -.33361    
   3  Normalizat    .78709        .18596        .93139E-05   -1.0055    
   4  Prefactor     .94785        .21815        .99804E-05   -.94489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28233e-11
Minuit parameter uncertainties:
  1  6.54322e-05
  2  280.098
  3  0.186111
  4  0.218351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389342': 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) = 5366.05437773
delta logL = 3.95017195842e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.478e-01  2.184e-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:  7.871e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/389342/cmap_HighResolution_451872001_452131201_4FGL_J1423.1+3738_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='3.02e-08', time_completed='2021-09-09 12:13:45.614121', job_id='389342', GAL2='0.95', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631214825.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='820' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:13:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 389342: <4FGL_J1423.1+3738_daily_bin820> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin820> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 12:01:29 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:01: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:01:30 2021
Terminated at Thu Sep  9 12:13:46 2021
Results reported at Thu Sep  9 12:13:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin820 215.792 37.6452 451872001 452131201 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 :                                   708.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

