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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1128
RA = 215.792, Dec = 37.6452
tmin = 531705601, tmax = 531964801
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='390937', job_status='RUN', time_executed='2021-09-09 12:06:52.061372', time_epoch_executed='1631214412.06' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390937/ft1_4FGL_J1423.1+3738_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390937/ft2_4FGL_J1423.1+3738_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390937/ft1_4FGL_J1423.1+3738_daily_bin1128.fits outfile=/scratch/kocevski/390937/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1128.fits ra=215.792 dec=37.6452 rad=12.0 tmin=531705601.0 tmax=531964801.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.98
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/390937/ft1_filtered_4FGL_J1423.1+3738_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/390937/ft2_4FGL_J1423.1+3738_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/390937/ltcube_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.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/390937/ft2_4FGL_J1423.1+3738_daily_bin1128.fits
.....................!
real 11.88
user 11.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390937/ft1_filtered_4FGL_J1423.1+3738_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/390937/ft2_4FGL_J1423.1+3738_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/390937/ltcube_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.fits outfile=/scratch/kocevski/390937/expmap_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.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/390937/ltcube_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.fits
.....................!
real 192.29
user 186.32
sys 5.47

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/390937/ft1_filtered_4FGL_J1423.1+3738_daily_bin1128.fits scfile=/scratch/kocevski/390937/ft2_4FGL_J1423.1+3738_daily_bin1128.fits outfile=/scratch/kocevski/390937/cmap_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390937/ft1_filtered_4FGL_J1423.1+3738_daily_bin1128.fits scfile=/scratch/kocevski/390937/ft2_4FGL_J1423.1+3738_daily_bin1128.fits outfile=/scratch/kocevski/390937/cmap_HighResolution_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.851       1.0000         .10000E-03   10000.    
     2 'Prefactor '    108.69       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0838       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88793       1.0000         .10000E-03   10000.    
     5 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.620       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8633       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3537       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .61120       1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.571       1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.703       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0803       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11932E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.638       1.0000         .10000E-03   10000.    
    21 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6022       1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.016       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .51917       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3451       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=   5590.501     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3133 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.858        55.550        .86741E-06    .90224E-04
   2  Prefactor     108.68        96.003        .30095E-05    .18510E-03
   3  norm          5.0843        1.9349       -.16635E-07    .10994E-02
   4  Prefactor     .88386        3.1875       -.14794E-06    .26729E-03
   5  norm          .10000E-03    16.557       -.25921E-05** at limit **
   6  Prefactor     .10000E-03    8.0883       -.12908E-06** at limit **
   7  Prefactor     .10000E-03    1.8173       -.45872E-07** at limit **
   8  Prefactor     23.628        18.844        .79519E-06    .23651E-03
   9  norm          3.8637        3.8301        .19192E-07    .43411E-04
  10  Prefactor     .10000E-03    16.243        .88870E-06** at limit **
  11  Prefactor     6.5688        18.708        .19357E-06   -.17488E-04
  12  Prefactor     9.3557        4.7736       -.12183E-07    .10687E-02
  13  norm          .10000E-03    6.9294       -.20090E-07** at limit **
  14  Prefactor     .10000E-03    9.0113        .20093E-06** at limit **
  15  norm          .58129        19.887        .70615E-05   -.31651E-03
  16  Prefactor     61.543        55.409       -.25126E-06   -.21712E-04
  17  Prefactor     79.553        56.820        .94813E-06    .69621E-04
  18  norm          3.0769        7.6577       -.15845E-05   -.35086E-03
  19  Prefactor     .10000E-03    18.856        .10641E-05** at limit **
  20  Prefactor     15.637        10.250       -.38590E-06   -.35963E-03
  21  norm          .10000E-03    .90744       -.64427E-07** at limit **
  22  Prefactor     9.6006        8.4139        .15841E-06    .84287E-04
  23  Prefactor     43.003        63.255        .17584E-05    .73604E-04
  24  Prefactor     .10000E-03    13.100        .30787E-06** at limit **
  25  Normalizat    .51864        .20315       -.10782E-06    .14482E-03
  26  Prefactor     1.3458        .20828       -.31696E-06   -.44951E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.8579
  Prefactor  = 108.682
  norm       = 5.08431
  Prefactor  = 0.88386
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6281
  norm       = 3.86372
  Prefactor  = 0.0001
  Prefactor  = 6.56881
  Prefactor  = 9.35568
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.581292
  Prefactor  = 61.5428
  Prefactor  = 79.5527
  norm       = 3.07686
  Prefactor  = 0.000100001
  Prefactor  = 15.637
  norm       = 0.0001
  Prefactor  = 9.60062
  Prefactor  = 43.0032
  Prefactor  = 0.0001
  Normalizat = 0.51864
  Prefactor  = 1.34585
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.501     FROM HESSE     STATUS=OK           454 CALLS     3587 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.858        55.652        .52298E-04   -1.4172    
   2  Prefactor     108.68        98.216        .38578E-04   -1.3619    
   3  norm          5.0843        1.9495        .30597E-03   -1.5257    
   4  Prefactor     .88386        3.1802        .24342E-03   -1.5520    
   5  norm          .10000E-03    17.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8326        .98431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.628        19.028        .82419E-04   -1.4735    
   9  norm          3.8637        3.8168        .13897E-03   -1.5315    
  10  Prefactor     .10000E-03    16.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5688        18.549        .15660E-03   -1.5195    
  12  Prefactor     9.3557        4.8706        .55921E-03   -1.5096    
  13  norm          .10000E-03    6.9350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58129        22.422        .28776E-02   -1.5555    
  16  Prefactor     61.543        55.071        .51136E-04   -1.4137    
  17  Prefactor     79.553        56.861        .44985E-04   -1.3922    
  18  norm          3.0769        7.6904        .23110E-03   -1.5357    
  19  Prefactor     .10000E-03    19.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.637        10.204        .10128E-03   -1.4917    
  21  norm          .10000E-03    .92729        .13853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.6006        8.4164        .12932E-03   -1.5088    
  23  Prefactor     43.003        63.508        .61124E-04   -1.4395    
  24  Prefactor     .10000E-03    13.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .51864        .23622        .31219E-03   -1.1156    
  26  Prefactor     1.3458        .24497        .23354E-03   -.81954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9884e-09
Minuit parameter uncertainties:
  1  55.701
  2  98.3637
  3  1.94957
  4  3.18077
  5  0.000523838
  6  2.36524e-05
  7  4.94065e-06
  8  19.0327
  9  3.81701
  10  7.08334e-05
  11  18.565
  12  4.87076
  13  1.45847e-05
  14  2.08315e-05
  15  7.22276
  16  55.1163
  17  56.8998
  18  7.69291
  19  0.000234897
  20  10.2053
  21  1.43536e-06
  22  8.41743
  23  63.6081
  24  5.03747e-05
  25  0.236677
  26  0.245176
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.458e-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.346e+00  2.452e-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.186e-01  2.367e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390937/likelihoodResults_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.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) = 5590.50208805
delta logL = -0.000681912044456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5590.50140614
delta logL = 4.85943019157e-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.9326       1.0000          .0000       5.0000    
     3 'Normalizat'    .51863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5590.216     FROM MIGRAD    STATUS=FAILED       144 CALLS      284 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60294E-01    4.3878        .56126E-02    .40323E-02
   2  alpha         5.0000        2.6513        .50000    ** at limit **
   3  Normalizat    .46956        .79815E-01    .31219E-02    .87216E-05
   4  Prefactor     1.3829        .78893E-01    .23355E-03    .79346E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5590.216     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      449 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60294E-01    4.3878        .44146E-07    .40323E-02
   2  alpha         5.0000        2.6513        .10064E-01** at limit **
   3  Normalizat    .46956        .79815E-01    .24570E-07    .87216E-05
   4  Prefactor     1.3829        .78893E-01    .26739E-08    .79346E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5590.216     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      485 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60294E-01    .89009E-01    .25584E-03    .73729E-03
   2  alpha         5.0000        3.3724        .74128E-01** at limit **
   3  Normalizat    .46956        .21521        .12488E-03    .32774E-05
   4  Prefactor     1.3829        .24483        .93418E-05    .77886E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0602936
  alpha      = 5
  Normalizat = 0.469558
  Prefactor  = 1.38287
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.216     FROM HESSE     STATUS=OK            25 CALLS      510 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60294E-01    .87538E-01    .10234E-04   -1.5659    
   2  alpha         5.0000        3.3672        .29651E-02    14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .46956        .21510        .49950E-05   -1.1385    
   4  Prefactor     1.3829        .24485        .18684E-05   -.80875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44058e-13
Minuit parameter uncertainties:
  1  0.0875384
  2  9.17374e-07
  3  0.215476
  4  0.245059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390937': 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) = 5590.21586213
delta logL = 0.285544009344

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  6.029e-02  8.754e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  5.000e+00  9.174e-07  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.383e+00  2.451e-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:  4.696e-01  2.155e-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/390937/cmap_HighResolution_531705601_531964801_4FGL_J1423.1+3738_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-09-09 12:18:38.947924', job_id='390937', GAL2='1.38', fit_tolerance='1e-08', EG2='0.47', EG='0.52', time_epoch_completed='1631215118.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.86e-01', ts2='0.65', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1128' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:18:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 390937: <4FGL_J1423.1+3738_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1128 215.792 37.6452 531705601 531964801 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 :                                   686.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

