/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 235 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin93
RA = 215.792, Dec = 37.6452
tmin = 263433601, tmax = 263692801
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='386178', job_status='RUN', time_executed='2021-09-09 11:55:40.649921', time_epoch_executed='1631213740.65' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386178

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386178/ft1_4FGL_J1423.1+3738_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386178/ft2_4FGL_J1423.1+3738_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386178/ft1_4FGL_J1423.1+3738_daily_bin93.fits outfile=/scratch/kocevski/386178/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin93.fits ra=215.792 dec=37.6452 rad=12.0 tmin=263433601.0 tmax=263692801.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.20
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386178/ft2_4FGL_J1423.1+3738_daily_bin93.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/386178/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/386178/ft1_filtered_4FGL_J1423.1+3738_daily_bin93.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.71
user 0.31
sys 0.38

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386178/ft1_filtered_4FGL_J1423.1+3738_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/386178/ft2_4FGL_J1423.1+3738_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/386178/ltcube_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.fits outfile=/scratch/kocevski/386178/expmap_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.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/386178/ltcube_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.fits
.....................!
real 190.68
user 185.04
sys 5.29

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/386178/ft1_filtered_4FGL_J1423.1+3738_daily_bin93.fits scfile=/scratch/kocevski/386178/ft2_4FGL_J1423.1+3738_daily_bin93.fits outfile=/scratch/kocevski/386178/cmap_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386178/ft1_filtered_4FGL_J1423.1+3738_daily_bin93.fits scfile=/scratch/kocevski/386178/ft2_4FGL_J1423.1+3738_daily_bin93.fits outfile=/scratch/kocevski/386178/cmap_HighResolution_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.735       1.0000         .10000E-03   10000.    
     3 'norm      '    .34337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5320       1.0000         .10000E-03   10000.    
     5 'norm      '    24.532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.083       1.0000         .10000E-03   10000.    
     9 'norm      '    .48236E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0269       1.0000         .10000E-03   10000.    
    15 'norm      '    18.006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.531       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.815       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.370       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .54282       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3804       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=   5180.345     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3165 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7710        181.08        .52311E-06   -.25748E-04
   2  Prefactor     73.743        66.735        .11793E-05    .33289E-04
   3  norm          .34404        .93234       -.36650E-06   -.49980E-03
   4  Prefactor     1.5330        3.9325       -.25911E-06   -.11524E-04
   5  norm          24.533        15.780        .38394E-06    .10573E-03
   6  Prefactor     .10000E-03    31.088        .15151E-05** at limit **
   7  Prefactor     3.0414        3.8831       -.46994E-08    .83813E-04
   8  Prefactor     17.083        22.881        .14235E-05    .84140E-04
   9  norm          .65704E-01    55.179        .10754E-04   -.14398E-04
  10  Prefactor     .10000E-03    9.3191        .10452E-05** at limit **
  11  Prefactor     14.240        18.177       -.34011E-06   -.12928E-03
  12  Prefactor     .10000E-03    1.4535        .83215E-07** at limit **
  13  norm          .10000E-03    5.3624        .17525E-06** at limit **
  14  Prefactor     .88440        202.66       -.56984E-05    .72851E-05
  15  norm          18.003        8.4513       -.10772E-06   -.26442E-03
  16  Prefactor     .10000E-03    63.894        .32743E-06** at limit **
  17  Prefactor     18.532        23.237       -.35047E-07   -.11656E-04
  18  norm          8.8926        9.1054       -.20075E-06   -.46953E-04
  19  Prefactor     .10000E-03    7.8635        .96985E-07** at limit **
  20  Prefactor     .10000E-03    7.4048        .94077E-07** at limit **
  21  norm          .10000E-03    .37134        .10794E-07** at limit **
  22  Prefactor     .10000E-03    11.135        .96754E-07** at limit **
  23  Prefactor     16.815        48.930       -.84026E-06   -.11402E-04
  24  Prefactor     40.375        31.499       -.34896E-06   -.92304E-04
  25  Normalizat    .54271        .22429       -.78867E-05   -.27626E-04
  26  Prefactor     1.3803        .24936        .54236E-05   -.13208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77102
  Prefactor  = 73.743
  norm       = 0.344036
  Prefactor  = 1.53299
  norm       = 24.5329
  Prefactor  = 0.000100001
  Prefactor  = 3.04142
  Prefactor  = 17.0831
  norm       = 0.0657042
  Prefactor  = 0.000100001
  Prefactor  = 14.2405
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.884396
  norm       = 18.0028
  Prefactor  = 0.0001
  Prefactor  = 18.532
  norm       = 8.8926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8152
  Prefactor  = 40.3754
  Normalizat = 0.542712
  Prefactor  = 1.38035
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.345     FROM HESSE     STATUS=OK           464 CALLS     3629 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7710        184.52        .23939E-03   -1.5375    
   2  Prefactor     73.743        66.820        .46756E-04   -1.3988    
   3  norm          .34404        .93075        .11301E-02   -1.5591    
   4  Prefactor     1.5330        3.9487        .21652E-03   -1.5460    
   5  norm          24.533        15.787        .80876E-04   -1.4717    
   6  Prefactor     .10000E-03    32.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0414        3.8684        .15290E-03   -1.5359    
   8  Prefactor     17.083        22.849        .96903E-04   -1.4881    
   9  norm          .65704E-01    54.204        .20576E-02   -1.5657    
  10  Prefactor     .10000E-03    9.4492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.240        18.138        .10613E-03   -1.4953    
  12  Prefactor     .10000E-03    1.4761        .84814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3670        .16281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .88440        203.92        .65953E-02   -1.5520    
  15  norm          18.003        8.4541        .94388E-04   -1.4859    
  16  Prefactor     .10000E-03    64.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.532        23.247        .93041E-04   -1.4847    
  18  norm          8.8926        9.1011        .13441E-03   -1.5111    
  19  Prefactor     .10000E-03    7.8972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .37445        .42845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.815        48.922        .97672E-04   -1.4888    
  24  Prefactor     40.375        31.507        .63087E-04   -1.4436    
  25  Normalizat    .54271        .22541        .28232E-03   -1.1047    
  26  Prefactor     1.3803        .24934        .22279E-03   -.80948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39285e-08
Minuit parameter uncertainties:
  1  45.3699
  2  66.8886
  3  0.930794
  4  3.94937
  5  15.7898
  6  0.00032982
  7  3.86867
  8  22.8603
  9  3.77491
  10  0.000139833
  11  18.1454
  12  5.60058e-06
  13  1.5596e-05
  14  26.9507
  15  8.45464
  16  0.000109429
  17  23.2586
  18  9.10247
  19  9.27284e-06
  20  3.50192e-07
  21  4.31374e-07
  22  9.76272e-06
  23  49.0387
  24  31.5203
  25  0.225786
  26  0.24956
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.560e-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:  1.380e+00  2.496e-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:  5.427e-01  2.258e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386178/likelihoodResults_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.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): 0
logL (Free Index) = 5180.34618145
delta logL = -0.000863584433318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5180.34531786
delta logL = 2.39106157096e-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.9251       1.0000          .0000       5.0000    
     3 'Normalizat'    .54271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3803       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=   5180.345     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.905        .16285E-02** at limit **
   2  alpha         1.7857        3.4237        .17047        .26942E-07
   3  Normalizat    .54271        .20105        .28233E-03    .94227E-05
   4  Prefactor     1.3803        .24433        .22279E-03    .13094E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78568
  Normalizat = 0.542711
  Prefactor  = 1.38035
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.345     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4091        .32571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7857        2.9384        .68190E-02   -.28977    
   3  Normalizat    .54271        .20123        .11293E-04   -1.1047    
   4  Prefactor     1.3803        .24454        .44557E-04   -.80948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79117e-11
Minuit parameter uncertainties:
  1  3.45981e-06
  2  368.263
  3  0.201498
  4  0.244744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386178': 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) = 5180.34531779
delta logL = 7.16709109838e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.460e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.786e+00  3.683e+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:  1.380e+00  2.447e-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:  5.427e-01  2.015e-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/386178/cmap_HighResolution_263433601_263692801_4FGL_J1423.1+3738_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='3.19e-08', time_completed='2021-09-09 12:06:49.455961', job_id='386178', GAL2='1.38', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1631214409.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='7.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='93' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 386178: <4FGL_J1423.1+3738_daily_bin93> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin93> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:51:35 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:51:37 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:51:37 2021
Terminated at Thu Sep  9 12:06:49 2021
Results reported at Thu Sep  9 12:06:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin93 215.792 37.6452 263433601 263692801 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

