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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1103
RA = 215.792, Dec = 37.6452
tmin = 525225601, tmax = 525484801
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='390894', job_status='RUN', time_executed='2021-09-09 12:09:16.348786', time_epoch_executed='1631214556.35' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390894/ft1_4FGL_J1423.1+3738_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390894/ft2_4FGL_J1423.1+3738_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390894/ft1_4FGL_J1423.1+3738_daily_bin1103.fits outfile=/scratch/kocevski/390894/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1103.fits ra=215.792 dec=37.6452 rad=12.0 tmin=525225601.0 tmax=525484801.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.32
user 3.84
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390894/ft1_filtered_4FGL_J1423.1+3738_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/390894/ft2_4FGL_J1423.1+3738_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/390894/ltcube_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.fits outfile=/scratch/kocevski/390894/expmap_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.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/390894/ltcube_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.fits
.....................!
real 192.43
user 185.70
sys 4.33

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/390894/ft1_filtered_4FGL_J1423.1+3738_daily_bin1103.fits scfile=/scratch/kocevski/390894/ft2_4FGL_J1423.1+3738_daily_bin1103.fits outfile=/scratch/kocevski/390894/cmap_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.792 yref=37.6452 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.02
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390894/ft1_filtered_4FGL_J1423.1+3738_daily_bin1103.fits scfile=/scratch/kocevski/390894/ft2_4FGL_J1423.1+3738_daily_bin1103.fits outfile=/scratch/kocevski/390894/cmap_HighResolution_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.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 1.50
user 0.37
sys 0.20

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.178       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7803       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2508       1.0000         .10000E-03   10000.    
     5 'norm      '    10.305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8097       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0255       1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.9970       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.017       1.0000         .10000E-03   10000.    
    18 'norm      '    4.5635       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0784       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6771       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4634       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81331       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0131       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=   6043.936     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3041 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.093        51.675       -.17314E-07   -.11995E-04
   2  Prefactor     27.091        56.462       -.19852E-05   -.70511E-04
   3  norm          5.7808        1.7190       -.60183E-07   -.25385E-03
   4  Prefactor     5.2514        4.2240        .25965E-07    .71313E-04
   5  norm          10.315        13.795       -.71551E-06   -.14939E-03
   6  Prefactor     .32958        11.659        .23768E-05   -.39088E-03
   7  Prefactor     1.8096        1.9862       -.53989E-07   -.11905E-03
   8  Prefactor     .10000E-03    15.804        .88394E-06** at limit **
   9  norm          .10000E-03    1.9297        .20319E-06** at limit **
  10  Prefactor     .10000E-03    4.5059        .18799E-06** at limit **
  11  Prefactor     .10000E-03    6.1415        .28442E-06** at limit **
  12  Prefactor     2.0257        2.7789        .22434E-06    .26433E-03
  13  norm          .10000E-03    12.161        .30694E-06** at limit **
  14  Prefactor     .10000E-03    7.0758        .20860E-06** at limit **
  15  norm          9.9982        5.6450       -.20631E-06   -.12383E-03
  16  Prefactor     21.087        20.708       -.16879E-06   -.18343E-04
  17  Prefactor     65.021        37.280       -.36639E-06   -.36027E-04
  18  norm          4.5635        5.4988       -.72733E-07   -.48205E-04
  19  Prefactor     3.0772        15.473        .11544E-05    .75740E-04
  20  Prefactor     5.6772        4.8742       -.43090E-07   -.32185E-04
  21  norm          1.4634        1.0382        .41025E-08   -.19600E-04
  22  Prefactor     .10000E-03    2.8739        .16979E-06** at limit **
  23  Prefactor     .10000E-03    16.491        .83414E-07** at limit **
  24  Prefactor     .10000E-03    9.4242        .26188E-06** at limit **
  25  Normalizat    .81290        .19120        .47844E-05   -.19643E-03
  26  Prefactor     1.0136        .21198       -.52999E-05   -.24927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.0932
  Prefactor  = 27.0908
  norm       = 5.7808
  Prefactor  = 5.25142
  norm       = 10.3154
  Prefactor  = 0.329581
  Prefactor  = 1.8096
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02569
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.9982
  Prefactor  = 21.0871
  Prefactor  = 65.0209
  norm       = 4.56351
  Prefactor  = 3.07718
  Prefactor  = 5.67723
  norm       = 1.46341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.812897
  Prefactor  = 1.0136
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.936     FROM HESSE     STATUS=OK           458 CALLS     3499 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.093        51.678        .54041E-04   -1.4222    
   2  Prefactor     27.091        56.773        .76845E-04   -1.4667    
   3  norm          5.7808        1.7193        .53314E-04   -1.5227    
   4  Prefactor     5.2514        4.2294        .13644E-03   -1.5250    
   5  norm          10.315        13.759        .12482E-03   -1.5066    
   6  Prefactor     .32958        83.123        .43924E-02   -1.5593    
   7  Prefactor     1.8096        1.9926        .11207E-03   -1.5439    
   8  Prefactor     .10000E-03    16.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9668        .10547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5218        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0257        2.7790        .14588E-03   -1.5423    
  13  norm          .10000E-03    12.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.9982        5.6434        .12673E-03   -1.5075    
  16  Prefactor     21.087        20.709        .87226E-04   -1.4789    
  17  Prefactor     65.021        37.284        .49771E-04   -1.4094    
  18  norm          4.5635        5.4945        .18844E-03   -1.5281    
  19  Prefactor     3.0772        15.593        .23117E-03   -1.5357    
  20  Prefactor     5.6772        4.8646        .15198E-03   -1.5231    
  21  norm          1.4634        1.0350        .63923E-04   -1.5466    
  22  Prefactor     .10000E-03    2.8796        .12875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.4424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81290        .19231        .23322E-03   -.99592    
  26  Prefactor     1.0136        .21350        .24825E-03   -.92278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17905e-09
Minuit parameter uncertainties:
  1  51.7196
  2  56.8862
  3  1.71927
  4  4.22969
  5  13.7635
  6  10.4813
  7  1.99268
  8  0.000101325
  9  7.40445e-06
  10  7.94049e-06
  11  1.86281e-05
  12  2.77917
  13  3.22826e-05
  14  1.41431e-05
  15  5.64371
  16  20.7159
  17  37.2976
  18  5.49511
  19  13.8592
  20  4.86495
  21  1.03498
  22  8.78702e-06
  23  1.31832e-05
  24  2.95446e-05
  25  0.19247
  26  0.213683
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.228e-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.014e+00  2.137e-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:  8.129e-01  1.925e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390894/likelihoodResults_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.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) = 6043.93672558
delta logL = -0.000387809948734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6043.93633776
delta logL = 1.48102117237e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9423       1.0000          .0000       5.0000    
     3 'Normalizat'    .81288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0136       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.

 FCN=   6043.936     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.335        .90712E-02** at limit **
   2  alpha         1.9572        3.4185        .42527       -.59045E-05
   3  Normalizat    .81290        .15212        .43778E-01    .30556E-04
   4  Prefactor     1.0136        .17991        .42842E-01    .23609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.9572
  Normalizat = 0.812897
  Prefactor  = 1.0136
 **********
 **   18 **HESSE 
 **********

 FCN=   6043.936     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9572        3.4033        .50000       -.21886    
   3  Normalizat    .81290        .17743        .23321E-03   -.99592    
   4  Prefactor     1.0136        .20990        .24825E-03   -.92277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54805e-11
Minuit parameter uncertainties:
  1  2.57709e-05
  2  2.44805
  3  0.177559
  4  0.210073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390894': 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) = 6043.9363377
delta logL = 7.07732397132e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.014e+00  2.101e-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:  8.129e-01  1.776e-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/390894/cmap_HighResolution_525225601_525484801_4FGL_J1423.1+3738_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-09 12:21:19.421043', job_id='390894', GAL2='1.01', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631215279.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1103' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:21:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 390894: <4FGL_J1423.1+3738_daily_bin1103> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1103> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 12:06:27 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:06:28 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:06:28 2021
Terminated at Thu Sep  9 12:21:20 2021
Results reported at Thu Sep  9 12:21:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1103 215.792 37.6452 525225601 525484801 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 :                                   702.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

