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


Performing analysis on: 4FGL_J1451.4+6355_daily_bin1
RA = 222.855, Dec = 63.9172
tmin = 239587201, tmax = 239846401
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='816445', job_status='RUN', time_executed='2021-09-10 11:10:05.044938', time_epoch_executed='1631297405.04' WHERE source_name='4FGL J1451.4+6355' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816445

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816445/ft1_4FGL_J1451.4+6355_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816445/ft1_4FGL_J1451.4+6355_daily_bin1.fits outfile=/scratch/kocevski/816445/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin1.fits ra=222.855 dec=63.9172 rad=12.0 tmin=239587201.0 tmax=239846401.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.35
user 1.14
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.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/816445/ft1_filteredMKT_4FGL_J1451.4+6355_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/816445/ltcube_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.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/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits
.....................!
real 12.29
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/816445/ltcube_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.fits outfile=/scratch/kocevski/816445/expmap_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.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/816445/ltcube_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.fits
.....................!
real 189.99
user 185.22
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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1451.4+6355 @ 222.855 63.9172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits scfile=/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits outfile=/scratch/kocevski/816445/cmap_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.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=222.855 yref=63.9172 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits scfile=/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits outfile=/scratch/kocevski/816445/cmap_HighResolution_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.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=222.855 yref=63.9172 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.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816445/Model_4FGL_J1451.4+6355_daily_bin1.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/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits.....................!
real 42.08
user 40.77
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits', '/scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits', expMap='/scratch/kocevski/816445/expmap_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.fits', expCube='/scratch/kocevski/816445/ltcube_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/816445/Model_4FGL_J1451.4+6355_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1451.4+6355'

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.822e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/816445/ft1_filtered_4FGL_J1451.4+6355_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/816445/ft2_4FGL_J1451.4+6355_daily_bin1.fits
Exposure map: /scratch/kocevski/816445/expmap_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.fits
Exposure cube: /scratch/kocevski/816445/ltcube_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/816445/Model_4FGL_J1451.4+6355_daily_bin1.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) = 4325.64735928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8852       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.086       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7473       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6898       1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.456       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92109       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4325.632     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3907 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.259        .12574E-05** at limit **
   2  Prefactor     .10000E-03    18.524        .17660E-05** at limit **
   3  Prefactor     4.7477        5.2420        .18088E-05   -.20702E-02
   4  Prefactor     .10000E-03    32.240        .28063E-05** at limit **
   5  Prefactor     .10000E-03    22.759       -.40271E-05** at limit **
   6  Prefactor     .10000E-03    7.7011       -.40525E-06** at limit **
   7  Prefactor     .10000E-03    18.472        .13604E-05** at limit **
   8  norm          .10000E-03    37.757       -.55063E-05** at limit **
   9  norm          .21666        4.3877       -.46735E-06    .10995E-03
  10  Prefactor     .10000E-03    26.382       -.58455E-06** at limit **
  11  Prefactor     .10000E-03    332.96        .88521E-06** at limit **
  12  Prefactor     2.8862        6.5093        .32305E-05    .14736E-03
  13  Prefactor     .10000E-03    13.499        .45949E-06** at limit **
  14  Prefactor     87.957        121.72        .52704E-05    .41098E-04
  15  Prefactor     34.055        60.515       -.12323E-04   -.16907E-03
  16  Prefactor     31.419        31.612        .61051E-06    .17580E-04
  17  Prefactor     14.209        19.755       -.15467E-06   -.13939E-04
  18  Prefactor     23.834        41.852       -.16713E-05   -.31522E-04
  19  Prefactor     .10000E-03    4.6164        .12532E-07** at limit **
  20  Prefactor     9.1137        10.490        .15965E-06   -.24455E-04
  21  Prefactor     .10000E-03    4.8553        .13194E-07** at limit **
  22  Prefactor     .10000E-03    15.607       -.15442E-05** at limit **
  23  norm          2.7473        2.4472        .21054E-07    .42161E-05
  24  Prefactor     .10000E-03    30.144        .37646E-05** at limit **
  25  Prefactor     .10000E-03    6.7786       -.23878E-07** at limit **
  26  norm          2.6873        7.6683        .18667E-06   -.11901E-03
  27  Prefactor     34.450        43.485       -.83510E-06   -.26991E-04
  28  Prefactor     .10000E-03    10.912       -.31807E-07** at limit **
  29  Normalizat    .92109        .20413        .30327E-06   -.58990E-04
  30  Prefactor     .95470        .20137       -.59365E-06    .24119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74767
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.21666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88618
  Prefactor  = 0.0001
  Prefactor  = 87.957
  Prefactor  = 34.0547
  Prefactor  = 31.4192
  Prefactor  = 14.2087
  Prefactor  = 23.8344
  Prefactor  = 0.0001
  Prefactor  = 9.11373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74733
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.68725
  Prefactor  = 34.4498
  Prefactor  = 0.0001
  Normalizat = 0.921093
  Prefactor  = 0.954704
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.632     FROM HESSE     STATUS=OK           582 CALLS     4489 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7477        7.8936        .92323E-03   -1.5272    
   4  Prefactor     .10000E-03    32.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7351        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    37.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .21666        44.830        .25257E-02   -1.5615    
  10  Prefactor     .10000E-03    26.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    332.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8862        6.5440        .16471E-03   -1.5368    
  13  Prefactor     .10000E-03    13.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     87.957        121.64        .42842E-04   -1.3829    
  15  Prefactor     34.055        62.119        .68638E-04   -1.4540    
  16  Prefactor     31.419        31.612        .71482E-04   -1.4586    
  17  Prefactor     14.209        19.765        .10626E-03   -1.4954    
  18  Prefactor     23.834        42.224        .82017E-04   -1.4731    
  19  Prefactor     .10000E-03    4.6220        .13798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.1137        10.560        .13276E-03   -1.5104    
  21  Prefactor     .10000E-03    4.8588        .14154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7473        2.4516        .94046E-04   -1.5376    
  24  Prefactor     .10000E-03    30.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.8174        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6873        7.6280        .24842E-03   -1.5380    
  27  Prefactor     34.450        43.330        .68269E-04   -1.4533    
  28  Prefactor     .10000E-03    10.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .92109        .25420        .23374E-03   -.95723    
  30  Prefactor     .95470        .24239        .24048E-03   -.94255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24412e-09
Minuit parameter uncertainties:
  1  0.000131294
  2  0.000110327
  3  7.89529
  4  0.000163287
  5  0.000302963
  6  2.31273e-05
  7  1.28869e-06
  8  0.000531255
  9  6.23639
  10  5.12162e-05
  11  0.000247821
  12  6.54561
  13  4.25603e-05
  14  121.989
  15  62.2377
  16  31.629
  17  19.7741
  18  42.277
  19  4.04006e-06
  20  10.5617
  21  3.33538e-07
  22  9.48715e-05
  23  2.45169
  24  0.000321261
  25  2.36541e-06
  26  7.63073
  27  43.3699
  28  2.05875e-06
  29  0.254528
  30  0.242664
Done.

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

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.421e+01  1.977e+01  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.822e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.547e-01  2.427e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  9.211e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 222.855 63.917
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816445/likelihoodResults_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.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) = 4325.63060836
delta logL = 0.0014927745342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4325.62984329
delta logL = 0.0022578459857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.287       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8729       1.0000          .0000       10.000    
     3 'Normalizat'    .92050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   4325.630     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      255 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.301        24.451        .10989E-03   -.59680E-03
   2  Index         1.8724        .78299        .65325E-02   -.27689E-03
   3  Normalizat    .92031        .22275        .23383E-03    .15913E-02
   4  Prefactor     .95505        .23424        .24044E-03    .18746E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3012
  Index      = 1.87237
  Normalizat = 0.920312
  Prefactor  = 0.955052
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.630     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.301        23.215        .21977E-04   -1.4978    
   2  Index         1.8724        .74389        .26130E-03   -.67580    
   3  Normalizat    .92031        .22286        .46766E-04   -.95750    
   4  Prefactor     .95505        .23441        .48087E-04   -.94243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70437e-09
Minuit parameter uncertainties:
  1  23.2303
  2  0.748471
  3  0.223088
  4  0.234658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816445': 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) = 4325.62984254
delta logL = 0.00225859268994

Extracting fit parameters...

4FGL J1451.4+6355
   Spectrum: PowerLaw
349    Prefactor:  1.330e+01  2.323e+01  1.000e-04  1.000e+04 ( 1.000e-14)
350        Index:  1.872e+00  7.485e-01  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  3.982e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.551e-01  2.347e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  9.203e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.78
Ra Dec: 222.855 63.917

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/816445/cmap_HighResolution_239587201_239846401_4FGL_J1451.4+6355_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-10 11:22:31.344223', job_id='816445', GAL2='0.96', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631298151.34', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.26e-03', ts2='0.78', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1' AND source_name='4FGL J1451.4+6355' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 11:22:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 816445: <4FGL_J1451.4+6355_daily_bin1> in cluster <slac> Done

Job <4FGL_J1451.4+6355_daily_bin1> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 11:06:49 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 11:06:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 11:06:50 2021
Terminated at Fri Sep 10 11:22:31 2021
Results reported at Fri Sep 10 11:22:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1451.4+6355_daily_bin1 222.855 63.9172 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1451.4+6355 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             294.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

