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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin1326
RA = 223.544, Dec = 16.3747
tmin = 583027201, tmax = 583286401
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='846425', job_status='RUN', time_executed='2021-09-10 12:41:02.104383', time_epoch_executed='1631302862.1' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846425/ft1_4FGL_J1454.1+1622_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846425/ft1_4FGL_J1454.1+1622_daily_bin1326.fits outfile=/scratch/kocevski/846425/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1326.fits ra=223.544 dec=16.3747 rad=12.0 tmin=583027201.0 tmax=583286401.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.58
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.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/846425/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1326.fits evtable="EVENTS" outfile="/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.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.55
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/846425/ltcube_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.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/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits
.....................!
real 15.39
user 15.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/846425/ltcube_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.fits outfile=/scratch/kocevski/846425/expmap_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.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/846425/ltcube_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.fits
.....................!
real 190.85
user 186.01
sys 4.41

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 148 point sources and 0 extended sources

Setting source of interest to:
4FGL J1454.1+1622 @ 223.544 16.3747

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits scfile=/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits outfile=/scratch/kocevski/846425/cmap_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.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=223.544 yref=16.3747 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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits scfile=/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits outfile=/scratch/kocevski/846425/cmap_HighResolution_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.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=223.544 yref=16.3747 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846425/Model_4FGL_J1454.1+1622_daily_bin1326.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/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits.....................!
real 52.99
user 51.63
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits', '/scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits', expMap='/scratch/kocevski/846425/expmap_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.fits', expCube='/scratch/kocevski/846425/ltcube_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846425/Model_4FGL_J1454.1+1622_daily_bin1326.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1454.1+1622'

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  7.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.409e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.226e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/846425/ft1_filtered_4FGL_J1454.1+1622_daily_bin1326.fits
Spacecraft file(s): /scratch/kocevski/846425/ft2_4FGL_J1454.1+1622_daily_bin1326.fits
Exposure map: /scratch/kocevski/846425/expmap_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.fits
Exposure cube: /scratch/kocevski/846425/ltcube_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846425/Model_4FGL_J1454.1+1622_daily_bin1326.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) = 6789.02080046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.940       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5672       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8701       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.695       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1078       1.0000         .10000E-03   10000.    
    15 'norm      '    .46218       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.963       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2802       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6789.020     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2508 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.228        29.016        .12725E-05    .22678E-03
   2  Prefactor     .10000E-03    4.2559        .12422E-07** at limit **
   3  norm          1.6206        1.6528        .58022E-08   -.26837E-04
   4  Prefactor     .10000E-03    9.4098        .10273E-06** at limit **
   5  norm          7.3970        3.4067       -.22242E-06   -.42003E-03
   6  Prefactor     20.941        20.170        .18486E-06    .37332E-04
   7  norm          .10000E-03    6.0023        .14424E-07** at limit **
   8  norm          1.5674        2.6666        .14514E-07   -.12762E-03
   9  Prefactor     5.8631        22.007       -.58579E-05   -.17645E-03
  10  Prefactor     16.843        23.983        .26704E-06    .38080E-04
  11  Prefactor     8.6262        11.795        .50274E-06   -.22798E-03
  12  Prefactor     35.700        31.352        .23141E-05    .17708E-03
  13  Prefactor     5.5935        33.209       -.35383E-05   -.68071E-04
  14  Prefactor     3.1076        4.1711        .20535E-05   -.16743E-02
  15  norm          .46215        .19311       -.10229E-07   -.10335E-03
  16  norm          .10000E-03    2.6950        .38722E-07** at limit **
  17  norm          .10000E-03    16.461       -.16878E-06** at limit **
  18  Prefactor     15.221        38.150       -.40773E-05   -.11426E-03
  19  Prefactor     .10000E-03    3.4099        .60662E-08** at limit **
  20  Prefactor     .10000E-03    24.461        .20801E-06** at limit **
  21  Prefactor     34.954        41.504       -.45329E-05   -.24524E-03
  22  Normalizat    1.2802        .21398        .72883E-06   -.31537E-04
  23  Prefactor     .89573        .13652       -.12106E-06    .34108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.2277
  Prefactor  = 0.0001
  norm       = 1.62058
  Prefactor  = 0.0001
  norm       = 7.39701
  Prefactor  = 20.9409
  norm       = 0.0001
  norm       = 1.56737
  Prefactor  = 5.86305
  Prefactor  = 16.843
  Prefactor  = 8.62623
  Prefactor  = 35.6997
  Prefactor  = 5.59348
  Prefactor  = 3.10759
  norm       = 0.462154
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.954
  Normalizat = 1.2802
  Prefactor  = 0.895732
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.020     FROM HESSE     STATUS=OK           372 CALLS     2880 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.228        29.152        .56587E-04   -1.4289    
   2  Prefactor     .10000E-03    4.2869        .16596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6206        1.6441        .10414E-03   -1.5453    
   4  Prefactor     .10000E-03    9.7830        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3970        3.4138        .99061E-04   -1.5164    
   6  Prefactor     20.941        20.172        .87528E-04   -1.4792    
   7  norm          .10000E-03    6.0072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5674        2.6339        .17050E-03   -1.5458    
   9  Prefactor     5.8631        22.519        .16575E-03   -1.5224    
  10  Prefactor     16.843        23.974        .97593E-04   -1.4887    
  11  Prefactor     8.6262        11.879        .68239E-03   -1.5120    
  12  Prefactor     35.700        31.817        .67077E-04   -1.4512    
  13  Prefactor     5.5935        33.582        .16981E-03   -1.5235    
  14  Prefactor     3.1076        5.0669        .11501E-02   -1.5355    
  15  norm          .46215        .19233        .22307E-04   -1.5572    
  16  norm          .10000E-03    2.7003        .13210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.221        38.498        .10264E-03   -1.4927    
  19  Prefactor     .10000E-03    3.4253        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.954        42.525        .67774E-04   -1.4525    
  22  Normalizat    1.2802        .25778        .28161E-03   -.84159    
  23  Prefactor     .89573        .16429        .21584E-03   -.96290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52173e-09
Minuit parameter uncertainties:
  1  29.1604
  2  9.4968e-06
  3  1.64411
  4  3.06557e-06
  5  3.41388
  6  20.179
  7  2.21196e-06
  8  2.6341
  9  22.5518
  10  23.988
  11  11.8819
  12  31.8325
  13  27.4337
  14  5.06755
  15  0.192333
  16  9.24925e-07
  17  1.87436e-05
  18  38.5607
  19  1.15915e-06
  20  6.57053e-05
  21  42.5615
  22  0.258043
  23  0.164379
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  3.570e+01  3.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.409e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.226e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
478    Prefactor:  8.957e-01  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
479        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
480        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
477   Normalization:  1.280e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 223.544 16.375
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.35e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.55e-05

TS (Fixed Index): 2.05
Ra Dec: 223.544 16.375
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846425/likelihoodResults_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.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) = 6789.00930218
delta logL = 0.0102654269285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6789.00529786
delta logL = 0.0142697501915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.873       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5218       1.0000          .0000       10.000    
     3 'Normalizat'    1.2737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6789.005     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      239 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.873        766.44        .17472E-02    .27107E-03
   2  Index         2.5218        6.2125        .14785        .10026E-03
   3  Normalizat    1.2739        .10699        .63794E-01    .62027E-05
   4  Prefactor     .89830        .56214E-01    .44984E-01    .92656E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8728
  Index      = 2.52182
  Normalizat = 1.27385
  Prefactor  = 0.898304
 **********
 **   18 **HESSE 
 **********

 FCN=   6789.005     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.873        34.965        .69889E-04   -1.4561    
   2  Index         2.5218        .71530        .81860E-02   -.51857    
   3  Normalizat    1.2739        .25316        .28219E-03   -.84350    
   4  Prefactor     .89830        .16444        .21556E-03   -.96200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33252e-09
Minuit parameter uncertainties:
  1  34.987
  2  0.718577
  3  0.253408
  4  0.164534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846425': 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) = 6789.00529773
delta logL = 0.0142698739055

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  3.287e+01  3.499e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.522e+00  7.186e-01  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  9.226e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
478    Prefactor:  8.983e-01  1.645e-01  0.000e+00  1.000e+01 ( 1.000e+00)
479        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
480        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
477   Normalization:  1.274e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 223.544 16.375
Photon Index (Free Index): 2.52 +/- 0.72
Photon Flux (Free Index): 5.87e-08 +/- 5.51e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/846425/cmap_HighResolution_583027201_583286401_4FGL_J1454.1+1622_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.35e-08', energy_flux2='1.66e-05', photon_flux_error='4.77e-08', dlogl='1.43e-02', energy_flux='1.73e-05', photon_flux2='5.87e-08', job_status='DONE', time_completed='2021-09-10 12:51:32.320702', photon_index_error2='0.72', photon_index2='2.52', ts='2.05', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.47e-05', EG='1.28', time_epoch_completed='1631303492.32', return_code='0', job_id='846425', GAL2='0.90', EG2='1.27', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.51e-08', ts2='2.08', photon_index='2.41' WHERE bin_id='1326' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 846425: <4FGL_J1454.1+1622_daily_bin1326> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin1326> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 12:37:01 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:37:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 12:37:01 2021
Terminated at Fri Sep 10 12:51:33 2021
Results reported at Fri Sep 10 12:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin1326 223.544 16.3747 583027201 583286401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1454.1+1622 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            872 sec.

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

