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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin1157
RA = 214.955, Dec = 54.3937
tmin = 539222401, tmax = 539481601
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='354311', job_status='RUN', time_executed='2021-09-09 10:08:32.952490', time_epoch_executed='1631207312.95' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354311

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354311/ft1_4FGL_J1419.8+5423_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354311/ft1_4FGL_J1419.8+5423_daily_bin1157.fits outfile=/scratch/kocevski/354311/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin1157.fits ra=214.955 dec=54.3937 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.58
user 5.33
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.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/354311/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/354311/ltcube_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.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/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits
.....................!
real 12.09
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/354311/ltcube_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.fits outfile=/scratch/kocevski/354311/expmap_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.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/354311/ltcube_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.fits
.....................!
real 190.43
user 184.93
sys 5.11

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

Setting source of interest to:
4FGL J1419.8+5423 @ 214.955 54.3937

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits scfile=/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits outfile=/scratch/kocevski/354311/cmap_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.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=214.955 yref=54.3937 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits scfile=/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits outfile=/scratch/kocevski/354311/cmap_HighResolution_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.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=214.955 yref=54.3937 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354311/Model_4FGL_J1419.8+5423_daily_bin1157.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/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits.....................!
real 30.63
user 29.35
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits', '/scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits', expMap='/scratch/kocevski/354311/expmap_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.fits', expCube='/scratch/kocevski/354311/ltcube_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354311/Model_4FGL_J1419.8+5423_daily_bin1157.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.8+5423'

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  2.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/354311/ft1_filtered_4FGL_J1419.8+5423_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/354311/ft2_4FGL_J1419.8+5423_daily_bin1157.fits
Exposure map: /scratch/kocevski/354311/expmap_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.fits
Exposure cube: /scratch/kocevski/354311/ltcube_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354311/Model_4FGL_J1419.8+5423_daily_bin1157.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) = 2820.72018365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.731       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55101E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.197       1.0000         .10000E-03   10000.    
     6 'norm      '    8.2630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    122.25       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.338       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4585       1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .69611E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.963       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16468E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    76.985       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16226E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.7161       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.6802       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6998       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2820.694     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4123 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.765        22.354       -.23398E-06   -.21424E-07
   2  norm          .10000E-03    6.0203       -.16142E-07** at limit **
   3  Prefactor     .10000E-03    258.80       -.53754E-05** at limit **
   4  Prefactor     .10000E-03    18.521        .27711E-06** at limit **
   5  Prefactor     43.863        70.266        .15358E-05    .24042E-04
   6  norm          8.2664        6.5059       -.72140E-07    .13883E-05
   7  Prefactor     122.13        110.05        .51822E-05    .34162E-05
   8  Prefactor     19.458        90.793       -.50847E-05   -.17557E-05
   9  norm          2.4601        3.2705       -.65597E-09    .33288E-05
  10  norm          .10000E-03    58.876       -.30780E-05** at limit **
  11  norm          .10000E-03    2.5168       -.30673E-07** at limit **
  12  Prefactor     .10000E-03    44.427        .16440E-05** at limit **
  13  Prefactor     .10000E-03    333.95       -.11265E-04** at limit **
  14  Prefactor     .10000E-03    39.674       -.19009E-05** at limit **
  15  Prefactor     29.948        73.238        .12244E-06   -.13534E-05
  16  Prefactor     8.6881        8.7792        .56885E-07   -.48344E-05
  17  Prefactor     16.008        22.447        .13201E-06   -.22543E-05
  18  Prefactor     .10000E-03    1.7259       -.33580E-07** at limit **
  19  Prefactor     .10000E-03    81.208       -.62861E-06** at limit **
  20  Prefactor     .10000E-03    18.079       -.36552E-06** at limit **
  21  Prefactor     .10000E-03    47.018        .18782E-05** at limit **
  22  Prefactor     76.990        62.073        .47622E-06    .26396E-05
  23  Prefactor     .10000E-03    25.261        .24991E-06** at limit **
  24  Prefactor     .10000E-03    20.492       -.30639E-06** at limit **
  25  Prefactor     .10000E-03    86.767        .42713E-05** at limit **
  26  norm          2.7159        2.2653       -.48622E-07   -.96620E-04
  27  Prefactor     9.6751        12.412       -.23167E-07   -.31365E-05
  28  Prefactor     2.6999        9.5933        .24220E-05   -.37938E-04
  29  Prefactor     .10000E-03    3.3873       -.60610E-08** at limit **
  30  Normalizat    1.0225        .27366       -.44653E-06   -.14920E-04
  31  Prefactor     1.2299        .30462       -.24356E-06   -.15415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7646
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8633
  norm       = 8.26638
  Prefactor  = 122.128
  Prefactor  = 19.4582
  norm       = 2.46011
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.948
  Prefactor  = 8.68814
  Prefactor  = 16.0083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.9902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71591
  Prefactor  = 9.6751
  Prefactor  = 2.69988
  Prefactor  = 0.0001
  Normalizat = 1.02246
  Prefactor  = 1.22994
 **********
 **   18 **HESSE 
 **********

 FCN=   2820.694     FROM HESSE     STATUS=OK           618 CALLS     4741 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.765        22.368        .95115E-04   -1.4865    
   2  norm          .10000E-03    6.0266        .12728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    261.94        .21108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.863        70.096        .60305E-04   -1.4382    
   6  norm          8.2664        6.5060        .11652E-03   -1.5133    
   7  Prefactor     122.13        110.08        .18200E-03   -1.3493    
   8  Prefactor     19.458        91.986        .91080E-04   -1.4825    
   9  norm          2.4601        3.2543        .10530E-03   -1.5394    
  10  norm          .10000E-03    58.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5216        .82276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    333.51        .20983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     29.948        73.288        .73195E-04   -1.4613    
  16  Prefactor     8.6881        8.7695        .13598E-03   -1.5118    
  17  Prefactor     16.008        22.443        .10006E-03   -1.4908    
  18  Prefactor     .10000E-03    1.7357        .68118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    81.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     76.990        62.081        .22883E-03   -1.3951    
  23  Prefactor     .10000E-03    25.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    88.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7159        2.2644        .70578E-04   -1.5378    
  27  Prefactor     9.6751        12.409        .12880E-03   -1.5086    
  28  Prefactor     2.6999        9.6049        .12396E-02   -1.5379    
  29  Prefactor     .10000E-03    3.3901        .95450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0225        .32421        .25127E-03   -.92282    
  31  Prefactor     1.2299        .35965        .27360E-03   -.85415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38123e-11
Minuit parameter uncertainties:
  1  22.3781
  2  1.68703e-06
  3  0.000625766
  4  2.53403e-05
  5  70.2283
  6  6.50653
  7  110.266
  8  84.8275
  9  3.25451
  10  1.22941e-05
  11  8.08604e-07
  12  7.22269e-06
  13  6.3065e-05
  14  8.21846e-06
  15  73.5095
  16  8.77075
  17  22.4549
  18  5.44751e-07
  19  1.88597e-05
  20  2.5356e-06
  21  1.21449e-06
  22  62.1329
  23  7.04664e-06
  24  2.55926e-06
  25  0.000100099
  26  2.26447
  27  12.4121
  28  9.61037
  29  3.84603e-07
  30  0.324841
  31  0.36037
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  5.448e-07  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.230e+00  3.604e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.022e+00  3.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.955 54.394
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354311/likelihoodResults_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.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) = 2820.69696914
delta logL = -0.00263085939014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2820.69433816
delta logL = 1.14042904897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3514       1.0000          .0000       10.000    
     3 'Normalizat'    1.0225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+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=   2820.694     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      247 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.181        .68637E-02** at limit **
   2  Index         1.9722        5.8404        .50000        .44815E-07
   3  Normalizat    1.0225        .17085E-01    .25127E-03   -.42568E-03
   4  Prefactor     1.2299        .20258E-01    .27360E-03   -.38437E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9722
  Normalizat = 1.02246
  Prefactor  = 1.22994
 **********
 **   18 **HESSE 
 **********

 FCN=   2820.694     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    123.41        .72400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9722        5.9553        .50000       -.65047    
   3  Normalizat    1.0225        .56072E-01    .50255E-04   -.92282    
   4  Prefactor     1.2299        .66482E-01    .54719E-04   -.85415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17203e-10
Minuit parameter uncertainties:
  1  1.29365e-05
  2  628.056
  3  0.0560749
  4  0.0664864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354311': 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) = 2820.6943351
delta logL = 3.17855847243e-06

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.294e-05  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  1.972e+00  6.281e+02  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  1.230e+00  6.649e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.022e+00  5.607e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.955 54.394

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/354311/cmap_HighResolution_539222401_539481601_4FGL_J1419.8+5423_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-09-09 10:20:17.639399', job_id='354311', GAL2='1.23', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631208017.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1157' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:20:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 354311: <4FGL_J1419.8+5423_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin1157> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 10:05:28 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 10:05:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 10:05:30 2021
Terminated at Thu Sep  9 10:20:20 2021
Results reported at Thu Sep  9 10:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin1157 214.955 54.3937 539222401 539481601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.8+5423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            892 sec.

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

