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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1025
RA = 214.894, Dec = 38.3657
tmin = 505008001, tmax = 505267201
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='343109', job_status='RUN', time_executed='2021-09-09 09:31:17.250421', time_epoch_executed='1631205077.25' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343109/ft1_4FGL_J1419.5+3821_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343109/ft2_4FGL_J1419.5+3821_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343109/ft1_4FGL_J1419.5+3821_daily_bin1025.fits outfile=/scratch/kocevski/343109/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1025.fits ra=214.894 dec=38.3657 rad=12.0 tmin=505008001.0 tmax=505267201.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 4.50
user 4.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343109/ft1_filtered_4FGL_J1419.5+3821_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/343109/ft2_4FGL_J1419.5+3821_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/343109/ltcube_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.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/343109/ft2_4FGL_J1419.5+3821_daily_bin1025.fits
.....................!
real 11.80
user 11.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343109/ft1_filtered_4FGL_J1419.5+3821_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/343109/ft2_4FGL_J1419.5+3821_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/343109/ltcube_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.fits outfile=/scratch/kocevski/343109/expmap_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.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/343109/ltcube_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.fits
.....................!
real 189.70
user 185.13
sys 4.18

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/343109/ft1_filtered_4FGL_J1419.5+3821_daily_bin1025.fits scfile=/scratch/kocevski/343109/ft2_4FGL_J1419.5+3821_daily_bin1025.fits outfile=/scratch/kocevski/343109/cmap_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343109/ft1_filtered_4FGL_J1419.5+3821_daily_bin1025.fits scfile=/scratch/kocevski/343109/ft2_4FGL_J1419.5+3821_daily_bin1025.fits outfile=/scratch/kocevski/343109/cmap_HighResolution_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12212E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.593       1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8533       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.910       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13287E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21294E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.195       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .44104       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4117       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .33477       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=   5447.099     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3109 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.735        64.912       -.36800E-04    .61553E-05
   2  Prefactor     .10000E-03    27.196       -.97311E-06** at limit **
   3  norm          6.7473        1.8830       -.46046E-07    .18750E-03
   4  Prefactor     .10000E-03    1.2577        .13555E-07** at limit **
   5  norm          .10000E-03    8.8033       -.38454E-06** at limit **
   6  Prefactor     11.594        14.468        .37618E-06    .12185E-04
   7  Prefactor     73.686        69.856       -.76619E-05    .16014E-04
   8  Prefactor     7.8511        5.9964       -.59833E-06   -.64385E-04
   9  Prefactor     13.913        18.401       -.42601E-05    .90371E-05
  10  norm          .10000E-03    1.6100       -.74236E-07** at limit **
  11  Prefactor     10.677        11.157       -.90631E-06    .33872E-04
  12  Prefactor     .10000E-03    7.2797       -.11296E-06** at limit **
  13  Prefactor     .10000E-03    1.9334       -.49651E-06** at limit **
  14  norm          10.028        11.278        .16895E-05   -.26779E-05
  15  Prefactor     .10000E-03    22.822        .41866E-06** at limit **
  16  norm          .10000E-03    1.5420        .46788E-07** at limit **
  17  Prefactor     33.613        40.510        .19155E-04    .14090E-04
  18  Prefactor     .10000E-03    46.568        .42408E-06** at limit **
  19  norm          .10000E-03    3.4015        .66954E-07** at limit **
  20  Prefactor     19.780        13.670       -.16298E-05    .42681E-04
  21  Prefactor     10.199        7.3583       -.48189E-05   -.45916E-04
  22  norm          .10000E-03    .75077        .23275E-06** at limit **
  23  Prefactor     .10000E-03    5.8842       -.14452E-06** at limit **
  24  Prefactor     .24773        42.345       -.57130E-06    .62670E-05
  25  Normalizat    1.4117        .19377        .34341E-05    .44383E-04
  26  Prefactor     .33499        .20585       -.26067E-05    .92494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7352
  Prefactor  = 0.0001
  norm       = 6.74728
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5937
  Prefactor  = 73.6864
  Prefactor  = 7.85113
  Prefactor  = 13.9129
  norm       = 0.0001
  Prefactor  = 10.677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7803
  Prefactor  = 10.199
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.247726
  Normalizat = 1.41169
  Prefactor  = 0.334989
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.099     FROM HESSE     STATUS=OK           464 CALLS     3573 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.735        64.899        .87776E-04   -1.4797    
   2  Prefactor     .10000E-03    27.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7473        1.8859        .51378E-04   -1.5188    
   4  Prefactor     .10000E-03    1.2651        .80820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.8385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.594        14.456        .11766E-03   -1.5027    
   7  Prefactor     73.686        69.837        .46767E-04   -1.3989    
   8  Prefactor     7.8511        5.9855        .14308E-03   -1.5147    
   9  Prefactor     13.913        18.433        .10739E-03   -1.4962    
  10  norm          .10000E-03    1.6267        .91423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.677        11.174        .12258E-03   -1.5054    
  12  Prefactor     .10000E-03    7.2929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.328        .19539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.028        11.276        .12660E-03   -1.5075    
  15  Prefactor     .10000E-03    22.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5441        .89491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.613        40.477        .69093E-04   -1.4548    
  18  Prefactor     .10000E-03    46.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4216        .13293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.780        13.671        .90047E-04   -1.4818    
  21  Prefactor     10.199        7.3549        .12549E-03   -1.5069    
  22  norm          .10000E-03    .77325        .12450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9106        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .24773        44.063        .16543       -1.5608    
  25  Normalizat    1.4117        .20145        .18762E-03   -.80291    
  26  Prefactor     .33499        .21194        .39894E-03   -1.2027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08147e-10
Minuit parameter uncertainties:
  1  65.1209
  2  2.76482e-06
  3  1.88594
  4  2.15492e-06
  5  1.8368e-05
  6  14.4606
  7  69.9146
  8  5.98593
  9  18.4404
  10  6.38898e-06
  11  11.1763
  12  3.34911e-05
  13  5.63387e-05
  14  11.2786
  15  0.000176474
  16  9.63966e-06
  17  40.5097
  18  7.39637e-05
  19  4.36422e-06
  20  13.6734
  21  7.35556
  22  1.99096e-05
  23  9.52074e-06
  24  6.61137
  25  0.201564
  26  0.212434
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.068e+01  1.118e+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:  3.350e-01  2.124e-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:  1.412e+00  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 7.98e-06 +/- 8.35e-06

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

Saving results to:
/scratch/kocevski/343109/likelihoodResults_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.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) = 5447.0968571
delta logL = 0.00167120728202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5447.09552905
delta logL = 0.00299925540185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.014       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5571       1.0000          .0000       10.000    
     3 'Normalizat'    1.4086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33724       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=   5447.096     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      245 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.013        14.721        .12662E-03    .28740E-03
   2  Index         2.5574        1.2029        .94728E-02    .44303E-04
   3  Normalizat    1.4085        .19791        .18779E-03   -.41790E-03
   4  Prefactor     .33728        .21239        .39766E-03   -.24389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0127
  Index      = 2.55737
  Normalizat = 1.40853
  Prefactor  = 0.337277
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.096     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.013        13.446        .50649E-05   -1.5075    
   2  Index         2.5574        1.0988        .37891E-03   -.51040    
   3  Normalizat    1.4085        .19699        .37559E-04   -.80382    
   4  Prefactor     .33728        .21189        .15906E-04   -1.2014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90598e-10
Minuit parameter uncertainties:
  1  13.4503
  2  1.11077
  3  0.197097
  4  0.212383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343109': 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) = 5447.09552902
delta logL = 0.00299929149787

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.001e+01  1.345e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.557e+00  1.111e+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:  3.373e-01  2.124e-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:  1.409e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.56 +/- 1.11
Photon Flux (Free Index): 2.89e-08 +/- 4.14e-08
Energy Flux (Free Index): 7.91e-06 +/- 7.86e-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/343109/cmap_HighResolution_505008001_505267201_4FGL_J1419.5+3821_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='7.91e-06', photon_flux_error='2.79e-08', dlogl='3.00e-03', energy_flux='7.98e-06', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-09 09:42:50.629181', photon_index_error2='1.11', photon_index2='2.56', ts='2.40', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='7.86e-06', EG='1.41', time_epoch_completed='1631205770.63', return_code='0', job_id='343109', GAL2='0.34', EG2='1.41', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='4.14e-08', ts2='2.41', photon_index='2.47' WHERE bin_id='1025' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:42:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 343109: <4FGL_J1419.5+3821_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1025> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 09:30:38 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:30:40 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:30:40 2021
Terminated at Thu Sep  9 09:42:51 2021
Results reported at Thu Sep  9 09:42:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1025 214.894 38.3657 505008001 505267201 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 :                                   683.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            733 sec.

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

