/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 60 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 = 7406
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1347
RA = 215.792, Dec = 37.6452
tmin = 588470401, tmax = 588729601
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='392518', job_status='RUN', time_executed='2021-09-09 12:13:34.942609', time_epoch_executed='1631214814.94' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392518/ft1_4FGL_J1423.1+3738_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392518/ft2_4FGL_J1423.1+3738_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392518/ft1_4FGL_J1423.1+3738_daily_bin1347.fits outfile=/scratch/kocevski/392518/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1347.fits ra=215.792 dec=37.6452 rad=12.0 tmin=588470401.0 tmax=588729601.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 6.57
user 4.66
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392518/ft1_filtered_4FGL_J1423.1+3738_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/392518/ft2_4FGL_J1423.1+3738_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/392518/ltcube_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.fits outfile=/scratch/kocevski/392518/expmap_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.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/392518/ltcube_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.fits
.....................!
real 194.57
user 186.24
sys 4.94

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/392518/ft1_filtered_4FGL_J1423.1+3738_daily_bin1347.fits scfile=/scratch/kocevski/392518/ft2_4FGL_J1423.1+3738_daily_bin1347.fits outfile=/scratch/kocevski/392518/cmap_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392518/ft1_filtered_4FGL_J1423.1+3738_daily_bin1347.fits scfile=/scratch/kocevski/392518/ft2_4FGL_J1423.1+3738_daily_bin1347.fits outfile=/scratch/kocevski/392518/cmap_HighResolution_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.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.72
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54430E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7806       1.0000         .10000E-03   10000.    
     5 'norm      '    13.690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2407       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12193E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47152E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    46.592       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.229       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.659       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.640       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7799       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.487       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .68244       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1159       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64826       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=   6129.799     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3106 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.434        .86808E-05** at limit **
   2  Prefactor     .10000E-03    126.26       -.41617E-04** at limit **
   3  norm          6.9643        1.9323        .29842E-07    .14008E-03
   4  Prefactor     2.7814        3.2297        .64888E-07   -.21730E-04
   5  norm          13.688        11.959       -.57563E-07    .78286E-04
   6  Prefactor     .10000E-03    7.7181        .14378E-05** at limit **
   7  Prefactor     1.2406        3.8878        .15784E-06   -.10931E-03
   8  Prefactor     .10000E-03    4.1778        .15914E-07** at limit **
   9  norm          .10000E-03    2.6808       -.20390E-06** at limit **
  10  Prefactor     .10011E-03    7.1415       -.10918E-05** at limit **
  11  Prefactor     .10000E-03    10.329       -.20235E-06** at limit **
  12  Prefactor     46.595        7.3235       -.68449E-07    .18238E-03
  13  norm          .10000E-03    7.1575       -.52060E-06** at limit **
  14  Prefactor     12.230        17.527        .31125E-07   -.42484E-04
  15  norm          .10000E-03    2.4506       -.38187E-07** at limit **
  16  Prefactor     37.661        42.000        .26312E-05    .28867E-04
  17  Prefactor     70.649        39.322        .53126E-05    .46471E-04
  18  norm          1.7793        2.5145        .56333E-06   -.14878E-02
  19  Prefactor     26.493        14.636       -.46928E-06    .78088E-05
  20  Prefactor     .10000E-03    1.7440       -.61969E-08** at limit **
  21  norm          .68240        .88900        .13142E-07   -.46277E-04
  22  Prefactor     .10000E-03    4.0078       -.14959E-08** at limit **
  23  Prefactor     .10000E-03    12.840        .41902E-06** at limit **
  24  Prefactor     .10000E-03    8.0505        .78894E-07** at limit **
  25  Normalizat    1.1155        .16984       -.33490E-06    .30601E-03
  26  Prefactor     .64853        .18774       -.44803E-06    .14069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.9643
  Prefactor  = 2.78141
  norm       = 13.6877
  Prefactor  = 0.0001
  Prefactor  = 1.24063
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.00010011
  Prefactor  = 0.0001
  Prefactor  = 46.5951
  norm       = 0.0001
  Prefactor  = 12.2303
  norm       = 0.0001
  Prefactor  = 37.6614
  Prefactor  = 70.6494
  norm       = 1.77932
  Prefactor  = 26.4929
  Prefactor  = 0.0001
  norm       = 0.682397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11546
  Prefactor  = 0.648532
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.799     FROM HESSE     STATUS=OK           456 CALLS     3562 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    126.52        .21115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9643        1.9337        .55138E-04   -1.5180    
   4  Prefactor     2.7814        3.2219        .14607E-03   -1.5374    
   5  norm          13.688        11.967        .10826E-03   -1.4968    
   6  Prefactor     .10000E-03    7.7258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2406        3.8712        .26303E-03   -1.5485    
   8  Prefactor     .10000E-03    4.1819        .15629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.1797        .24688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10011E-03    43.669        .39627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     46.595        7.3260        .58741E-04   -1.4342    
  13  norm          .10000E-03    7.1662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.230        17.540        .57275E-03   -1.5008    
  15  norm          .10000E-03    2.4665        .11965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.661        41.972        .65311E-04   -1.4480    
  17  Prefactor     70.649        39.314        .47762E-04   -1.4025    
  18  norm          1.7793        7.1448        .15686E-02   -1.5441    
  19  Prefactor     26.493        14.749        .77838E-04   -1.4678    
  20  Prefactor     .10000E-03    1.7462        .10095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .68240        .78848        .81394E-03   -1.5543    
  22  Prefactor     .10000E-03    4.0190        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1155        .19446        .21974E-03   -.89257    
  26  Prefactor     .64853        .21502        .31838E-03   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17955e-09
Minuit parameter uncertainties:
  1  0.000116376
  2  3.11763e-05
  3  1.93367
  4  3.2221
  5  11.969
  6  1.35417e-05
  7  3.87199
  8  1.11317e-06
  9  0.000234901
  10  0.00438161
  11  2.37095e-05
  12  7.32617
  13  4.9605e-06
  14  17.5476
  15  2.49477e-06
  16  42.0049
  17  39.3282
  18  7.13231
  19  14.7512
  20  5.30318e-09
  21  0.788491
  22  1.56191e-06
  23  2.74178e-06
  24  1.89979e-06
  25  0.194584
  26  0.215293
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  4.960e-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:  6.485e-01  2.153e-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.115e+00  1.946e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392518/likelihoodResults_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.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) = 6129.79932856
delta logL = -0.000663331651594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6129.799     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81891        .53743E-01** at limit **
   2  alpha         2.8081        3.5827        .50000        .20714E-07
   3  Normalizat    1.1155        .18200E-02    .21974E-03    .50832E-03
   4  Prefactor     .64853        .20681E-02    .31838E-03    .28616E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.80813
  Normalizat = 1.11545
  Prefactor  = 0.648533
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.799     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    147.38        .30597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8081        3.5917        .50000        .12357    
   3  Normalizat    1.1155        .17009E-01    .43948E-04   -.89257    
   4  Prefactor     .64853        .19328E-01    .12735E-04   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1146e-10
Minuit parameter uncertainties:
  1  0.000179416
  2  822.379
  3  0.0170094
  4  0.0193284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392518': 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): 102
logL (Free Index) = 6129.79866404
delta logL = 1.18265506899e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.485e-01  1.933e-02  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.115e+00  1.701e-02  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/392518/cmap_HighResolution_588470401_588729601_4FGL_J1423.1+3738_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-09-09 12:26:37.739631', job_id='392518', GAL2='0.65', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631215597.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1347' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:26:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 392518: <4FGL_J1423.1+3738_daily_bin1347> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1347> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 12:11:33 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:11:34 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:11:34 2021
Terminated at Thu Sep  9 12:26:38 2021
Results reported at Thu Sep  9 12:26:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1347 215.792 37.6452 588470401 588729601 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 :                                   755.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

