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


Performing analysis on: 4FGL_J1454.1+1622_daily_bin1503
RA = 223.544, Dec = 16.3747
tmin = 628905601, tmax = 629164801
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='846709', job_status='RUN', time_executed='2021-09-10 12:37:45.104764', time_epoch_executed='1631302665.1' WHERE source_name='4FGL J1454.1+1622' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846709/ft1_4FGL_J1454.1+1622_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846709/ft1_4FGL_J1454.1+1622_daily_bin1503.fits outfile=/scratch/kocevski/846709/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1503.fits ra=223.544 dec=16.3747 rad=12.0 tmin=628905601.0 tmax=629164801.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.53
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.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/846709/ft1_filteredMKT_4FGL_J1454.1+1622_daily_bin1503.fits evtable="EVENTS" outfile="/scratch/kocevski/846709/ft1_filtered_4FGL_J1454.1+1622_daily_bin1503.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.86
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846709/ft1_filtered_4FGL_J1454.1+1622_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/846709/ltcube_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.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/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.fits
.....................!
real 14.46
user 13.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846709/ft1_filtered_4FGL_J1454.1+1622_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/846709/ltcube_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.fits outfile=/scratch/kocevski/846709/expmap_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.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/846709/ltcube_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.fits
.....................!
real 191.59
user 186.30
sys 4.78

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/846709/ft1_filtered_4FGL_J1454.1+1622_daily_bin1503.fits scfile=/scratch/kocevski/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.fits outfile=/scratch/kocevski/846709/cmap_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846709/ft1_filtered_4FGL_J1454.1+1622_daily_bin1503.fits scfile=/scratch/kocevski/846709/ft2_4FGL_J1454.1+1622_daily_bin1503.fits outfile=/scratch/kocevski/846709/cmap_HighResolution_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7385       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2615       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.616       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .76115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98916       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3020       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18350E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3594       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81459       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=   7362.028     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2574 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7388        25.056       -.15951E-05   -.11421E-04
   2  Prefactor     .10000E-03    4.4814        .10996E-06** at limit **
   3  norm          1.9376        1.7309        .50642E-08    .37512E-04
   4  Prefactor     5.2612        6.4080       -.18842E-06    .35890E-05
   5  norm          .10000E-03    1.6692       -.10758E-07** at limit **
   6  Prefactor     .10000E-03    10.132       -.58636E-06** at limit **
   7  norm          .10000E-03    5.0979        .48076E-07** at limit **
   8  norm          .10000E-03    1.6192        .44881E-07** at limit **
   9  Prefactor     26.411        26.824        .34241E-05    .25267E-03
  10  Prefactor     .10000E-03    9.3609        .40191E-06** at limit **
  11  Prefactor     .10000E-03    4.2534       -.25316E-07** at limit **
  12  Prefactor     11.608        21.192        .12306E-04    .43142E-03
  13  Prefactor     .12713E-03    15.718       -.73597E-05** at limit **
  14  Prefactor     .98951        .59979        .10391E-07   -.37084E-03
  15  norm          1.3020        .25166        .68392E-08    .10464E-02
  16  norm          .10000E-03    2.1001       -.27681E-07** at limit **
  17  norm          .10000E-03    166.08        .86162E-05** at limit **
  18  Prefactor     18.916        30.928       -.40285E-06    .11101E-04
  19  Prefactor     .10000E-03    4.6442        .51002E-06** at limit **
  20  Prefactor     52.781        33.014       -.95524E-06    .11353E-04
  21  Prefactor     .10000E-03    21.197       -.46277E-06** at limit **
  22  Normalizat    1.3596        .20453       -.10380E-05    .24178E-03
  23  Prefactor     .81450        .12867       -.14738E-06    .17826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73876
  Prefactor  = 0.0001
  norm       = 1.93758
  Prefactor  = 5.26122
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.4107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6078
  Prefactor  = 0.000127133
  Prefactor  = 0.989515
  norm       = 1.30197
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9164
  Prefactor  = 0.000100002
  Prefactor  = 52.7812
  Prefactor  = 0.0001
  Normalizat = 1.3596
  Prefactor  = 0.814498
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.028     FROM HESSE     STATUS=OK           374 CALLS     2948 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7388        25.063        .15457E-03   -1.5189    
   2  Prefactor     .10000E-03    4.5227        .17720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9376        1.7414        .51858E-03   -1.5430    
   4  Prefactor     5.2612        6.4327        .17523E-03   -1.5249    
   5  norm          .10000E-03    1.7112        .21629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.1017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6294        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.411        26.800        .77944E-04   -1.4680    
  10  Prefactor     .10000E-03    9.3948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2601        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.608        21.390        .11754E-03   -1.5026    
  13  Prefactor     .12713E-03    18.001        .12488       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .98951        10.372        .26123E-02   -1.5509    
  15  norm          1.3020        .25196        .18148E-04   -1.5480    
  16  norm          .10000E-03    2.1022        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    168.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.916        30.947        .92084E-04   -1.4838    
  19  Prefactor     .10000E-03    18.361        .35897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     52.781        33.079        .55205E-04   -1.4254    
  21  Prefactor     .10000E-03    21.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3596        .24671        .27209E-03   -.81804    
  23  Prefactor     .81450        .15512        .22296E-03   -.99196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34833e-09
Minuit parameter uncertainties:
  1  25.1019
  2  8.93452e-06
  3  1.74148
  4  6.43355
  5  3.62244e-06
  6  5.76061e-06
  7  2.32407e-06
  8  1.56273e-06
  9  26.8122
  10  8.71569e-06
  11  1.88387e-05
  12  21.4039
  13  0.0442143
  14  6.40833
  15  0.251959
  16  2.04389e-07
  17  0.000413828
  18  30.9737
  19  0.000423716
  20  33.0903
  21  6.53053e-06
  22  0.246921
  23  0.155208
Done.

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

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  1.161e+01  2.140e+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.145e-01  1.552e-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.360e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/846709/likelihoodResults_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.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) = 7361.89471872
delta logL = 0.133347799183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7361.89018429
delta logL = 0.137882224864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2542       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2212       1.0000          .0000       10.000    
     3 'Normalizat'    1.3372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82341       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7361.890     FROM MIGRAD    STATUS=FAILED        92 CALLS      282 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2576        61.675        .16051E-03    .12111E-04
   2  Index         3.2207        3.4928        .80146E-02    .30765E-03
   3  Normalizat    1.3373        .24748        .27388E-03   -.47534E-03
   4  Prefactor     .82336        .15925        .22184E-03   -.32246E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7361.890     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      366 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2576        61.675        .38157E-03   -1.5208    
   2  Index         3.2207        3.4928        .19430E-02   -.36384    
   3  Normalizat    1.3373        .24748        .20961E-03   -.82460    
   4  Prefactor     .82336        .15925        .21873E-03   -.98873    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7361.890     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      395 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2573        19.128        .64206E-05   -.69410E-04
   2  Index         3.2207        1.8650        .16029E-02    .31703E-05
   3  Normalizat    1.3373        .24081        .54775E-04   -.28372E-03
   4  Prefactor     .82336        .15565        .44368E-04   -.19305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.25732
  Index      = 3.2207
  Normalizat = 1.33728
  Prefactor  = 0.823363
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.890     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2573        17.781        .12841E-05   -1.5208    
   2  Index         3.2207        1.7396        .64117E-04   -.36383    
   3  Normalizat    1.3373        .24054        .10955E-04   -.82460    
   4  Prefactor     .82336        .15550        .88735E-05   -.98873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77499e-10
Minuit parameter uncertainties:
  1  17.7956
  2  1.78255
  3  0.240744
  4  0.155587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846709': 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) = 7361.89018419
delta logL = 0.13788233006

Extracting fit parameters...

4FGL J1454.1+1622
   Spectrum: PowerLaw
220    Prefactor:  6.257e+00  1.780e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  3.221e+00  1.783e+00  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.234e-01  1.556e-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.337e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/846709/cmap_HighResolution_628905601_629164801_4FGL_J1454.1+1622_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-10 12:48:50.229891', job_id='846709', GAL2='0.82', fit_tolerance='1e-08', EG2='1.34', EG='1.36', time_epoch_completed='1631303330.23', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.38e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1503' AND source_name='4FGL J1454.1+1622' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 12:48:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 846709: <4FGL_J1454.1+1622_daily_bin1503> in cluster <slac> Done

Job <4FGL_J1454.1+1622_daily_bin1503> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 12:37:23 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 12:37:24 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:24 2021
Terminated at Fri Sep 10 12:48:50 2021
Results reported at Fri Sep 10 12:48:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1454.1+1622_daily_bin1503 223.544 16.3747 628905601 629164801 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            687 sec.

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

