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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin489
RA = 215.792, Dec = 37.6452
tmin = 366076801, tmax = 366336001
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='387793', job_status='RUN', time_executed='2021-09-09 11:56:55.042846', time_epoch_executed='1631213815.04' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387793

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387793/ft1_4FGL_J1423.1+3738_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387793/ft2_4FGL_J1423.1+3738_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387793/ft1_4FGL_J1423.1+3738_daily_bin489.fits outfile=/scratch/kocevski/387793/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin489.fits ra=215.792 dec=37.6452 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.37
user 5.05
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/387793/ft2_4FGL_J1423.1+3738_daily_bin489.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/387793/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/387793/ft1_filtered_4FGL_J1423.1+3738_daily_bin489.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/387793/ft1_filtered_4FGL_J1423.1+3738_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/387793/ft2_4FGL_J1423.1+3738_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/387793/ltcube_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.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/387793/ft2_4FGL_J1423.1+3738_daily_bin489.fits
.....................!
real 11.78
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387793/ft1_filtered_4FGL_J1423.1+3738_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/387793/ft2_4FGL_J1423.1+3738_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/387793/ltcube_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.fits outfile=/scratch/kocevski/387793/expmap_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.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/387793/ltcube_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.fits
.....................!
real 189.26
user 184.85
sys 4.01

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/387793/ft1_filtered_4FGL_J1423.1+3738_daily_bin489.fits scfile=/scratch/kocevski/387793/ft2_4FGL_J1423.1+3738_daily_bin489.fits outfile=/scratch/kocevski/387793/cmap_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387793/ft1_filtered_4FGL_J1423.1+3738_daily_bin489.fits scfile=/scratch/kocevski/387793/ft2_4FGL_J1423.1+3738_daily_bin489.fits outfile=/scratch/kocevski/387793/cmap_HighResolution_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10273E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33887       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-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 '    11.607       1.0000         .10000E-03   10000.    
     9 'norm      '    41.204       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26114E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2234       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.457       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    75.837       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12877E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5749       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6113       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .58261       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=   6276.615     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3602 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.110        .30057E-06** at limit **
   2  Prefactor     .10001E-03    58.332        .46606E-05** at limit **
   3  norm          14.236        2.6990        .14718E-07    .34189E-04
   4  Prefactor     .33833        4.6327        .34096E-05   -.18339E-03
   5  norm          .10000E-03    4.9590        .11830E-07** at limit **
   6  Prefactor     .10000E-03    6.6472        .22416E-07** at limit **
   7  Prefactor     .10000E-03    3.6342        .33111E-07** at limit **
   8  Prefactor     11.603        21.242        .31311E-06    .14174E-04
   9  norm          41.203        8.9967       -.42939E-07    .13477E-03
  10  Prefactor     .10014E-03    19.816       -.13503E-05** at limit **
  11  Prefactor     9.4106        23.580        .13106E-05    .16973E-03
  12  Prefactor     1.2223        3.9101        .10945E-05   -.50812E-04
  13  norm          .10000E-03    15.754        .10898E-05** at limit **
  14  Prefactor     80.448        38.174       -.45373E-06   -.63951E-04
  15  norm          4.1629        4.5738       -.56434E-06   -.42405E-03
  16  Prefactor     .10000E-03    43.846       -.29449E-05** at limit **
  17  Prefactor     75.832        42.275       -.26293E-06   -.54525E-04
  18  norm          5.0925        5.1056       -.13048E-06   -.27584E-04
  19  Prefactor     .10000E-03    6.0550       -.63372E-07** at limit **
  20  Prefactor     .10000E-03    4.6195        .13285E-06** at limit **
  21  norm          3.5750        1.9880        .41028E-07   -.33196E-04
  22  Prefactor     8.6121        11.998        .12771E-06    .73343E-05
  23  Prefactor     .10000E-03    107.96       -.34918E-05** at limit **
  24  Prefactor     .10000E-03    15.483       -.11594E-05** at limit **
  25  Normalizat    1.3667        .20000        .20812E-06   -.40612E-04
  26  Prefactor     .58242        .20350       -.13048E-05   -.12579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 14.2358
  Prefactor  = 0.338334
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6031
  norm       = 41.2034
  Prefactor  = 0.000100144
  Prefactor  = 9.41059
  Prefactor  = 1.22225
  norm       = 0.000100001
  Prefactor  = 80.4484
  norm       = 4.16295
  Prefactor  = 0.000100003
  Prefactor  = 75.8325
  norm       = 5.09246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57496
  Prefactor  = 8.61207
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Normalizat = 1.36672
  Prefactor  = 0.582419
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.615     FROM HESSE     STATUS=OK           454 CALLS     4056 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    60.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.236        2.7072        .54401E-04   -1.4953    
   4  Prefactor     .33833        4.8251        .32913E-03   -1.5592    
   5  norm          .10000E-03    4.9632        .17230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6971        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.603        21.338        .11759E-03   -1.5027    
   9  norm          41.203        8.8800        .62448E-04   -1.4423    
  10  Prefactor     .10014E-03    161.81        .53551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4106        19.793        .13068E-03   -1.5094    
  12  Prefactor     1.2223        3.8907        .26458E-03   -1.5487    
  13  norm          .10000E-03    15.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     80.448        38.382        .44776E-04   -1.3912    
  15  norm          4.1629        4.6390        .17465E-03   -1.5300    
  16  Prefactor     .10000E-03    44.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     75.832        42.331        .46109E-04   -1.3964    
  18  norm          5.0925        5.1100        .17496E-03   -1.5257    
  19  Prefactor     .10000E-03    6.0681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.694        .32167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5750        1.9361        .77598E-04   -1.5330    
  22  Prefactor     8.6121        12.001        .13660E-03   -1.5121    
  23  Prefactor     .10000E-03    109.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3667        .23715        .23592E-03   -.81596    
  26  Prefactor     .58242        .23628        .36891E-03   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37456e-09
Minuit parameter uncertainties:
  1  6.45874e-05
  2  0.00144322
  3  2.70725
  4  2.55525
  5  3.52674e-07
  6  3.07957e-06
  7  4.7442e-07
  8  21.3521
  9  8.88026
  10  0.00967509
  11  19.8064
  12  3.8915
  13  0.000184975
  14  38.394
  15  4.6394
  16  0.00069966
  17  42.3474
  18  5.11045
  19  8.10676e-07
  20  3.17062e-06
  21  1.9361
  22  12.004
  23  0.00144829
  24  0.00018313
  25  0.237339
  26  0.236683
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.850e-04  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:  5.824e-01  2.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.367e+00  2.373e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387793/likelihoodResults_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.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) = 6276.61542895
delta logL = -0.000297596812743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6276.61513255
delta logL = -1.20441109175e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12549E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8879       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58244       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=   6276.615     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    22.900        .90712E-02** at limit **
   2  alpha         1.9400        3.4549        .42830       -.17265E-04
   3  Normalizat    1.3667        .18787        .53359E-01   -.33065E-04
   4  Prefactor     .58242        .20075        .83277E-01    .40988E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.94003
  Normalizat = 1.36672
  Prefactor  = 0.582419
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.615     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    16.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9400        3.3975        .17132       -.22591    
   3  Normalizat    1.3667        .21750        .23592E-03   -.81596    
   4  Prefactor     .58242        .23179        .36891E-03   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62037e-10
Minuit parameter uncertainties:
  1  0.00057915
  2  2.44301
  3  0.217643
  4  0.232174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387793': 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) = 6276.61513126
delta logL = 8.7272383098e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.791e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.940e+00  2.443e+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:  5.824e-01  2.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.367e+00  2.176e-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/387793/cmap_HighResolution_366076801_366336001_4FGL_J1423.1+3738_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2021-09-09 12:09:49.590339', job_id='387793', GAL2='0.58', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631214589.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='489' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:09:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 387793: <4FGL_J1423.1+3738_daily_bin489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin489 215.792 37.6452 366076801 366336001 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 :                                   767.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            791 sec.

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

