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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin49
RA = 215.792, Dec = 37.6452
tmin = 252028801, tmax = 252288001
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='386110', job_status='RUN', time_executed='2021-09-09 11:54:08.726865', time_epoch_executed='1631213648.73' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386110

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386110/ft1_4FGL_J1423.1+3738_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386110/ft2_4FGL_J1423.1+3738_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386110/ft1_4FGL_J1423.1+3738_daily_bin49.fits outfile=/scratch/kocevski/386110/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin49.fits ra=215.792 dec=37.6452 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.43
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386110/ft2_4FGL_J1423.1+3738_daily_bin49.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/386110/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/386110/ft1_filtered_4FGL_J1423.1+3738_daily_bin49.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386110/ft1_filtered_4FGL_J1423.1+3738_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/386110/ft2_4FGL_J1423.1+3738_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/386110/ltcube_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.fits outfile=/scratch/kocevski/386110/expmap_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.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/386110/ltcube_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.fits
.....................!
real 191.53
user 186.30
sys 4.87

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/386110/ft1_filtered_4FGL_J1423.1+3738_daily_bin49.fits scfile=/scratch/kocevski/386110/ft2_4FGL_J1423.1+3738_daily_bin49.fits outfile=/scratch/kocevski/386110/cmap_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386110/ft1_filtered_4FGL_J1423.1+3738_daily_bin49.fits scfile=/scratch/kocevski/386110/ft2_4FGL_J1423.1+3738_daily_bin49.fits outfile=/scratch/kocevski/386110/cmap_HighResolution_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.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/386110/ft1_filtered_4FGL_J1423.1+3738_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/386110/ft2_4FGL_J1423.1+3738_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386110/Model_4FGL_J1423.1+3738_daily_bin49.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/386110/ft1_filtered_4FGL_J1423.1+3738_daily_bin49.fits.....................!
real 51.22
user 49.82
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .74606       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.335       1.0000         .10000E-03   10000.    
     9 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14967E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3804       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .49701       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6780       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .47178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9510       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38627E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0786       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80365       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=   6465.032     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3162 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.352        .21581E-04** at limit **
   2  Prefactor     .10000E-03    21.572       -.53058E-05** at limit **
   3  norm          .74630        1.1293       -.12014E-06   -.12599E-02
   4  Prefactor     .10000E-03    1.5782        .86677E-07** at limit **
   5  norm          2.3501        7.9407       -.82555E-06   -.27016E-03
   6  Prefactor     .10000E-03    6.7907       -.84814E-05** at limit **
   7  Prefactor     .70016        2.3946       -.74680E-06   -.89862E-03
   8  Prefactor     21.333        19.507       -.15804E-06    .49454E-04
   9  norm          .10000E-03    3.5708       -.57215E-07** at limit **
  10  Prefactor     .10000E-03    21.900       -.34833E-05** at limit **
  11  Prefactor     6.9650        15.073        .21751E-05    .15426E-03
  12  Prefactor     2.3813        3.8602        .90347E-06   -.74488E-03
  13  norm          .10000E-03    5.0163       -.22243E-05** at limit **
  14  Prefactor     .10000E-03    5.7078        .61546E-05** at limit **
  15  norm          .50108        3.7341       -.14275E-05   -.50225E-03
  16  Prefactor     31.776        32.760       -.11386E-07    .27949E-04
  17  Prefactor     .10000E-03    8.2237        .56014E-05** at limit **
  18  norm          2.6770        5.9345       -.47705E-06   -.36169E-03
  19  Prefactor     .48579        8.0734        .13843E-05   -.53883E-03
  20  Prefactor     .10000E-03    2.0706       -.12011E-07** at limit **
  21  norm          1.9508        1.3125       -.79752E-09   -.41351E-03
  22  Prefactor     .10003E-03    4.9029        .17017E-05** at limit **
  23  Prefactor     .10000E-03    42.232       -.13817E-04** at limit **
  24  Prefactor     .10000E-03    14.630       -.30923E-05** at limit **
  25  Normalizat    1.0785        .15927       -.49252E-07   -.24473E-04
  26  Prefactor     .80373        .17167        .52052E-09   -.71831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.746301
  Prefactor  = 0.0001
  norm       = 2.35013
  Prefactor  = 0.0001
  Prefactor  = 0.700157
  Prefactor  = 21.3327
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.96502
  Prefactor  = 2.3813
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.501076
  Prefactor  = 31.7756
  Prefactor  = 0.0001
  norm       = 2.67701
  Prefactor  = 0.485788
  Prefactor  = 0.0001
  norm       = 1.95078
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07851
  Prefactor  = 0.803727
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.032     FROM HESSE     STATUS=OK           466 CALLS     3628 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .74630        1.0370        .10074E-02   -1.5535    
   4  Prefactor     .10000E-03    1.5997        .98578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3501        7.9351        .26740E-03   -1.5401    
   6  Prefactor     .10000E-03    6.7644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .70016        2.5752        .22174E-02   -1.5541    
   8  Prefactor     21.333        19.443        .86716E-04   -1.4784    
   9  norm          .10000E-03    3.6849        .29625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9650        15.040        .15207E-03   -1.5180    
  12  Prefactor     2.3813        3.8300        .18603E-03   -1.5399    
  13  norm          .10000E-03    5.0183        .17583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .50108        7.9193        .29095E-02   -1.5566    
  16  Prefactor     31.776        32.688        .71082E-04   -1.4580    
  17  Prefactor     .10000E-03    8.2084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6770        5.9255        .24901E-03   -1.5381    
  19  Prefactor     .48579        91.084        .41944E-02   -1.5569    
  20  Prefactor     .10000E-03    2.0745        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9508        1.3054        .72207E-04   -1.5429    
  22  Prefactor     .10003E-03    13.826        .34436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0785        .19000        .20535E-03   -.90445    
  26  Prefactor     .80373        .20370        .26641E-03   -.99591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26414e-08
Minuit parameter uncertainties:
  1  6.0886e-06
  2  2.14182e-06
  3  1.03704
  4  9.31148e-07
  5  7.93869
  6  6.15317e-06
  7  2.5756
  8  19.4491
  9  1.01366e-05
  10  0.000161047
  11  15.0478
  12  3.83043
  13  2.39053e-06
  14  1.70402e-06
  15  3.98429
  16  32.7067
  17  5.26368e-06
  18  5.92684
  19  13.323
  20  9.13877e-07
  21  1.3054
  22  0.00117621
  23  6.73034e-07
  24  1.20603e-05
  25  0.190123
  26  0.203896
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  2.391e-06  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:  8.037e-01  2.039e-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.079e+00  1.901e-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: 2.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386110/likelihoodResults_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.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) = 6465.03283174
delta logL = -0.000945666232838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6465.03188604
delta logL = 3.43534338754e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80372       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=   6465.032     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      194 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5110        .90712E-02** at limit **
   2  alpha         1.9482        3.4171        .42550       -.99974E-05
   3  Normalizat    1.0785        .14837        .38950E-01    .40747E-05
   4  Prefactor     .80373        .16941        .43766E-01    .17626E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.94824
  Normalizat = 1.07851
  Prefactor  = 0.803728
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0819        .17656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9482        3.4004        .50000       -.22254    
   3  Normalizat    1.0785        .17367        .20535E-03   -.90445    
   4  Prefactor     .80373        .19822        .26641E-03   -.99591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02771e-10
Minuit parameter uncertainties:
  1  8.62837e-06
  2  2.44589
  3  0.173766
  4  0.198397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386110': 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) = 6465.03188599
delta logL = 8.40018401504e-08

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  8.628e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.948e+00  2.446e+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:  8.037e-01  1.984e-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.079e+00  1.738e-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/386110/cmap_HighResolution_252028801_252288001_4FGL_J1423.1+3738_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-05', job_status='DONE', photon_flux_upper_limit='2.81e-08', time_completed='2021-09-09 12:06:22.253119', job_id='386110', GAL2='0.80', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631214382.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='8.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='49' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:06:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 386110: <4FGL_J1423.1+3738_daily_bin49> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin49 215.792 37.6452 252028801 252288001 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 :                                   730.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

