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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin699
RA = 214.894, Dec = 38.3657
tmin = 420508801, tmax = 420768001
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='341802', job_status='RUN', time_executed='2021-09-09 09:25:57.090151', time_epoch_executed='1631204757.09' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341802/ft1_4FGL_J1419.5+3821_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341802/ft1_4FGL_J1419.5+3821_daily_bin699.fits outfile=/scratch/kocevski/341802/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin699.fits ra=214.894 dec=38.3657 rad=12.0 tmin=420508801.0 tmax=420768001.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.37
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341802/ft1_filtered_4FGL_J1419.5+3821_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/341802/ltcube_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.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/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits
.....................!
real 11.61
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341802/ft1_filtered_4FGL_J1419.5+3821_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/341802/ltcube_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.fits outfile=/scratch/kocevski/341802/expmap_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.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/341802/ltcube_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.fits
.....................!
real 192.53
user 187.27
sys 4.84

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/341802/ft1_filtered_4FGL_J1419.5+3821_daily_bin699.fits scfile=/scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits outfile=/scratch/kocevski/341802/cmap_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341802/ft1_filtered_4FGL_J1419.5+3821_daily_bin699.fits scfile=/scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits outfile=/scratch/kocevski/341802/cmap_HighResolution_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341802/ft1_filtered_4FGL_J1419.5+3821_daily_bin699.fits', '/scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits', expMap='/scratch/kocevski/341802/expmap_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.fits', expCube='/scratch/kocevski/341802/ltcube_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341802/Model_4FGL_J1419.5+3821_daily_bin699.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/341802/ft1_filtered_4FGL_J1419.5+3821_daily_bin699.fits
Spacecraft file(s): /scratch/kocevski/341802/ft2_4FGL_J1419.5+3821_daily_bin699.fits
Exposure map: /scratch/kocevski/341802/expmap_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.fits
Exposure cube: /scratch/kocevski/341802/ltcube_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341802/Model_4FGL_J1419.5+3821_daily_bin699.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) = 5753.07946554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.974       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .69577       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10966E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.108       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12981E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.957       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.114       1.0000         .10000E-03   10000.    
    16 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.468       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.241       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0094       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.067       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.688       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.355       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71066       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1432       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=   5753.060     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3103 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.149        43.614       -.25462E-06   -.43852E-04
   2  Prefactor     17.927        49.555       -.14177E-06   -.39882E-04
   3  norm          3.6545        1.4599        .17033E-07   -.22547E-03
   4  Prefactor     .69498        3.4895        .22600E-05    .12857E-03
   5  norm          .10000E-03    5.9904       -.13926E-06** at limit **
   6  Prefactor     16.481        16.917        .98763E-07   -.15670E-04
   7  Prefactor     .10000E-03    14.397        .65082E-07** at limit **
   8  Prefactor     .10000E-03    1.0724        .34767E-07** at limit **
   9  Prefactor     .10123E-03    12.395        .20213E-05** at limit **
  10  norm          2.3472        2.2278       -.36520E-07   -.71788E-04
  11  Prefactor     .10000E-03    9.0463       -.19332E-06** at limit **
  12  Prefactor     19.108        13.717       -.85478E-08   -.68763E-04
  13  Prefactor     .10000E-03    2.2863        .50816E-06** at limit **
  14  norm          15.956        13.908        .67986E-07   -.18805E-04
  15  Prefactor     23.111        21.426        .82836E-07   -.48807E-04
  16  norm          .10000E-03    3.2460        .15586E-06** at limit **
  17  Prefactor     36.468        27.037        .27312E-07   -.11892E-04
  18  Prefactor     30.240        30.914        .97774E-07   -.31525E-04
  19  norm          .10000E-03    4.9983        .10868E-06** at limit **
  20  Prefactor     2.0056        16.647        .20924E-05    .22890E-04
  21  Prefactor     .10000E-03    6.0408        .20715E-06** at limit **
  22  norm          11.065        2.5491        .21691E-07   -.13091E-03
  23  Prefactor     10.684        14.939        .36248E-06    .74031E-05
  24  Prefactor     49.362        53.514        .13264E-06    .49806E-05
  25  Normalizat    .71071        .17234       -.55602E-07   -.41646E-03
  26  Prefactor     1.1433        .19950       -.13170E-05   -.30806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1486
  Prefactor  = 17.9265
  norm       = 3.65452
  Prefactor  = 0.694978
  norm       = 0.0001
  Prefactor  = 16.4809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010123
  norm       = 2.34718
  Prefactor  = 0.0001
  Prefactor  = 19.1078
  Prefactor  = 0.0001
  norm       = 15.9565
  Prefactor  = 23.1106
  norm       = 0.0001
  Prefactor  = 36.4682
  Prefactor  = 30.2399
  norm       = 0.0001
  Prefactor  = 2.00557
  Prefactor  = 0.0001
  norm       = 11.065
  Prefactor  = 10.6838
  Prefactor  = 49.3623
  Normalizat = 0.710707
  Prefactor  = 1.1433
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.060     FROM HESSE     STATUS=OK           470 CALLS     3573 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.149        43.704        .96561E-04   -1.4880    
   2  Prefactor     17.927        49.731        .94470E-04   -1.4861    
   3  norm          3.6545        1.4602        .55608E-04   -1.5326    
   4  Prefactor     .69498        3.5697        .27228E-03   -1.5541    
   5  norm          .10000E-03    6.0033        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.481        16.911        .98652E-04   -1.4896    
   7  Prefactor     .10000E-03    14.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0735        .76709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10123E-03    14.008        .74651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3472        2.2359        .10710E-03   -1.5402    
  11  Prefactor     .10000E-03    9.0768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.108        13.725        .91626E-04   -1.4833    
  13  Prefactor     .10000E-03    4.2042        .21822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.956        13.905        .10026E-03   -1.4909    
  15  Prefactor     23.111        21.430        .83315E-04   -1.4746    
  16  norm          .10000E-03    3.2898        .13345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.468        27.035        .66365E-04   -1.4499    
  18  Prefactor     30.240        30.913        .72858E-04   -1.4608    
  19  norm          .10000E-03    5.0218        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0056        16.709        .29206E-03   -1.5425    
  21  Prefactor     .10000E-03    6.1034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.065        2.5454        .54934E-04   -1.5043    
  23  Prefactor     10.684        14.978        .12255E-03   -1.5054    
  24  Prefactor     49.362        53.533        .57081E-04   -1.4302    
  25  Normalizat    .71071        .20835        .25352E-03   -1.0347    
  26  Prefactor     1.1433        .23779        .24607E-03   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69987e-10
Minuit parameter uncertainties:
  1  43.7861
  2  49.8465
  3  1.46017
  4  3.15023
  5  9.36424e-07
  6  16.9155
  7  1.7017e-06
  8  3.0289e-08
  9  0.00830348
  10  2.23596
  11  7.72536e-07
  12  13.7277
  13  4.38666e-05
  14  13.9079
  15  21.437
  16  4.12864e-06
  17  27.0441
  18  30.9292
  19  7.76216e-07
  20  11.5818
  21  5.85603e-06
  22  2.54541
  23  14.9831
  24  53.5854
  25  0.208582
  26  0.238014
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.725e-07  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.143e+00  2.380e-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.107e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/341802/likelihoodResults_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.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) = 5753.06099818
delta logL = -0.000524840444086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5753.06047311
delta logL = 2.29141733143e-07

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 'Index     '    2.4397       1.0000          .0000       10.000    
     3 'Normalizat'    .71071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1433       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=   5753.060     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      251 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10432E-03    4.3574        .18142E-01** at limit **
   2  Index         2.3352        7.9784        .50000        .23951E-04
   3  Normalizat    .71071        .25128E-02    .25351E-03   -.57266E-04
   4  Prefactor     1.1433        .30421E-02    .24607E-03   -.65004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104316
  Index      = 2.33522
  Normalizat = 0.71071
  Prefactor  = 1.14329
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.060     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10432E-03    343.01        .48004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3352        8.7546        .50000       -.56209    
   3  Normalizat    .71071        .22906E-01    .10141E-04   -1.0347    
   4  Prefactor     1.1433        .27731E-01    .98430E-05   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.18905e-08
Minuit parameter uncertainties:
  1  0.0773996
  2  654.477
  3  0.0229066
  4  0.0277312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341802': 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) = 5753.06047267
delta logL = 6.6896154749e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.043e-04  7.740e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.335e+00  6.545e+02  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.143e+00  2.773e-02  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.107e-01  2.291e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

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/341802/cmap_HighResolution_420508801_420768001_4FGL_J1419.5+3821_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-09-09 09:37:41.831326', job_id='341802', GAL2='1.14', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631205461.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='699' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 341802: <4FGL_J1419.5+3821_daily_bin699> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin699> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:25:42 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:25:43 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:25:43 2021
Terminated at Thu Sep  9 09:37:42 2021
Results reported at Thu Sep  9 09:37:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin699 214.894 38.3657 420508801 420768001 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 :                                   692.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            720 sec.

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

