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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin721
RA = 215.792, Dec = 37.6452
tmin = 426211201, tmax = 426470401
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='389201', job_status='RUN', time_executed='2021-09-09 12:01:37.093168', time_epoch_executed='1631214097.09' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389201/ft1_4FGL_J1423.1+3738_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389201/ft2_4FGL_J1423.1+3738_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389201/ft1_4FGL_J1423.1+3738_daily_bin721.fits outfile=/scratch/kocevski/389201/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin721.fits ra=215.792 dec=37.6452 rad=12.0 tmin=426211201.0 tmax=426470401.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.55
user 3.35
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389201/ft1_filtered_4FGL_J1423.1+3738_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/389201/ft2_4FGL_J1423.1+3738_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/389201/ltcube_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.fits outfile=/scratch/kocevski/389201/expmap_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.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/389201/ltcube_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.fits
.....................!
real 190.06
user 184.71
sys 5.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/389201/ft1_filtered_4FGL_J1423.1+3738_daily_bin721.fits scfile=/scratch/kocevski/389201/ft2_4FGL_J1423.1+3738_daily_bin721.fits outfile=/scratch/kocevski/389201/cmap_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389201/ft1_filtered_4FGL_J1423.1+3738_daily_bin721.fits scfile=/scratch/kocevski/389201/ft2_4FGL_J1423.1+3738_daily_bin721.fits outfile=/scratch/kocevski/389201/cmap_HighResolution_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74387       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0103       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.932       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5006       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.012       1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.302       1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.580       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3072       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54135       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=   5271.775     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3063 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.041        .21004E-06** at limit **
   2  Prefactor     .10000E-03    80.415        .10175E-05** at limit **
   3  norm          3.0663        1.6147       -.57927E-08    .31016E-04
   4  Prefactor     .73714        3.9193       -.10054E-05    .49715E-03
   5  norm          .10000E-03    6.9782        .30923E-06** at limit **
   6  Prefactor     .10000E-03    7.1412        .19225E-06** at limit **
   7  Prefactor     3.6833        3.4693       -.50779E-07   -.81720E-05
   8  Prefactor     12.746        23.204       -.15845E-06    .11694E-04
   9  norm          .10000E-03    1.1884        .15227E-06** at limit **
  10  Prefactor     .10000E-03    6.1574        .32327E-06** at limit **
  11  Prefactor     .10000E-03    5.3695        .20958E-06** at limit **
  12  Prefactor     .10000E-03    1.8955        .35657E-06** at limit **
  13  norm          .10000E-03    4.4246        .10297E-06** at limit **
  14  Prefactor     9.0086        13.684        .11575E-06    .89416E-05
  15  norm          .10000E-03    3.7111        .38009E-06** at limit **
  16  Prefactor     .10000E-03    12.323        .11293E-06** at limit **
  17  Prefactor     13.870        29.968        .11787E-06    .66720E-05
  18  norm          .10000E-03    4.8674        .17132E-06** at limit **
  19  Prefactor     23.924        17.553        .54979E-06    .41308E-04
  20  Prefactor     .10000E-03    3.6244        .40848E-06** at limit **
  21  norm          1.5033        1.7157       -.99589E-06   -.57385E-03
  22  Prefactor     12.010        13.358        .22702E-06    .29827E-04
  23  Prefactor     47.005        85.326        .33502E-05   -.25152E-05
  24  Prefactor     42.573        35.310        .61147E-06    .31075E-04
  25  Normalizat    1.3075        .19805        .18456E-05    .29332E-04
  26  Prefactor     .54109        .20171       -.32815E-05    .70027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.06631
  Prefactor  = 0.737143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68327
  Prefactor  = 12.7457
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.00855
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8696
  norm       = 0.0001
  Prefactor  = 23.9237
  Prefactor  = 0.0001
  norm       = 1.50325
  Prefactor  = 12.0097
  Prefactor  = 47.0045
  Prefactor  = 42.5733
  Normalizat = 1.30754
  Prefactor  = 0.541091
 **********
 **   18 **HESSE 
 **********

 FCN=   5271.775     FROM HESSE     STATUS=OK           454 CALLS     3517 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    80.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0663        1.6128        .64271E-04   -1.5358    
   4  Prefactor     .73714        11.303        .24405E-02   -1.5536    
   5  norm          .10000E-03    6.9969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6833        3.4714        .12683E-03   -1.5324    
   8  Prefactor     12.746        23.332        .11210E-03   -1.4994    
   9  norm          .10000E-03    1.1928        .77295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1786        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3758        .16430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9366        .97572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.4273        .14916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0086        13.683        .13352E-03   -1.5108    
  15  norm          .10000E-03    3.7411        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.870        29.992        .10753E-03   -1.4963    
  18  norm          .10000E-03    4.8763        .15639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.924        17.614        .81882E-04   -1.4729    
  20  Prefactor     .10000E-03    3.6542        .13532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5033        1.7350        .94557E-04   -1.5463    
  22  Prefactor     12.010        13.353        .11558E-03   -1.5015    
  23  Prefactor     47.005        85.662        .29150E-03   -1.4336    
  24  Prefactor     42.573        35.370        .61434E-04   -1.4402    
  25  Normalizat    1.3075        .21603        .20204E-03   -.83342    
  26  Prefactor     .54109        .21801        .32492E-03   -1.1013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54625e-09
Minuit parameter uncertainties:
  1  8.06361e-06
  2  6.54901e-05
  3  1.6128
  4  5.77402
  5  5.90201e-06
  6  4.07525e-06
  7  3.47156
  8  23.3486
  9  1.38314e-06
  10  4.75823e-06
  11  2.7007e-06
  12  4.18236e-06
  13  1.88278e-06
  14  13.6882
  15  4.72962e-06
  16  3.99151e-06
  17  30.0247
  18  2.25311e-06
  19  17.6181
  20  1.92154e-05
  21  1.73504
  22  13.3564
  23  85.8871
  24  35.3875
  25  0.216181
  26  0.218352
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.883e-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:  5.411e-01  2.184e-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.308e+00  2.162e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389201/likelihoodResults_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.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) = 5271.7763722
delta logL = -0.00103660028253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5271.77533559
delta logL = 4.36466507381e-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.9242       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54109       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=   5271.775     FROM MIGRAD    STATUS=FAILED        84 CALLS      224 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10030E-03    903.13        .14924E-02** at limit **
   2  alpha         1.8385        4.0807        .17049        .19842E-05
   3  Normalizat    1.3075        .10346        .20204E-03   -.94533E-05
   4  Prefactor     .54109        .11179        .32491E-03   -.52485E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5271.775     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      378 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10030E-03    903.13        .31589E-03** at limit **
   2  alpha         1.8385        4.0807        .86586E-05    .19842E-05
   3  Normalizat    1.3075        .10346        .64300E-06   -.94533E-05
   4  Prefactor     .54109        .11179        .35760E-06   -.52485E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5271.775     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      409 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.4853        .29847E-03** at limit **
   2  alpha         1.7505        2.7858        .68197E-02   -.13003E-07
   3  Normalizat    1.3075        .19991        .80816E-05    .18006E-04
   4  Prefactor     .54109        .21585        .12997E-04    .11547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.75047
  Normalizat = 1.30754
  Prefactor  = 0.54109
 **********
 **   18 **HESSE 
 **********

 FCN=   5271.775     FROM HESSE     STATUS=OK            23 CALLS      432 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4850        .59694E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7505        3.0498        .13639E-02   -.30450    
   3  Normalizat    1.3075        .20015        .16163E-05   -.83342    
   4  Prefactor     .54109        .21613        .25993E-05   -1.1013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76933e-12
Minuit parameter uncertainties:
  1  1.35838e-05
  2  319.473
  3  0.200266
  4  0.216463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389201': 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) = 5271.77533545
delta logL = 1.45188096212e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.358e-05  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.750e+00  3.195e+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:  5.411e-01  2.165e-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.308e+00  2.003e-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/389201/cmap_HighResolution_426211201_426470401_4FGL_J1423.1+3738_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='2.66e-08', time_completed='2021-09-09 12:12:34.129007', job_id='389201', GAL2='0.54', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631214754.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='721' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:12:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 389201: <4FGL_J1423.1+3738_daily_bin721> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin721> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 12:01:19 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:01:20 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:01:20 2021
Terminated at Thu Sep  9 12:12:34 2021
Results reported at Thu Sep  9 12:12:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin721 215.792 37.6452 426211201 426470401 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 :                                   652.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            675 sec.

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

