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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1023
RA = 215.792, Dec = 37.6452
tmin = 504489601, tmax = 504748801
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='390774', job_status='RUN', time_executed='2021-09-09 12:10:18.583317', time_epoch_executed='1631214618.58' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390774

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390774/ft1_4FGL_J1423.1+3738_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390774/ft2_4FGL_J1423.1+3738_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390774/ft1_4FGL_J1423.1+3738_daily_bin1023.fits outfile=/scratch/kocevski/390774/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1023.fits ra=215.792 dec=37.6452 rad=12.0 tmin=504489601.0 tmax=504748801.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 4.52
user 4.19
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390774/ft1_filtered_4FGL_J1423.1+3738_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/390774/ft2_4FGL_J1423.1+3738_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/390774/ltcube_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.fits outfile=/scratch/kocevski/390774/expmap_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.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/390774/ltcube_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.fits
.....................!
real 190.00
user 185.20
sys 4.32

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/390774/ft1_filtered_4FGL_J1423.1+3738_daily_bin1023.fits scfile=/scratch/kocevski/390774/ft2_4FGL_J1423.1+3738_daily_bin1023.fits outfile=/scratch/kocevski/390774/cmap_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.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 2.02
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390774/ft1_filtered_4FGL_J1423.1+3738_daily_bin1023.fits scfile=/scratch/kocevski/390774/ft2_4FGL_J1423.1+3738_daily_bin1023.fits outfile=/scratch/kocevski/390774/cmap_HighResolution_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.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 2.04
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5833       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.381       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.885       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7008       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.221       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.238       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5468       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 '    .10058E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74213       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1142       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=   5131.397     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3068 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.482        .35846E-04** at limit **
   2  Prefactor     .10000E-03    52.077       -.32899E-04** at limit **
   3  norm          4.4479        1.7507       -.51628E-07    .62653E-04
   4  Prefactor     7.5840        5.5217       -.30630E-06   -.20720E-03
   5  norm          .10000E-03    7.2116        .16295E-06** at limit **
   6  Prefactor     .10000E-03    7.8688       -.30800E-05** at limit **
   7  Prefactor     .10000E-03    1.6834       -.24084E-07** at limit **
   8  Prefactor     31.381        22.114        .46581E-06    .21667E-04
   9  norm          .10000E-03    1.9836       -.39321E-07** at limit **
  10  Prefactor     .10000E-03    4.5307       -.31579E-05** at limit **
  11  Prefactor     .10000E-03    7.8856       -.30393E-05** at limit **
  12  Prefactor     .10000E-03    2.0081       -.45663E-07** at limit **
  13  norm          .10000E-03    4.1511       -.18009E-05** at limit **
  14  Prefactor     10.873        28.956       -.17429E-04   -.42022E-05
  15  norm          7.7011        5.2429       -.75768E-07   -.53653E-04
  16  Prefactor     38.194        36.985        .66480E-05    .12857E-04
  17  Prefactor     16.223        39.110        .14592E-05   -.76813E-05
  18  norm          .10000E-03    4.3076        .45437E-05** at limit **
  19  Prefactor     15.241        17.259       -.39353E-06   -.16157E-03
  20  Prefactor     .10000E-03    10.794        .51285E-05** at limit **
  21  norm          1.5468        1.6480       -.23064E-06   -.10296E-02
  22  Prefactor     .10000E-03    6.7242        .36561E-05** at limit **
  23  Prefactor     .10000E-03    22.094       -.14963E-04** at limit **
  24  Prefactor     .10000E-03    25.268        .36760E-05** at limit **
  25  Normalizat    .74186        .18421        .18987E-05   -.50414E-04
  26  Prefactor     1.1145        .19874       -.29715E-06    .18430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.44793
  Prefactor  = 7.58404
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3814
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8729
  norm       = 7.70109
  Prefactor  = 38.1939
  Prefactor  = 16.2231
  norm       = 0.0001
  Prefactor  = 15.2413
  Prefactor  = 0.0001
  norm       = 1.54683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.741862
  Prefactor  = 1.11454
 **********
 **   18 **HESSE 
 **********

 FCN=   5131.397     FROM HESSE     STATUS=OK           450 CALLS     3518 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4479        1.7515        .57106E-04   -1.5286    
   4  Prefactor     7.5840        5.5388        .13547E-03   -1.5157    
   5  norm          .10000E-03    7.2427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6896        .90755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.381        22.207        .71526E-04   -1.4587    
   9  norm          .10000E-03    2.0479        .19699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5357        .14886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.9040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1048        .19814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1519        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.873        29.038        .12143E-03   -1.5048    
  15  norm          7.7011        5.2404        .13067E-03   -1.5153    
  16  Prefactor     38.194        36.988        .32429E-03   -1.4471    
  17  Prefactor     16.223        39.152        .99443E-04   -1.4902    
  18  norm          .10000E-03    4.3118        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.241        17.222        .10260E-03   -1.4927    
  20  Prefactor     .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5468        1.6253        .89370E-04   -1.5459    
  22  Prefactor     .10000E-03    6.7682        .18135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .74186        .22148        .25124E-03   -1.0226    
  26  Prefactor     1.1145        .23921        .23960E-03   -.89003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56719e-10
Minuit parameter uncertainties:
  1  2.23212e-05
  2  4.9962e-06
  3  1.75155
  4  5.53921
  5  1.39834e-06
  6  3.29601e-06
  7  8.58476e-07
  8  22.2126
  9  6.0594e-07
  10  7.42043e-06
  11  2.94218e-05
  12  4.95533e-06
  13  1.27295e-06
  14  29.0761
  15  5.2407
  16  37.0098
  17  39.2145
  18  2.68431e-06
  19  17.2279
  20  2.62434e-05
  21  1.62532
  22  1.15963e-05
  23  1.0818e-06
  24  4.91774e-05
  25  0.221744
  26  0.239438
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.273e-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:  1.115e+00  2.394e-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:  7.419e-01  2.217e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390774/likelihoodResults_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.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): 102
logL (Free Index) = 5131.39800582
delta logL = -0.00110168292485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5131.39690408
delta logL = 6.45068212179e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9153       1.0000          .0000       5.0000    
     3 'Normalizat'    .74186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       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=   5131.397     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      239 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    176.80        .14345E-01** at limit **
   2  alpha         1.5125        3.8068        .17069        .10657E-07
   3  Normalizat    .74186        .26918E-01    .25123E-03    .13937E-04
   4  Prefactor     1.1145        .31036E-01    .23960E-03    .15231E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.51249
  Normalizat = 0.741863
  Prefactor  = 1.11454
 **********
 **   18 **HESSE 
 **********

 FCN=   5131.397     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6683        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5125        2.8784        .68276E-02   -.40607    
   3  Normalizat    .74186        .20597        .10049E-04   -1.0226    
   4  Prefactor     1.1145        .23750        .95839E-05   -.89003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76128e-12
Minuit parameter uncertainties:
  1  3.8903e-06
  2  251.39
  3  0.206189
  4  0.237729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390774': 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) = 5131.39690284
delta logL = 1.30240005092e-06

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  3.890e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.512e+00  2.514e+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:  1.115e+00  2.377e-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:  7.419e-01  2.062e-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/390774/cmap_HighResolution_504489601_504748801_4FGL_J1423.1+3738_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='2.62e-08', time_completed='2021-09-09 12:21:29.478813', job_id='390774', GAL2='1.11', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631215289.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1023' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:21:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 390774: <4FGL_J1423.1+3738_daily_bin1023> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1023 215.792 37.6452 504489601 504748801 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 :                                   654.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

