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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin76
RA = 215.792, Dec = 37.6452
tmin = 259027201, tmax = 259286401
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='386151', job_status='RUN', time_executed='2021-09-09 11:51:50.317263', time_epoch_executed='1631213510.32' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386151/ft1_4FGL_J1423.1+3738_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386151/ft2_4FGL_J1423.1+3738_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386151/ft1_4FGL_J1423.1+3738_daily_bin76.fits outfile=/scratch/kocevski/386151/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin76.fits ra=215.792 dec=37.6452 rad=12.0 tmin=259027201.0 tmax=259286401.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.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386151/ft1_filtered_4FGL_J1423.1+3738_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/386151/ft2_4FGL_J1423.1+3738_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/386151/ltcube_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.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/386151/ft2_4FGL_J1423.1+3738_daily_bin76.fits
.....................!
real 12.44
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386151/ft1_filtered_4FGL_J1423.1+3738_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/386151/ft2_4FGL_J1423.1+3738_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/386151/ltcube_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.fits outfile=/scratch/kocevski/386151/expmap_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.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/386151/ltcube_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.fits
.....................!
real 189.93
user 185.05
sys 4.48

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/386151/ft1_filtered_4FGL_J1423.1+3738_daily_bin76.fits scfile=/scratch/kocevski/386151/ft2_4FGL_J1423.1+3738_daily_bin76.fits outfile=/scratch/kocevski/386151/cmap_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386151/ft1_filtered_4FGL_J1423.1+3738_daily_bin76.fits scfile=/scratch/kocevski/386151/ft2_4FGL_J1423.1+3738_daily_bin76.fits outfile=/scratch/kocevski/386151/cmap_HighResolution_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91285E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32185E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8608       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .18766       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.722       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.205       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4625       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .39266       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=   5431.682     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2726 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.718        .15273E-04** at limit **
   2  Prefactor     .10000E-03    24.625       -.53651E-05** at limit **
   3  norm          2.1830        1.2955       -.17502E-06    .71854E-04
   4  Prefactor     .10164E-03    2.0860       -.16606E-05** at limit **
   5  norm          13.923        15.226       -.11608E-05    .43121E-04
   6  Prefactor     .10000E-03    4.3014       -.10027E-05** at limit **
   7  Prefactor     .10000E-03    2.1091       -.85849E-07** at limit **
   8  Prefactor     .10000E-03    26.588        .33173E-06** at limit **
   9  norm          .10000E-03    1.3736       -.12645E-07** at limit **
  10  Prefactor     .10000E-03    6.2998        .20130E-06** at limit **
  11  Prefactor     6.5322        14.772        .28030E-05    .10943E-03
  12  Prefactor     .37649E-01    1.5390       -.97923E-06    .38110E-03
  13  norm          .10000E-03    5.2452       -.81831E-07** at limit **
  14  Prefactor     3.8319        49.957       -.59748E-04   -.16171E-04
  15  norm          .10000E-03    4.2776        .69312E-06** at limit **
  16  Prefactor     .10000E-03    23.444       -.70147E-05** at limit **
  17  Prefactor     .10000E-03    16.537        .57562E-05** at limit **
  18  norm          .10000E-03    4.5785       -.10164E-05** at limit **
  19  Prefactor     .10000E-03    11.460       -.15044E-05** at limit **
  20  Prefactor     .10000E-03    3.1617        .16498E-06** at limit **
  21  norm          .18901        .95662        .11727E-06   -.14247E-02
  22  Prefactor     .10000E-03    4.4512        .12282E-05** at limit **
  23  Prefactor     14.691        56.313       -.63910E-04    .38502E-05
  24  Prefactor     22.203        20.669       -.26815E-06    .13370E-04
  25  Normalizat    1.4624        .17946        .42599E-05    .72218E-03
  26  Prefactor     .39287        .18746        .14088E-05    .47714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18304
  Prefactor  = 0.000101639
  norm       = 13.9229
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.53221
  Prefactor  = 0.0376494
  norm       = 0.0001
  Prefactor  = 3.83195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.189015
  Prefactor  = 0.0001
  Prefactor  = 14.6915
  Prefactor  = 22.203
  Normalizat = 1.46237
  Prefactor  = 0.392871
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.682     FROM HESSE     STATUS=OK           460 CALLS     3186 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1830        1.2979        .62458E-04   -1.5412    
   4  Prefactor     .10164E-03    5.5579        .35512E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.923        15.248        .10734E-03   -1.4962    
   6  Prefactor     .10000E-03    4.3017        .14928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1274        .10452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3883        .84331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3029        .18035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5322        14.773        .15710E-03   -1.5197    
  12  Prefactor     .37649E-01    39.173        .17501E-02   -1.5669    
  13  norm          .10000E-03    5.2513        .16483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8319        50.906        .20537E-03   -1.5316    
  15  norm          .10000E-03    4.3598        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6464        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2181        .12783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .18901        .91565        .13697E-03   -1.5621    
  22  Prefactor     .10000E-03    4.4659        .15182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.691        55.862        .10439E-03   -1.4941    
  24  Prefactor     22.203        20.660        .85003E-04   -1.4765    
  25  Normalizat    1.4624        .19562        .18006E-03   -.78841    
  26  Prefactor     .39287        .20150        .35789E-03   -1.1717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0513e-09
Minuit parameter uncertainties:
  1  7.12525e-05
  2  4.18808e-05
  3  1.29793
  4  0.00603742
  5  15.2522
  6  2.86991e-06
  7  7.19522e-06
  8  1.75167e-05
  9  6.77718e-06
  10  1.69965e-05
  11  14.7812
  12  2.42723
  13  9.02201e-06
  14  27.9623
  15  3.19615e-06
  16  0.000142458
  17  6.94064e-05
  18  9.30111e-06
  19  3.74559e-05
  20  7.1927e-06
  21  0.831835
  22  2.97637e-06
  23  56.062
  24  20.667
  25  0.195718
  26  0.20186
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  9.022e-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:  3.929e-01  2.019e-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.462e+00  1.957e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386151/likelihoodResults_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.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) = 5431.68310416
delta logL = -0.000898271664482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5431.68220589
delta logL = 1.54614099301e-10

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.9285       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39287       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=   5431.682     FROM MIGRAD    STATUS=FAILED       147 CALLS      293 TOTAL
                     EDM=   .52E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57264E-02    10.621        .10389E-01   -.17139E-02
   2  alpha         4.6175        3.4865        .50000       -.84716E-04
   3  Normalizat    1.4606        .35621E-01    .18005E-03    .17995E-04
   4  Prefactor     .39402        .38652E-01    .35789E-03    .21919E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5431.682     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      371 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57264E-02    10.621        .21983E-03   -.17139E-02
   2  alpha         4.6175        3.4865        .23369E-01   -.84716E-04
   3  Normalizat    1.4606        .35621E-01    .84782E-05    .17995E-04
   4  Prefactor     .39402        .38652E-01    .26430E-04    .21919E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5431.682     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      426 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57264E-02    2.0766         .0000       -.28056E-03
   2  alpha         4.6175        3.5341         .0000       -.84669E-04
   3  Normalizat    1.4606        .19708         .0000        .14522E-04
   4  Prefactor     .39402        .20480         .0000        .11118E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00572639
  alpha      = 4.61754
  Normalizat = 1.46063
  Prefactor  = 0.394022
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.682     FROM HESSE     STATUS=OK            29 CALLS      455 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57264E-02    2.1152        .22775E-04   -1.5723    
   2  alpha         4.6175        3.9873        .50000        2.1312    
   3  Normalizat    1.4606        .20040        .14404E-05   -.78891    
   4  Prefactor     .39402        .20605        .28631E-05   -1.1711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00051e-07
Minuit parameter uncertainties:
  1  0.218191
  2  14.8919
  3  0.200512
  4  0.206441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386151': 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) = 5431.68179234
delta logL = 0.000413542687966

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  5.726e-03  2.182e-01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  4.618e+00  1.489e+01  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:  3.940e-01  2.064e-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.461e+00  2.005e-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/386151/cmap_HighResolution_259027201_259286401_4FGL_J1423.1+3738_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='2.87e-08', time_completed='2021-09-09 12:02:41.418411', job_id='386151', GAL2='0.39', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631214161.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='4.14e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='76' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:02:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 386151: <4FGL_J1423.1+3738_daily_bin76> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin76 215.792 37.6452 259027201 259286401 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 :                                   649.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            669 sec.

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

