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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1120
RA = 215.792, Dec = 37.6452
tmin = 529632001, tmax = 529891201
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='390923', job_status='RUN', time_executed='2021-09-09 12:08:52.363679', time_epoch_executed='1631214532.36' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/390923

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/390923/ft1_4FGL_J1423.1+3738_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/390923/ft2_4FGL_J1423.1+3738_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/390923/ft1_4FGL_J1423.1+3738_daily_bin1120.fits outfile=/scratch/kocevski/390923/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1120.fits ra=215.792 dec=37.6452 rad=12.0 tmin=529632001.0 tmax=529891201.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.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/390923/ft1_filtered_4FGL_J1423.1+3738_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/390923/ft2_4FGL_J1423.1+3738_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/390923/ltcube_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.fits outfile=/scratch/kocevski/390923/expmap_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.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/390923/ltcube_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.fits
.....................!
real 192.70
user 186.08
sys 5.91

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/390923/ft1_filtered_4FGL_J1423.1+3738_daily_bin1120.fits scfile=/scratch/kocevski/390923/ft2_4FGL_J1423.1+3738_daily_bin1120.fits outfile=/scratch/kocevski/390923/cmap_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.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 1.38
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/390923/ft1_filtered_4FGL_J1423.1+3738_daily_bin1120.fits scfile=/scratch/kocevski/390923/ft2_4FGL_J1423.1+3738_daily_bin1120.fits outfile=/scratch/kocevski/390923/cmap_HighResolution_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.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 1.27
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6777       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    34.305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.567       1.0000         .10000E-03   10000.    
     9 'norm      '    .28618E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.520       1.0000         .10000E-03   10000.    
    13 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.235       1.0000         .10000E-03   10000.    
    21 'norm      '    .37450       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13055E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.677       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0860       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81905       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=   6334.791     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3082 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.421        45.634       -.28078E-04    .11592E-05
   2  Prefactor     .10000E-03    20.805       -.24404E-05** at limit **
   3  norm          3.6776        1.6306       -.10718E-06   -.11838E-03
   4  Prefactor     .10000E-03    2.3541        .11164E-06** at limit **
   5  norm          34.304        17.638        .12567E-06    .84189E-05
   6  Prefactor     .10000E-03    10.951       -.50772E-05** at limit **
   7  Prefactor     .10000E-03    2.3112        .20901E-07** at limit **
   8  Prefactor     11.567        20.395       -.43023E-06   -.17476E-04
   9  norm          .10004E-03    1.7627        .10910E-05** at limit **
  10  Prefactor     23.123        13.224       -.46200E-06   -.40125E-03
  11  Prefactor     .10000E-03    10.852       -.14198E-05** at limit **
  12  Prefactor     15.521        4.7876       -.13470E-05   -.27105E-03
  13  norm          .10000E-03    6.2678       -.54588E-06** at limit **
  14  Prefactor     .10000E-03    4.9561       -.87342E-07** at limit **
  15  norm          .10000E-03    3.9780       -.68457E-07** at limit **
  16  Prefactor     .10000E-03    13.748        .23602E-05** at limit **
  17  Prefactor     .10000E-03    83.806        .40346E-06** at limit **
  18  norm          3.8019        8.4592       -.11048E-05   -.16048E-03
  19  Prefactor     2.0100        9.7000       -.25463E-05   -.30876E-03
  20  Prefactor     13.242        7.2764       -.52641E-06    .94474E-04
  21  norm          .37229        .99678       -.33220E-06   -.16827E-02
  22  Prefactor     .10000E-03    10.580        .45387E-05** at limit **
  23  Prefactor     .10000E-03    33.492        .19183E-05** at limit **
  24  Prefactor     37.690        24.686        .24329E-05   -.66568E-04
  25  Normalizat    1.0859        .17164        .17721E-05   -.16132E-03
  26  Prefactor     .81931        .18681        .45195E-06   -.51707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4213
  Prefactor  = 0.0001
  norm       = 3.67756
  Prefactor  = 0.0001
  norm       = 34.304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.567
  norm       = 0.000100038
  Prefactor  = 23.1231
  Prefactor  = 0.0001
  Prefactor  = 15.521
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80186
  Prefactor  = 2.00997
  Prefactor  = 13.242
  norm       = 0.372294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6897
  Normalizat = 1.0859
  Prefactor  = 0.81931
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.791     FROM HESSE     STATUS=OK           452 CALLS     3534 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.421        45.484        .68277E-04   -1.4534    
   2  Prefactor     .10000E-03    20.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6776        1.6305        .64971E-04   -1.5324    
   4  Prefactor     .10000E-03    2.3968        .11917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          34.304        17.672        .68419E-04   -1.4536    
   6  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3303        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.567        20.596        .11779E-03   -1.5028    
   9  norm          .10004E-03    8.7281        .20213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.123        13.159        .41650E-03   -1.4746    
  11  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.521        4.7976        .91931E-04   -1.4920    
  13  norm          .10000E-03    6.2715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9576        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0146        .15494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    84.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8019        8.3833        .20700E-03   -1.5318    
  19  Prefactor     2.0100        9.5401        .29208E-03   -1.5424    
  20  Prefactor     13.242        7.0738        .11010E-03   -1.4980    
  21  norm          .37229        .95824        .11783E-03   -1.5586    
  22  Prefactor     .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.690        24.633        .65295E-04   -1.4479    
  25  Normalizat    1.0859        .20540        .22087E-03   -.90206    
  26  Prefactor     .81931        .22261        .28807E-03   -.99020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48144e-09
Minuit parameter uncertainties:
  1  45.5302
  2  4.8733e-06
  3  1.63054
  4  4.75682e-06
  5  17.6749
  6  1.8967e-06
  7  4.30484e-06
  8  20.6082
  9  0.00115262
  10  13.161
  11  5.99374e-06
  12  4.79769
  13  7.46627e-07
  14  2.94553e-06
  15  6.33303e-07
  16  4.8809e-06
  17  6.70791e-05
  18  8.38585
  19  8.76
  20  7.07429
  21  0.958279
  22  0.000120062
  23  1.24897e-05
  24  24.64
  25  0.205549
  26  0.222853
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  7.466e-07  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:  8.193e-01  2.229e-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.086e+00  2.055e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/390923/likelihoodResults_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.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) = 6334.79222562
delta logL = -0.000755598364776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6334.79147
delta logL = 1.8282662495e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9361       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81931       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=   6334.790     FROM MIGRAD    STATUS=FAILED       151 CALLS      295 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38489E-01    47.741        .20890E-01    .14422E-02
   2  alpha         3.9835        2.6869        .50000       -.43610E-04
   3  Normalizat    1.0833        .59064E-01    .22087E-03   -.41246E-03
   4  Prefactor     .82101        .53884E-01    .28807E-03   -.23462E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6334.790     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      374 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38489E-01    47.741        .19313E-03    .14422E-02
   2  alpha         3.9835        2.6869        .10736E-01   -.43610E-04
   3  Normalizat    1.0833        .59064E-01    .10491E-04   -.41246E-03
   4  Prefactor     .82101        .53884E-01    .23524E-04   -.23462E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6334.790     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      413 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38470E-01    3.8881        .11498E-02    .63044E-03
   2  alpha         3.9838        2.8965        .50000       -.54814E-04
   3  Normalizat    1.0833        .19897        .44174E-04   -.12323E-03
   4  Prefactor     .82101        .22209        .11523E-04   -.44200E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0384702
  alpha      = 3.98378
  Normalizat = 1.08332
  Prefactor  = 0.821009
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.790     FROM HESSE     STATUS=OK            31 CALLS      444 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38470E-01    3.9345        .45991E-04   -1.5669    
   2  alpha         3.9838        2.9250        .50000        2.5062    
   3  Normalizat    1.0833        .19726        .88347E-05   -.90289    
   4  Prefactor     .82101        .22145        .23046E-05   -.98958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65819e-08
Minuit parameter uncertainties:
  1  0.777141
  2  4.52685
  3  0.197395
  4  0.221689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/390923': 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) = 6334.79017566
delta logL = 0.0012943642887

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.847e-02  7.771e-01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  3.984e+00  4.527e+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:  8.210e-01  2.217e-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.083e+00  1.974e-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/390923/cmap_HighResolution_529632001_529891201_4FGL_J1423.1+3738_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', job_status='DONE', photon_flux_upper_limit='3.29e-08', time_completed='2021-09-09 12:21:45.740967', job_id='390923', GAL2='0.82', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1631215305.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.29e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1120' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:21:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 390923: <4FGL_J1423.1+3738_daily_bin1120> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1120 215.792 37.6452 529632001 529891201 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 :                                   749.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

