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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin606
RA = 215.792, Dec = 37.6452
tmin = 396403201, tmax = 396662401
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='389035', job_status='RUN', time_executed='2021-09-09 12:01:24.078907', time_epoch_executed='1631214084.08' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/389035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/389035/ft1_4FGL_J1423.1+3738_daily_bin606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/389035/ft2_4FGL_J1423.1+3738_daily_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/389035/ft1_4FGL_J1423.1+3738_daily_bin606.fits outfile=/scratch/kocevski/389035/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin606.fits ra=215.792 dec=37.6452 rad=12.0 tmin=396403201.0 tmax=396662401.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.60
user 4.31
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/389035/ft1_filtered_4FGL_J1423.1+3738_daily_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/389035/ft2_4FGL_J1423.1+3738_daily_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/389035/ltcube_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.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/389035/ft2_4FGL_J1423.1+3738_daily_bin606.fits
.....................!
real 11.95
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/389035/ft1_filtered_4FGL_J1423.1+3738_daily_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/389035/ft2_4FGL_J1423.1+3738_daily_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/389035/ltcube_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.fits outfile=/scratch/kocevski/389035/expmap_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.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/389035/ltcube_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.fits
.....................!
real 193.22
user 186.68
sys 6.16

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/389035/ft1_filtered_4FGL_J1423.1+3738_daily_bin606.fits scfile=/scratch/kocevski/389035/ft2_4FGL_J1423.1+3738_daily_bin606.fits outfile=/scratch/kocevski/389035/cmap_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/389035/ft1_filtered_4FGL_J1423.1+3738_daily_bin606.fits scfile=/scratch/kocevski/389035/ft2_4FGL_J1423.1+3738_daily_bin606.fits outfile=/scratch/kocevski/389035/cmap_HighResolution_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.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.54
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.848       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4700       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34611E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11904E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5581       1.0000         .10000E-03   10000.    
    15 'norm      '    .67937E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.059       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.779       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67886       1.0000         .10000E-03   10000.    
    21 'norm      '    3.2910       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.753       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83898       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0732       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=   6260.984     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3159 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    23.356       -.13588E-05** at limit **
   2  Prefactor     .10000E-03    62.953       -.11496E-06** at limit **
   3  norm          10.849        2.2536        .68643E-08    .15402E-04
   4  Prefactor     .10000E-03    2.1450        .16361E-06** at limit **
   5  norm          .10000E-03    3.7407        .57855E-07** at limit **
   6  Prefactor     .10000E-03    12.327        .26231E-06** at limit **
   7  Prefactor     4.9481        4.9926        .13631E-06    .43156E-03
   8  Prefactor     6.4739        18.849        .64277E-07    .10461E-03
   9  norm          .10000E-03    2.6693        .25890E-06** at limit **
  10  Prefactor     21.598        16.095       -.49045E-05   -.30453E-03
  11  Prefactor     .10000E-03    67.368       -.30239E-04** at limit **
  12  Prefactor     .10000E-03    1.8606        .73916E-06** at limit **
  13  norm          .10000E-03    8.0974        .13685E-06** at limit **
  14  Prefactor     8.5619        18.145       -.59318E-06    .15608E-04
  15  norm          .10002E-03    5.4433        .78666E-05** at limit **
  16  Prefactor     14.102        44.662        .79161E-06   -.79763E-04
  17  Prefactor     18.056        20.054       -.13140E-07    .33217E-04
  18  norm          .10000E-03    2.1330       -.25801E-08** at limit **
  19  Prefactor     10.774        12.381       -.36225E-07   -.85652E-04
  20  Prefactor     .64509        5.3783        .44285E-06   -.77448E-04
  21  norm          3.2923        1.8044       -.79494E-07   -.15039E-02
  22  Prefactor     .10001E-03    14.502        .18173E-05** at limit **
  23  Prefactor     .10001E-03    24.126        .16285E-05** at limit **
  24  Prefactor     28.742        23.921       -.49120E-06    .31294E-04
  25  Normalizat    .83883        .16585        .43563E-06   -.14735E-03
  26  Prefactor     1.0734        .18535       -.14394E-05   -.48111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.000100004
  norm       = 10.8485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94815
  Prefactor  = 6.47393
  norm       = 0.0001
  Prefactor  = 21.5984
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.56191
  norm       = 0.00010002
  Prefactor  = 14.1021
  Prefactor  = 18.0558
  norm       = 0.0001
  Prefactor  = 10.7736
  Prefactor  = 0.645086
  norm       = 3.29231
  Prefactor  = 0.00010001
  Prefactor  = 0.000100009
  Prefactor  = 28.7425
  Normalizat = 0.838831
  Prefactor  = 1.07336
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.984     FROM HESSE     STATUS=OK           462 CALLS     3621 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    23.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    63.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.849        2.2551        .52002E-04   -1.5049    
   4  Prefactor     .10000E-03    2.2022        .22625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7449        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9481        4.9807        .16850E-03   -1.5263    
   8  Prefactor     6.4739        18.878        .15778E-03   -1.5199    
   9  norm          .10000E-03    2.7172        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.598        16.138        .86165E-04   -1.4778    
  11  Prefactor     .10000E-03    73.446        .51594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3622        .20800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.1177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.5619        18.123        .13703E-03   -1.5123    
  15  norm          .10002E-03    29.922        .24994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.102        44.402        .10614E-03   -1.4957    
  17  Prefactor     18.056        20.057        .94249E-04   -1.4858    
  18  norm          .10000E-03    2.1333        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.774        12.298        .12203E-03   -1.5051    
  20  Prefactor     .64509        28.390        .30752E-02   -1.5547    
  21  norm          3.2923        1.8559        .67706E-04   -1.5345    
  22  Prefactor     .10001E-03    15.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    24.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.742        23.912        .74716E-04   -1.4635    
  25  Normalizat    .83883        .19800        .24079E-03   -.98644    
  26  Prefactor     1.0734        .22332        .25485E-03   -.90322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57755e-08
Minuit parameter uncertainties:
  1  0.000887211
  2  0.00106628
  3  2.25515
  4  2.625e-05
  5  1.32578e-05
  6  8.42736e-05
  7  4.98109
  8  18.8951
  9  2.83982e-05
  10  16.141
  11  0.000654564
  12  0.00013475
  13  1.41079e-05
  14  18.1347
  15  0.00156576
  16  44.5063
  17  20.0646
  18  5.61764e-07
  19  12.3006
  20  8.56268
  21  1.85591
  22  0.000788464
  23  0.000920586
  24  23.9198
  25  0.198171
  26  0.223517
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.411e-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.073e+00  2.235e-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:  8.388e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 215.792 37.645
Photon Flux Upper Limit: 3.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/389035/likelihoodResults_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.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) = 6260.98476988
delta logL = -0.000586059386478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6260.98418761
delta logL = -3.79446191801e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14082E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9633       1.0000          .0000       5.0000    
     3 'Normalizat'    .83916       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0730       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.

 FCN=   6260.984     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      201 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    49.766        .90712E-02** at limit **
   2  alpha         1.9995        2.9355        .42419       -.21930E-04
   3  Normalizat    .83883        .15472        .44119E-01    .40209E-05
   4  Prefactor     1.0734        .18391        .57634E-01   -.51002E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.99946
  Normalizat = 0.838827
  Prefactor  = 1.07337
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.984     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.5364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9995        3.4286        .50000       -.20158    
   3  Normalizat    .83883        .18499        .24078E-03   -.98644    
   4  Prefactor     1.0734        .21987        .25485E-03   -.90322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89509e-10
Minuit parameter uncertainties:
  1  0.000154004
  2  2.52367
  3  0.185129
  4  0.220056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/389035': 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) = 6260.9841832
delta logL = 6.14281816524e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  1.540e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.999e+00  2.524e+00  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.073e+00  2.201e-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:  8.388e-01  1.851e-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/389035/cmap_HighResolution_396403201_396662401_4FGL_J1423.1+3738_daily_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-09-09 12:13:59.966254', job_id='389035', GAL2='1.07', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631214839.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='606' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:13:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 389035: <4FGL_J1423.1+3738_daily_bin606> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin606 215.792 37.6452 396403201 396662401 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

