/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 80 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1423.1+3738_daily_bin2
RA = 215.792, Dec = 37.6452
tmin = 239846401, tmax = 240105601
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='386036', job_status='RUN', time_executed='2021-09-09 11:52:54.297086', time_epoch_executed='1631213574.3' WHERE source_name='4FGL J1423.1+3738' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386036

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386036/ft1_4FGL_J1423.1+3738_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386036/ft2_4FGL_J1423.1+3738_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386036/ft1_4FGL_J1423.1+3738_daily_bin2.fits outfile=/scratch/kocevski/386036/ft1_filteredMKT_4FGL_J1423.1+3738_daily_bin2.fits ra=215.792 dec=37.6452 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.45
user 1.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386036/ft1_filtered_4FGL_J1423.1+3738_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/386036/ft2_4FGL_J1423.1+3738_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/386036/ltcube_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.fits outfile=/scratch/kocevski/386036/expmap_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.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/386036/ltcube_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.fits
.....................!
real 189.99
user 185.04
sys 4.56

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/386036/ft1_filtered_4FGL_J1423.1+3738_daily_bin2.fits scfile=/scratch/kocevski/386036/ft2_4FGL_J1423.1+3738_daily_bin2.fits outfile=/scratch/kocevski/386036/cmap_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.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/386036/ft1_filtered_4FGL_J1423.1+3738_daily_bin2.fits scfile=/scratch/kocevski/386036/ft2_4FGL_J1423.1+3738_daily_bin2.fits outfile=/scratch/kocevski/386036/cmap_HighResolution_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.087       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.862       1.0000         .10000E-03   10000.    
     5 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9196       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.299       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9902       1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.025       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.493       1.0000         .10000E-03   10000.    
    21 'norm      '    .88650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.863       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1817       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62789       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=   4803.300     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3057 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.053        .92916E-06** at limit **
   2  Prefactor     75.176        108.09        .62876E-05    .12458E-03
   3  norm          3.2518        1.9992        .16915E-06   -.23788E-04
   4  Prefactor     18.864        5.7532        .14277E-06   -.16254E-04
   5  norm          .10000E-03    14.748        .55289E-06** at limit **
   6  Prefactor     .10000E-03    5.5022       -.13327E-07** at limit **
   7  Prefactor     3.9203        5.2363        .21957E-06    .11119E-04
   8  Prefactor     12.310        18.616        .42656E-06   -.37805E-04
   9  norm          9.8697        4.8854        .14590E-06   -.33930E-04
  10  Prefactor     .10000E-03    3.2455       -.29515E-07** at limit **
  11  Prefactor     .10000E-03    3.8340       -.46070E-07** at limit **
  12  Prefactor     .10000E-03    1.3860       -.57244E-07** at limit **
  13  norm          .10000E-03    4.9957       -.55867E-08** at limit **
  14  Prefactor     4.9921        19.634        .88145E-05    .92727E-04
  15  norm          .10000E-03    4.7278       -.39615E-06** at limit **
  16  Prefactor     .10000E-03    29.204       -.32476E-06** at limit **
  17  Prefactor     50.050        42.361        .15609E-05    .10118E-03
  18  norm          .10000E-03    3.1471       -.26400E-07** at limit **
  19  Prefactor     .10000E-03    4.9579        .71157E-08** at limit **
  20  Prefactor     11.496        9.9544        .19514E-07   -.76350E-04
  21  norm          .88716        2.0382        .49201E-06    .15984E-03
  22  Prefactor     .10000E-03    4.4992       -.13468E-06** at limit **
  23  Prefactor     53.869        70.142        .99127E-07   -.86504E-06
  24  Prefactor     .10000E-03    21.752       -.34711E-06** at limit **
  25  Normalizat    1.1806        .22747       -.63475E-05    .14178E-03
  26  Prefactor     .62903        .23081        .69391E-05   -.13458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 75.1764
  norm       = 3.25178
  Prefactor  = 18.8638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.92027
  Prefactor  = 12.3102
  norm       = 9.86966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.99207
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.0499
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4958
  norm       = 0.887159
  Prefactor  = 0.0001
  Prefactor  = 53.8694
  Prefactor  = 0.0001
  Normalizat = 1.18064
  Prefactor  = 0.629035
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.300     FROM HESSE     STATUS=OK           450 CALLS     3507 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     75.176        109.86        .23168E-03   -1.3972    
   3  norm          3.2518        1.9941        .73347E-04   -1.5347    
   4  Prefactor     18.864        5.7534        .88534E-04   -1.4839    
   5  norm          .10000E-03    14.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5034        .15878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9203        5.2251        .17654E-03   -1.5312    
   8  Prefactor     12.310        18.611        .11422E-03   -1.5006    
   9  norm          9.8697        4.8847        .10384E-03   -1.5080    
  10  Prefactor     .10000E-03    3.2471        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.8356        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3977        .79638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9997        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9921        20.343        .90011E-03   -1.5261    
  15  norm          .10000E-03    4.8398        .14709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     50.050        42.520        .56699E-04   -1.4292    
  18  norm          .10000E-03    3.1482        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9639        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.496        9.6556        .11817E-03   -1.5030    
  21  norm          .88716        1.9287        .12443E-03   -1.5520    
  22  Prefactor     .10000E-03    4.5089        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.869        69.317        .54652E-04   -1.4239    
  24  Prefactor     .10000E-03    21.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1806        .23657        .21149E-03   -.87203    
  26  Prefactor     .62903        .24130        .31264E-03   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05958e-10
Minuit parameter uncertainties:
  1  0.00018194
  2  110.154
  3  1.99413
  4  5.75354
  5  3.89567e-05
  6  1.76194e-07
  7  5.22575
  8  18.6202
  9  4.8849
  10  8.2183e-07
  11  6.17228e-08
  12  2.66001e-06
  13  7.61584e-06
  14  20.1662
  15  1.32272e-05
  16  3.64768e-05
  17  42.5461
  18  2.04857e-07
  19  5.17832e-06
  20  9.65689
  21  1.92887
  22  4.08401e-06
  23  69.4209
  24  1.36535e-05
  25  0.236789
  26  0.241696
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  7.616e-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:  6.290e-01  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:  1.181e+00  2.368e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386036/likelihoodResults_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.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) = 4803.30065652
delta logL = -0.000914657185604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4803.29974183
delta logL = 3.76276148017e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62901       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=   4803.300     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    183.27        .15200E-01** at limit **
   2  alpha         1.5980        2.8170        .17065        .46634E-08
   3  Normalizat    1.1806        .27266E-01    .21150E-03   -.13253E-03
   4  Prefactor     .62904        .30393E-01    .31263E-03   -.75093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59795
  Normalizat = 1.18063
  Prefactor  = 0.62904
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.300     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3994        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5980        2.6781        .68260E-02   -.36915    
   3  Normalizat    1.1806        .21206        .42300E-04   -.87203    
   4  Prefactor     .62904        .23619        .12505E-04   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81438e-11
Minuit parameter uncertainties:
  1  8.21003e-06
  2  277.999
  3  0.212214
  4  0.236562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386036': 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) = 4803.29974115
delta logL = 7.14035195415e-07

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.000e-04  8.210e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.598e+00  2.780e+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:  6.290e-01  2.366e-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.181e+00  2.122e-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/386036/cmap_HighResolution_239846401_240105601_4FGL_J1423.1+3738_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='2.94e-08', time_completed='2021-09-09 12:03:07.674268', job_id='386036', GAL2='0.63', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631214187.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='7.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='2' AND source_name='4FGL J1423.1+3738' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 12:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 386036: <4FGL_J1423.1+3738_daily_bin2> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_daily_bin2 215.792 37.6452 239846401 240105601 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 :                                   610.35 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             330.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

