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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1106
RA = 214.894, Dec = 38.3657
tmin = 526003201, tmax = 526262401
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='344367', job_status='RUN', time_executed='2021-09-09 09:37:24.231220', time_epoch_executed='1631205444.23' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344367/ft1_4FGL_J1419.5+3821_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344367/ft1_4FGL_J1419.5+3821_daily_bin1106.fits outfile=/scratch/kocevski/344367/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1106.fits ra=214.894 dec=38.3657 rad=12.0 tmin=526003201.0 tmax=526262401.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.74
user 3.49
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.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/344367/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/344367/ltcube_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.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/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits
.....................!
real 12.51
user 12.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/344367/ltcube_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.fits outfile=/scratch/kocevski/344367/expmap_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.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/344367/ltcube_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.fits
.....................!
real 190.70
user 185.75
sys 4.30

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

Setting source of interest to:
4FGL J1419.5+3821 @ 214.894 38.3657

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits scfile=/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits outfile=/scratch/kocevski/344367/cmap_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.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.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits scfile=/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits outfile=/scratch/kocevski/344367/cmap_HighResolution_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.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.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344367/Model_4FGL_J1419.5+3821_daily_bin1106.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/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits.....................!
real 46.28
user 44.90
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits', '/scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits', expMap='/scratch/kocevski/344367/expmap_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.fits', expCube='/scratch/kocevski/344367/ltcube_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/344367/Model_4FGL_J1419.5+3821_daily_bin1106.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.5+3821'

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.993e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/344367/ft1_filtered_4FGL_J1419.5+3821_daily_bin1106.fits
Spacecraft file(s): /scratch/kocevski/344367/ft2_4FGL_J1419.5+3821_daily_bin1106.fits
Exposure map: /scratch/kocevski/344367/expmap_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.fits
Exposure cube: /scratch/kocevski/344367/ltcube_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/344367/Model_4FGL_J1419.5+3821_daily_bin1106.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) = 5752.00999047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.6931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2625       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.253       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42158       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1293       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.159       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6368       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.594       1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9810       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78840       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5752.010     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3997 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.967        .99132E-05** at limit **
   2  Prefactor     .10000E-03    34.066        .12416E-04** at limit **
   3  norm          4.6932        1.6326       -.19584E-06   -.80794E-04
   4  Prefactor     2.2625        2.3175        .18099E-06    .73596E-04
   5  norm          5.7951        11.907       -.25887E-06   -.93113E-04
   6  Prefactor     .10000E-03    12.783        .83661E-05** at limit **
   7  Prefactor     .10000E-03    16.869       -.95238E-05** at limit **
   8  Prefactor     2.5469        2.9274       -.36868E-08    .26585E-04
   9  Prefactor     48.256        23.502        .14982E-05    .13152E-04
  10  norm          3.2604        3.8419       -.30861E-07   -.41133E-03
  11  Prefactor     10.821        12.256       -.18112E-06   -.91103E-04
  12  Prefactor     .10000E-03    10.137       -.28172E-05** at limit **
  13  Prefactor     .42272        2.1902        .38962E-06   -.69356E-03
  14  norm          5.1295        12.392       -.36310E-06   -.83310E-04
  15  Prefactor     .10000E-03    7.9306       -.18131E-06** at limit **
  16  norm          .10000E-03    5.0535       -.64159E-06** at limit **
  17  Prefactor     79.778        52.625        .40741E-05    .12907E-04
  18  Prefactor     .10000E-03    22.381       -.19126E-05** at limit **
  19  norm          10.159        7.0685        .84116E-06    .17105E-02
  20  Prefactor     5.6369        15.188       -.31265E-06   -.50309E-04
  21  Prefactor     17.594        11.296       -.16651E-07    .81912E-04
  22  norm          .10000E-03    1.0764       -.12187E-06** at limit **
  23  Prefactor     8.9821        14.628        .57787E-07   -.34800E-04
  24  Prefactor     .10000E-03    40.256       -.14668E-04** at limit **
  25  Normalizat    .78829        .17830       -.23648E-05    .77974E-05
  26  Prefactor     1.0807        .19511        .12849E-05   -.14732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69321
  Prefactor  = 2.26249
  norm       = 5.79513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.54694
  Prefactor  = 48.256
  norm       = 3.26044
  Prefactor  = 10.8212
  Prefactor  = 0.0001
  Prefactor  = 0.422719
  norm       = 5.12953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 79.7776
  Prefactor  = 0.0001
  norm       = 10.159
  Prefactor  = 5.63686
  Prefactor  = 17.5937
  norm       = 0.0001
  Prefactor  = 8.98206
  Prefactor  = 0.0001
  Normalizat = 0.788291
  Prefactor  = 1.08071
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.010     FROM HESSE     STATUS=OK           462 CALLS     4459 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.6932        1.6352        .54688E-04   -1.5275    
   4  Prefactor     2.2625        2.3241        .11340E-03   -1.5407    
   5  norm          5.7951        11.912        .16685E-03   -1.5226    
   6  Prefactor     .10000E-03    12.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5469        2.9234        .13481E-03   -1.5389    
   9  Prefactor     48.256        23.599        .57726E-04   -1.4318    
  10  norm          3.2604        3.8206        .15281E-03   -1.5347    
  11  Prefactor     10.821        12.243        .12181E-03   -1.5050    
  12  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .42272        8.0048        .20691E-02   -1.5578    
  14  norm          5.1295        12.369        .17752E-03   -1.5255    
  15  Prefactor     .10000E-03    7.9378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1112        .16637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     79.778        52.533        .44965E-04   -1.3919    
  18  Prefactor     .10000E-03    22.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.159        7.2747        .62858E-03   -1.5070    
  20  Prefactor     5.6369        15.136        .16920E-03   -1.5233    
  21  Prefactor     17.594        10.706        .95486E-04   -1.4869    
  22  norm          .10000E-03    1.4727        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.9821        14.625        .13374E-03   -1.5108    
  24  Prefactor     .10000E-03    39.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78829        .21331        .24685E-03   -1.0050    
  26  Prefactor     1.0807        .23493        .25151E-03   -.90085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0792e-09
Minuit parameter uncertainties:
  1  5.39228e-06
  2  1.77043e-05
  3  1.63517
  4  2.3242
  5  11.9165
  6  1.65708e-06
  7  1.72291e-06
  8  2.92357
  9  23.6033
  10  3.82091
  11  12.2462
  12  5.18947e-06
  13  3.67915
  14  12.3748
  15  5.59338e-06
  16  1.55309e-05
  17  52.5636
  18  1.70067e-05
  19  7.2753
  20  15.1465
  21  10.7068
  22  2.43262e-05
  23  14.631
  24  1.84042e-05
  25  0.213537
  26  0.235152
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.082e+01  1.225e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.081e+00  2.352e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.883e-01  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 8.09e-06 +/- 9.15e-06

TS (Fixed Index): 1.53
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344367/likelihoodResults_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.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) = 5752.00979872
delta logL = 8.35378850752e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5752.00971177
delta logL = 0.000170489280208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.026       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4516       1.0000          .0000       10.000    
     3 'Normalizat'    .78898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0803       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   5752.010     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      257 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.031        18.172        .12065E-03    .30813E-04
   2  Index         2.4506        1.2645        .98990E-02    .26707E-03
   3  Normalizat    .78908        .20349        .24674E-03    .87322E-03
   4  Prefactor     1.0801        .23569        .25158E-03    .10561E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0309
  Index      = 2.45061
  Normalizat = 0.789076
  Prefactor  = 1.08005
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.010     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.031        16.697        .48260E-05   -1.5044    
   2  Index         2.4506        1.1627        .19798E-02   -.53504    
   3  Normalizat    .78908        .20276        .49348E-04   -1.0048    
   4  Prefactor     1.0801        .23524        .50315E-04   -.90107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34616e-09
Minuit parameter uncertainties:
  1  16.7039
  2  1.17735
  3  0.202956
  4  0.235466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344367': 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) = 5752.00971
delta logL = 0.000172256007318

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.103e+01  1.670e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.451e+00  1.177e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.080e+00  2.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  7.891e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.45 +/- 1.18
Photon Flux (Free Index): 2.65e-08 +/- 3.85e-08
Energy Flux (Free Index): 8.15e-06 +/- 9.71e-06

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/344367/cmap_HighResolution_526003201_526262401_4FGL_J1419.5+3821_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='8.15e-06', photon_flux_error='3.05e-08', dlogl='1.72e-04', energy_flux='8.09e-06', photon_flux2='2.65e-08', job_status='DONE', time_completed='2021-09-09 09:51:56.538717', photon_index_error2='1.18', photon_index2='2.45', ts='1.53', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='9.71e-06', EG='0.79', time_epoch_completed='1631206316.54', return_code='0', job_id='344367', GAL2='1.08', EG2='0.79', return_code2='0', energy_flux_error='9.15e-06', photon_flux_error2='3.85e-08', ts2='1.53', photon_index='2.47' WHERE bin_id='1106' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 344367: <4FGL_J1419.5+3821_daily_bin1106> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1106> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:35:22 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:35:23 2021
Terminated at Thu Sep  9 09:51:56 2021
Results reported at Thu Sep  9 09:51:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1106 214.894 38.3657 526003201 526262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.5+3821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   762.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

