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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin133
RA = 215.792, Dec = 37.6452
tmin = 273801601, tmax = 274060801
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='386240', job_status='RUN', time_executed='2021-09-09 11:51:56.335266', time_epoch_executed='1631213516.34' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386240/ft1_4FGL_J1423.1+3738_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386240/ft2_4FGL_J1423.1+3738_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386240/ft1_4FGL_J1423.1+3738_daily_bin133.fits outfile=/scratch/kocevski/386240/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin133.fits ra=215.792 dec=37.6452 rad=12.0 tmin=273801601.0 tmax=274060801.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.63
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386240/ft2_4FGL_J1423.1+3738_daily_bin133.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/386240/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/386240/ft1_filtered_4FGL_J1423.1+3738_daily_bin133.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386240/ft1_filtered_4FGL_J1423.1+3738_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/386240/ft2_4FGL_J1423.1+3738_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/386240/ltcube_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.fits outfile=/scratch/kocevski/386240/expmap_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.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/386240/ltcube_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.fits
.....................!
real 193.57
user 187.77
sys 5.35

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/386240/ft1_filtered_4FGL_J1423.1+3738_daily_bin133.fits scfile=/scratch/kocevski/386240/ft2_4FGL_J1423.1+3738_daily_bin133.fits outfile=/scratch/kocevski/386240/cmap_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=215.792 yref=37.6452 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386240/ft1_filtered_4FGL_J1423.1+3738_daily_bin133.fits scfile=/scratch/kocevski/386240/ft2_4FGL_J1423.1+3738_daily_bin133.fits outfile=/scratch/kocevski/386240/cmap_HighResolution_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42761E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5009       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3632       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16868E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11753E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.898       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7179       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8330       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0644       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.503       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.532       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3486       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0029       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=   6952.226     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3064 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    726.69       -.38655E-04** at limit **
   2  Prefactor     10.993        179.72       -.89626E-05   -.19320E-04
   3  norm          5.1748        1.8723        .21706E-07   -.84342E-05
   4  Prefactor     2.5005        3.2957        .36486E-05   -.82576E-03
   5  norm          3.9677        13.351        .46458E-06    .46167E-06
   6  Prefactor     4.3557        15.860        .29982E-06   -.57274E-05
   7  Prefactor     .10000E-03    1.6533        .59169E-07** at limit **
   8  Prefactor     .10000E-03    41.679        .38239E-05** at limit **
   9  norm          .10000E-03    1.3054        .37536E-07** at limit **
  10  Prefactor     .10000E-03    4.1316        .27799E-06** at limit **
  11  Prefactor     .10000E-03    4.5739        .44815E-06** at limit **
  12  Prefactor     .10063E-03    1.8363       -.57008E-06** at limit **
  13  norm          .10000E-03    4.3816       -.18733E-06** at limit **
  14  Prefactor     .10000E-03    20.773       -.14633E-05** at limit **
  15  norm          19.897        8.0999        .11119E-06    .13171E-03
  16  Prefactor     10.808        21.318        .27012E-07    .36311E-05
  17  Prefactor     .10000E-03    18.995        .13881E-05** at limit **
  18  norm          4.7180        4.7115       -.22142E-05    .55416E-03
  19  Prefactor     .10000E-03    4.8501       -.96505E-07** at limit **
  20  Prefactor     8.8251        8.7471        .11807E-05    .18659E-03
  21  norm          1.0667        1.6085       -.64993E-06   -.52597E-03
  22  Prefactor     .10000E-03    4.1835       -.22848E-06** at limit **
  23  Prefactor     45.424        61.318       -.84867E-05   -.33699E-03
  24  Prefactor     30.531        20.851        .78555E-07   -.10082E-05
  25  Normalizat    1.3487        .18645        .52377E-06    .16747E-03
  26  Prefactor     1.0030        .19945       -.12218E-05    .19602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100103
  Prefactor  = 10.9934
  norm       = 5.17482
  Prefactor  = 2.5005
  norm       = 3.96768
  Prefactor  = 4.3557
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100629
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 19.8972
  Prefactor  = 10.8078
  Prefactor  = 0.0001
  norm       = 4.71796
  Prefactor  = 0.0001
  Prefactor  = 8.82513
  norm       = 1.06673
  Prefactor  = 0.0001
  Prefactor  = 45.424
  Prefactor  = 30.5307
  Normalizat = 1.34874
  Prefactor  = 1.00299
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.226     FROM HESSE     STATUS=OK           468 CALLS     3532 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    764.08        .42465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.993        184.41        .12069E-03   -1.5045    
   3  norm          5.1748        1.8736        .66032E-04   -1.5253    
   4  Prefactor     2.5005        3.3366        .85290E-03   -1.5392    
   5  norm          3.9677        13.337        .20248E-03   -1.5310    
   6  Prefactor     4.3557        15.852        .19283E-03   -1.5291    
   7  Prefactor     .10000E-03    1.6566        .10470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3107        .93014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1360        .16551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5801        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10063E-03    4.2156        .37300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3841        .17047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.897        8.1101        .89789E-04   -1.4816    
  16  Prefactor     10.808        21.318        .12187E-03   -1.5050    
  17  Prefactor     .10000E-03    19.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7180        4.7338        .88544E-03   -1.5274    
  19  Prefactor     .10000E-03    4.8571        .17933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8251        8.4812        .13487E-03   -1.5114    
  21  norm          1.0667        1.3816        .11472E-02   -1.5501    
  22  Prefactor     .10000E-03    4.1930        .16657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.424        63.327        .29719E-03   -1.4359    
  24  Prefactor     30.531        20.850        .72511E-04   -1.4602    
  25  Normalizat    1.3487        .22903        .24010E-03   -.82123    
  26  Prefactor     1.0030        .24266        .30550E-03   -.92630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67178e-09
Minuit parameter uncertainties:
  1  0.0179656
  2  90.3796
  3  1.87359
  4  3.33683
  5  13.3469
  6  15.8669
  7  2.95375e-07
  8  0.000503922
  9  2.59419e-07
  10  1.5619e-05
  11  2.72572e-05
  12  0.00325827
  13  1.37744e-05
  14  0.000241906
  15  8.11054
  16  21.3333
  17  0.00017241
  18  4.73419
  19  7.9562e-06
  20  8.48239
  21  1.38167
  22  1.60254e-05
  23  63.4212
  24  20.8554
  25  0.2292
  26  0.242922
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.377e-05  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.003e+00  2.429e-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.349e+00  2.292e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386240/likelihoodResults_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.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) = 6952.22745594
delta logL = -0.0010598397721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6952.22639607
delta logL = 3.02761691273e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9192       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0030       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=   6952.226     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    161.01        .17096E-01** at limit **
   2  alpha         1.6077        3.2553        .17060        .15327E-08
   3  Normalizat    1.3487        .27504E-01    .24010E-03    .68656E-05
   4  Prefactor     1.0030        .30861E-01    .30550E-03    .63636E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.60768
  Normalizat = 1.34874
  Prefactor  = 1.00299
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.226     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .96E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6563        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6077        2.9102        .68241E-02   -.36498    
   3  Normalizat    1.3487        .21431        .96041E-05   -.82123    
   4  Prefactor     1.0030        .24037        .12220E-04   -.92630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63495e-14
Minuit parameter uncertainties:
  1  5.30896e-08
  2  279.703
  3  0.214448
  4  0.240624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386240': 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) = 6952.22639546
delta logL = 6.3495554059e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.309e-08  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.608e+00  2.797e+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.003e+00  2.406e-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.349e+00  2.144e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/386240/cmap_HighResolution_273801601_274060801_4FGL_J1423.1+3738_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='2.69e-08', time_completed='2021-09-09 12:04:58.029024', job_id='386240', GAL2='1.00', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631214298.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='133' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:04:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 386240: <4FGL_J1423.1+3738_daily_bin133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin133 215.792 37.6452 273801601 274060801 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

