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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin1605
RA = 223.544, Dec = 16.3747
tmin = 655344001, tmax = 655603201
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='375985', job_status='RUN', time_executed='2021-12-08 01:40:43.920413', time_epoch_executed='1638956443.92' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375985

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375985/ft1_4FGL_J1454.1+1622_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375985/ft1_4FGL_J1454.1+1622_daily_bin1605.fits outfile=/scratch/kocevski/375985/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1605.fits ra=223.544 dec=16.3747 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.76
user 2.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.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/375985/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1605.fits evtable="EVENTS" outfile="/scratch/kocevski/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/375985/ltcube_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.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/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits
.....................!
real 13.70
user 13.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/375985/ltcube_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.fits outfile=/scratch/kocevski/375985/expmap_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.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/375985/ltcube_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.fits
.....................!
real 191.44
user 185.58
sys 5.04

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/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.fits scfile=/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits outfile=/scratch/kocevski/375985/cmap_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.fits scfile=/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits outfile=/scratch/kocevski/375985/cmap_HighResolution_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.fits', '/scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits', expMap='/scratch/kocevski/375985/expmap_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.fits', expCube='/scratch/kocevski/375985/ltcube_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375985/Model_4FGL_J1454.1+1622_daily_bin1605.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/375985/ft1_filtered_4FGL_J1454.1+1622_daily_bin1605.fits
Spacecraft file(s): /scratch/kocevski/375985/ft2_4FGL_J1454.1+1622_daily_bin1605.fits
Exposure map: /scratch/kocevski/375985/expmap_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.fits
Exposure cube: /scratch/kocevski/375985/ltcube_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375985/Model_4FGL_J1454.1+1622_daily_bin1605.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) = 9812.99604842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6434       1.0000         .10000E-03   10000.    
     3 'norm      '    3.4914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89158E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8538       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.652       1.0000         .10000E-03   10000.    
     7 'norm      '    .24223E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2925       1.0000         .10000E-03   10000.    
    15 'norm      '    .14172       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99340       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9812.991     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2131 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.684        1.1093        .68908E-07    .61662E-03
   2  Prefactor     6.6450        1.0345       -.56138E-06   -.22933E-03
   3  norm          3.4914        1.8946       -.18298E-06   -.18052E-03
   4  Prefactor     .10394E-03    17.844       -.28607E-04** at limit **
   5  norm          2.8541        2.1545       -.35216E-06   -.21768E-03
   6  Prefactor     22.531        35.054       -.21055E-04    .14364E-02
   7  norm          .10094E-03    62.499        .38743E-04** at limit **
   8  norm          8.0523        4.0062       -.17996E-06   -.49849E-04
   9  Prefactor     6.8349        1.1768       -.11631E-05    .28561E-03
  10  Prefactor     .10026E-03    18.106       -.25378E-05** at limit **
  11  Prefactor     .10000E-03    6.9162        .10995E-05** at limit **
  12  Prefactor     .10002E-03    3.8183       -.41349E-05** at limit **
  13  Prefactor     .10023E-03    7.4141       -.24755E-04** at limit **
  14  Prefactor     5.2926        4.7359        .50032E-05    .12218E-02
  15  norm          .14172        .12483       -.34211E-07   -.41226E-03
  16  norm          .10000E-03    3.9351        .14185E-06** at limit **
  17  norm          .10021E-03    8.0928        .23513E-04** at limit **
  18  Prefactor     17.874        3.3514       -.21938E-05    .22231E-03
  19  Prefactor     .10000E-03    2.0196       -.26989E-06** at limit **
  20  Prefactor     .10000E-03    7.8382       -.33904E-05** at limit **
  21  Prefactor     .10019E-03    13.788        .10351E-04** at limit **
  22  Normalizat    .99336        .21049       -.12255E-05   -.71212E-04
  23  Prefactor     1.1040        .13973        .90454E-06   -.78017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.6843
  Prefactor  = 6.64495
  norm       = 3.49138
  Prefactor  = 0.000103938
  norm       = 2.85407
  Prefactor  = 22.5305
  norm       = 0.000100936
  norm       = 8.05228
  Prefactor  = 6.83487
  Prefactor  = 0.000100263
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100231
  Prefactor  = 5.29257
  norm       = 0.141722
  norm       = 0.0001
  norm       = 0.000100207
  Prefactor  = 17.8741
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100192
  Normalizat = 0.993362
  Prefactor  = 1.10395
 **********
 **   18 **HESSE 
 **********

 FCN=   9812.991     FROM HESSE     STATUS=OK           422 CALLS     2553 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.684        40.460        .13439E-02   -1.4214    
   2  Prefactor     6.6450        7.4128        .38922E-02   -1.5192    
   3  norm          3.4914        1.8987        .54098E-02   -1.5334    
   4  Prefactor     .10394E-03    3.9649        .60335E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8541        2.1658        .60166E-02   -1.5370    
   6  Prefactor     22.531        37.008        .21040E-02   -1.4758    
   7  norm          .10094E-03    66.233        .10025E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0523        4.0155        .35323E-02   -1.5140    
   9  Prefactor     6.8349        18.084        .38368E-02   -1.5185    
  10  Prefactor     .10026E-03    19.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    10.644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10023E-03    11.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2926        4.7480        .43677E-02   -1.5248    
  15  norm          .14172        .13466        .71483E-02   -1.5633    
  16  norm          .10000E-03    3.8867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10021E-03    10.310        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.874        30.610        .23676E-02   -1.4862    
  19  Prefactor     .10000E-03    2.0119        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10019E-03    14.660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99336        .18249        .70779E-01   -.93253    
  23  Prefactor     1.1040        .11700        .37440E-01   -.89340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22418e-07
Minuit parameter uncertainties:
  1  40.4797
  2  7.41383
  3  1.89871
  4  0.00790381
  5  2.1659
  6  37.0455
  7  0.0157664
  8  4.01561
  9  18.0984
  10  0.00450365
  11  4.73919e-05
  12  0.000845747
  13  0.00319159
  14  4.74831
  15  0.13466
  16  3.96211e-06
  17  0.00292555
  18  30.6371
  19  4.24659e-06
  20  0.000186065
  21  0.00335458
  22  0.182605
  23  0.117024
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  8.457e-04  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:  1.104e+00  1.170e-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:  9.934e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 223.544 16.375
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375985/likelihoodResults_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.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) = 9812.99117605
delta logL = -0.000446190113507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9812.99072984
delta logL = 2.57223291555e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4203       1.0000          .0000       10.000    
     3 'Normalizat'    .99336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1039       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=   9812.991     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1309.5        .90712E-02** at limit **
   2  Index         2.4319        7.9191        .50000       -.97087E-05
   3  Normalizat    .99336        .59084E-01    .70779E-01    .12111E-03
   4  Prefactor     1.1040        .39241E-01    .37439E-01    .12160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43194
  Normalizat = 0.993363
  Prefactor  = 1.10395
 **********
 **   18 **HESSE 
 **********

 FCN=   9812.991     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      243 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6204.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4319        7.4179        .50000       -.53939    
   3  Normalizat    .99336        .17619        .31313E-03   -.93253    
   4  Prefactor     1.1040        .11740        .19782E-03   -.89340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.88314e-09
Minuit parameter uncertainties:
  1  0.00178361
  2  67.0945
  3  0.176298
  4  0.117428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375985': 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): 102
logL (Free Index) = 9812.99072981
delta logL = 5.26270014234e-08

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  1.784e-03  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.432e+00  6.709e+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:  1.104e+00  1.174e-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:  9.934e-01  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 223.544 16.375

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/375985/cmap_HighResolution_655344001_655603201_4FGL_J1454.1+1622_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-12-08 01:52:28.686555', job_id='375985', GAL2='1.10', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1638957148.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1605' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:52:28 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 375985: <4FGL_J1454.1+1622_daily_bin1605> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin1605> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 01:40:19 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 01:40:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 01:40:29 2021
Terminated at Wed Dec  8 01:52:29 2021
Results reported at Wed Dec  8 01:52:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin1605 223.544 16.3747 655344001 655603201 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            730 sec.

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

