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


Performing analysis on: 4FGL_J1423.1+3738_daily_bin1421
RA = 215.792, Dec = 37.6452
tmin = 607651201, tmax = 607910401
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='392622', job_status='RUN', time_executed='2021-09-09 12:12:15.718542', time_epoch_executed='1631214735.72' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392622/ft1_4FGL_J1423.1+3738_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392622/ft2_4FGL_J1423.1+3738_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392622/ft1_4FGL_J1423.1+3738_daily_bin1421.fits outfile=/scratch/kocevski/392622/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin1421.fits ra=215.792 dec=37.6452 rad=12.0 tmin=607651201.0 tmax=607910401.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.11
user 3.58
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392622/ft1_filtered_4FGL_J1423.1+3738_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/392622/ft2_4FGL_J1423.1+3738_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/392622/ltcube_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.fits outfile=/scratch/kocevski/392622/expmap_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.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/392622/ltcube_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.fits
.....................!
real 191.11
user 184.65
sys 5.37

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/392622/ft1_filtered_4FGL_J1423.1+3738_daily_bin1421.fits scfile=/scratch/kocevski/392622/ft2_4FGL_J1423.1+3738_daily_bin1421.fits outfile=/scratch/kocevski/392622/cmap_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392622/ft1_filtered_4FGL_J1423.1+3738_daily_bin1421.fits scfile=/scratch/kocevski/392622/ft2_4FGL_J1423.1+3738_daily_bin1421.fits outfile=/scratch/kocevski/392622/cmap_HighResolution_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.310       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8995       1.0000         .10000E-03   10000.    
     5 'norm      '    44.099       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7624       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7233       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5988       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2174       1.0000         .10000E-03   10000.    
    15 'norm      '    .10921E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.362       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4827       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4985       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .94304       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.890       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65778       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3428       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=   6078.850     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3098 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.740        73.570       -.11768E-03    .29399E-06
   2  Prefactor     48.312        64.084       -.82309E-06    .22192E-04
   3  norm          3.3076        1.5116       -.24229E-06   -.40186E-04
   4  Prefactor     4.8993        3.9813       -.61366E-06   -.15110E-03
   5  norm          44.097        18.526       -.26851E-06    .35246E-04
   6  Prefactor     .10000E-03    6.0747        .41945E-07** at limit **
   7  Prefactor     1.7622        2.3590       -.27985E-06   -.12091E-03
   8  Prefactor     9.7230        13.936        .26887E-05    .77562E-06
   9  norm          .10000E-03    1.6002       -.81755E-07** at limit **
  10  Prefactor     .10000E-03    3.1668        .17513E-07** at limit **
  11  Prefactor     .10000E-03    3.6464       -.26673E-08** at limit **
  12  Prefactor     7.5984        3.7647       -.56802E-06    .27354E-04
  13  norm          .10000E-03    4.2840       -.42556E-07** at limit **
  14  Prefactor     5.2185        18.228       -.95657E-05   -.58184E-04
  15  norm          .10000E-03    6.1123       -.31441E-06** at limit **
  16  Prefactor     3.2332        103.19        .14664E-04   -.86118E-05
  17  Prefactor     10.356        32.372       -.13304E-04   -.10404E-05
  18  norm          5.4825        5.4339       -.27594E-07    .16612E-03
  19  Prefactor     3.4977        11.798       -.63884E-07   -.11022E-03
  20  Prefactor     .10000E-03    2.1071        .40592E-07** at limit **
  21  norm          .94231        1.2290       -.56164E-06   -.17921E-02
  22  Prefactor     .10000E-03    5.0354       -.86379E-07** at limit **
  23  Prefactor     .10000E-03    25.196        .65220E-07** at limit **
  24  Prefactor     22.886        21.156       -.41515E-06    .23937E-04
  25  Normalizat    .65766        .17532        .91557E-05   -.12808E-03
  26  Prefactor     1.3430        .19793       -.87960E-06    .32163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.74
  Prefactor  = 48.3122
  norm       = 3.30758
  Prefactor  = 4.89925
  norm       = 44.0974
  Prefactor  = 0.0001
  Prefactor  = 1.76223
  Prefactor  = 9.72297
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.59844
  norm       = 0.0001
  Prefactor  = 5.21849
  norm       = 0.0001
  Prefactor  = 3.23325
  Prefactor  = 10.3558
  norm       = 5.48253
  Prefactor  = 3.49773
  Prefactor  = 0.0001
  norm       = 0.942311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8857
  Normalizat = 0.657657
  Prefactor  = 1.34303
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.850     FROM HESSE     STATUS=OK           462 CALLS     3560 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.740        73.664        .28981E-03   -1.4325    
   2  Prefactor     48.312        64.343        .57692E-04   -1.4317    
   3  norm          3.3076        1.5102        .62337E-04   -1.5344    
   4  Prefactor     4.8993        3.9783        .13452E-03   -1.5265    
   5  norm          44.097        18.530        .60372E-04   -1.4379    
   6  Prefactor     .10000E-03    6.0873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7622        2.3434        .13482E-03   -1.5442    
   8  Prefactor     9.7230        13.978        .12851E-03   -1.5084    
   9  norm          .10000E-03    1.6350        .96293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1713        .13550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6508        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5984        3.7677        .10183E-03   -1.5157    
  13  norm          .10000E-03    4.2861        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2185        18.194        .17598E-03   -1.5251    
  15  norm          .10000E-03    6.3278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2332        102.60        .21841E-03   -1.5348    
  17  Prefactor     10.356        32.368        .12447E-03   -1.5064    
  18  norm          5.4825        5.4349        .17160E-03   -1.5240    
  19  Prefactor     3.4977        11.739        .21616E-03   -1.5334    
  20  Prefactor     .10000E-03    2.1113        .11047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .94231        1.1090        .93729E-03   -1.5514    
  22  Prefactor     .10000E-03    5.0624        .17081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.886        21.146        .83722E-04   -1.4751    
  25  Normalizat    .65766        .21181        .27295E-03   -1.0559    
  26  Prefactor     1.3430        .24146        .23746E-03   -.82036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64909e-09
Minuit parameter uncertainties:
  1  73.8052
  2  64.4354
  3  1.51022
  4  3.97851
  5  18.5321
  6  1.27476e-05
  7  2.34348
  8  13.9831
  9  9.39061e-06
  10  1.09009e-05
  11  1.24171e-05
  12  3.76782
  13  8.36468e-06
  14  18.2133
  15  0.000111374
  16  36.4955
  17  32.4228
  18  5.43535
  19  11.7467
  20  5.31289e-06
  21  1.10902
  22  2.68296e-05
  23  2.73183e-05
  24  21.1533
  25  0.21207
  26  0.241664
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  8.365e-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.343e+00  2.417e-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:  6.577e-01  2.121e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/392622/likelihoodResults_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.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) = 6078.85128643
delta logL = -0.00108121551784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6078.8502052
delta logL = 1.86691977433e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9159       1.0000          .0000       5.0000    
     3 'Normalizat'    .65762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3431       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=   6078.850     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      245 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    154.48        .15848E-01** at limit **
   2  alpha         1.5712        4.1212        .17068        .45294E-08
   3  Normalizat    .65766        .23493E-01    .27294E-03    .11409E-03
   4  Prefactor     1.3430        .28367E-01    .23746E-03    .14996E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.57118
  Normalizat = 0.657663
  Prefactor  = 1.34302
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.850     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6982        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5712        2.5302        .68271E-02   -.38065    
   3  Normalizat    .65766        .19768        .10918E-04   -1.0559    
   4  Prefactor     1.3430        .23875        .47492E-04   -.82037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24127e-11
Minuit parameter uncertainties:
  1  5.46472e-06
  2  253.386
  3  0.197898
  4  0.238948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392622': 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) = 6078.85020423
delta logL = 9.89200998447e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  5.465e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.571e+00  2.534e+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.343e+00  2.389e-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:  6.577e-01  1.979e-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/392622/cmap_HighResolution_607651201_607910401_4FGL_J1423.1+3738_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2021-09-09 12:24:13.405901', job_id='392622', GAL2='1.34', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631215453.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='9.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1421' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:24:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 392622: <4FGL_J1423.1+3738_daily_bin1421> in cluster <slac> Done

Job <4FGL_J1423.1+3738_daily_bin1421> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 12:11:40 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 12:11: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 12:11:43 2021
Terminated at Thu Sep  9 12:24:14 2021
Results reported at Thu Sep  9 12:24:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin1421 215.792 37.6452 607651201 607910401 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 :                                   710.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            754 sec.

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

