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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1039
RA = 214.894, Dec = 38.3657
tmin = 508636801, tmax = 508896001
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='343128', job_status='RUN', time_executed='2021-09-09 09:33:48.641338', time_epoch_executed='1631205228.64' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343128/ft1_4FGL_J1419.5+3821_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343128/ft2_4FGL_J1419.5+3821_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343128/ft1_4FGL_J1419.5+3821_daily_bin1039.fits outfile=/scratch/kocevski/343128/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1039.fits ra=214.894 dec=38.3657 rad=12.0 tmin=508636801.0 tmax=508896001.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.69
user 3.48
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343128/ft1_filtered_4FGL_J1419.5+3821_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/343128/ft2_4FGL_J1419.5+3821_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/343128/ltcube_508636801_508896001_4FGL_J1419.5+3821_daily_bin1039.fits outfile=/scratch/kocevski/343128/expmap_508636801_508896001_4FGL_J1419.5+3821_daily_bin1039.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/343128/ltcube_508636801_508896001_4FGL_J1419.5+3821_daily_bin1039.fits
.....................!
real 190.87
user 185.94
sys 4.59

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/343128/ft1_filtered_4FGL_J1419.5+3821_daily_bin1039.fits scfile=/scratch/kocevski/343128/ft2_4FGL_J1419.5+3821_daily_bin1039.fits outfile=/scratch/kocevski/343128/cmap_508636801_508896001_4FGL_J1419.5+3821_daily_bin1039.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4092       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9113       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.231       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.965       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.291       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1522       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.554       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3806       1.0000         .10000E-03   10000.    
    22 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.084       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13698E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1984       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80999       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=   5544.370     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3047 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.290       -.93206E-05** at limit **
   2  Prefactor     .10000E-03    42.119        .95746E-05** at limit **
   3  norm          4.4094        1.9816        .16902E-07   -.37285E-04
   4  Prefactor     .10000E-03    3.0638        .52812E-07** at limit **
   5  norm          2.9120        6.7993        .37323E-06   -.51722E-03
   6  Prefactor     18.232        18.022       -.10950E-06   -.44118E-05
   7  Prefactor     48.964        60.716       -.13873E-05   -.51826E-05
   8  Prefactor     .10000E-03    1.8494        .36137E-07** at limit **
   9  Prefactor     .10000E-03    4.1569        .17296E-07** at limit **
  10  norm          .10000E-03    .99504        .12400E-07** at limit **
  11  Prefactor     14.291        11.510        .31529E-07   -.49202E-05
  12  Prefactor     .10000E-03    7.2346        .43602E-08** at limit **
  13  Prefactor     .10000E-03    1.1174       -.56815E-09** at limit **
  14  norm          .10000E-03    5.0525        .19736E-07** at limit **
  15  Prefactor     .10000E-03    15.900       -.80962E-07** at limit **
  16  norm          5.1524        5.0355        .16813E-06   -.12949E-04
  17  Prefactor     .10000E-03    26.573        .10119E-05** at limit **
  18  Prefactor     20.556        44.446        .18496E-05    .35245E-05
  19  norm          .10000E-03    2.9745        .11276E-07** at limit **
  20  Prefactor     4.1350        14.952        .36128E-06   -.23735E-03
  21  Prefactor     5.3783        8.2396       -.40101E-06   -.43186E-04
  22  norm          .10000E-03    .83232        .45793E-07** at limit **
  23  Prefactor     13.084        12.578        .20723E-07   -.35551E-05
  24  Prefactor     .10000E-03    96.167       -.16849E-05** at limit **
  25  Normalizat    1.1984        .18267        .49898E-08   -.27550E-04
  26  Prefactor     .80987        .19870       -.26684E-06   -.12510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.40941
  Prefactor  = 0.0001
  norm       = 2.91203
  Prefactor  = 18.2319
  Prefactor  = 48.9636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.15241
  Prefactor  = 0.0001
  Prefactor  = 20.5557
  norm       = 0.0001
  Prefactor  = 4.13502
  Prefactor  = 5.37825
  norm       = 0.0001
  Prefactor  = 13.0835
  Prefactor  = 0.0001
  Normalizat = 1.19844
  Prefactor  = 0.809871
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.370     FROM HESSE     STATUS=OK           456 CALLS     3503 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4094        1.9802        .66980E-04   -1.5288    
   4  Prefactor     .10000E-03    6.2491        .25093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9120        11.962        .11906E-02   -1.5367    
   6  Prefactor     18.232        18.029        .93804E-04   -1.4854    
   7  Prefactor     48.964        60.844        .57307E-04   -1.4307    
   8  Prefactor     .10000E-03    1.8608        .98850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1585        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .99701        .72531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.291        11.503        .10595E-03   -1.4952    
  12  Prefactor     .10000E-03    7.2475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1206        .76852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.0539        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1524        5.0286        .15957E-03   -1.5254    
  17  Prefactor     .10000E-03    26.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.556        44.506        .88347E-04   -1.4801    
  19  norm          .10000E-03    2.9769        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1350        16.972        .99075E-03   -1.5301    
  21  Prefactor     5.3783        8.1785        .17325E-03   -1.5244    
  22  norm          .10000E-03    .86281        .13192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.084        12.583        .11074E-03   -1.4984    
  24  Prefactor     .10000E-03    96.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1984        .21428        .21954E-03   -.86651    
  26  Prefactor     .80987        .23134        .29217E-03   -.99365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64907e-09
Minuit parameter uncertainties:
  1  0.000125057
  2  0.000134599
  3  1.98023
  4  4.70721e-06
  5  11.8079
  6  18.0345
  7  60.9215
  8  2.21481e-06
  9  9.1773e-07
  10  3.01907e-08
  11  11.5048
  12  8.76113e-08
  13  4.01018e-07
  14  1.01121e-07
  15  1.18825e-06
  16  5.02899
  17  1.18489e-05
  18  44.5777
  19  1.5604e-07
  20  16.7626
  21  8.18022
  22  1.90848e-06
  23  12.5855
  24  1.89776e-05
  25  0.214435
  26  0.231618
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.429e+01  1.150e+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:  8.099e-01  2.316e-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.198e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 8.60e-06

TS (Fixed Index): 3.33
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/343128/likelihoodResults_508636801_508896001_4FGL_J1419.5+3821_daily_bin1039.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) = 5543.08978847
delta logL = 1.28069725442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.04600678
delta logL = 1.32447894186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.459       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6860       1.0000          .0000       10.000    
     3 'Normalizat'    1.2184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79009       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.

 FCN=   5543.046     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      232 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.459        25.400        .18775E-02   -.20860E-02
   2  Index         1.6868        .47386        .17812       -.11836E-04
   3  Normalizat    1.2187        .17217        .49295E-01    .22806E-04
   4  Prefactor     .78974        .19285        .66707E-01    .38516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.459
  Index      = 1.68677
  Normalizat = 1.21874
  Prefactor  = 0.78974
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.046     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.459        19.773        .37550E-03   -1.4641    
   2  Index         1.6868        .40621        .71498E-02   -.72435    
   3  Normalizat    1.2187        .20531        .21793E-03   -.86026    
   4  Prefactor     .78974        .22981        .29512E-03   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00426e-09
Minuit parameter uncertainties:
  1  19.7773
  2  0.407013
  3  0.205446
  4  0.230092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343128': 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) = 5543.0460036
delta logL = 1.32448212556

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.846e+01  1.978e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.687e+00  4.070e-01  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:  7.897e-01  2.301e-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.219e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.69 +/- 0.41
Photon Flux (Free Index): 2.31e-08 +/- 1.88e-08
Energy Flux (Free Index): 3.93e-05 +/- 4.44e-05

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/343128/cmap_HighResolution_508636801_508896001_4FGL_J1419.5+3821_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='3.93e-05', photon_flux_error='2.87e-08', dlogl='1.32e+00', energy_flux='1.07e-05', photon_flux2='2.31e-08', job_status='DONE', time_completed='2021-09-09 09:44:49.871284', photon_index_error2='0.41', photon_index2='1.69', ts='3.33', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='4.44e-05', EG='1.20', time_epoch_completed='1631205889.87', return_code='0', job_id='343128', GAL2='0.79', EG2='1.22', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='1.88e-08', ts2='6.00', photon_index='2.47' WHERE bin_id='1039' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 343128: <4FGL_J1419.5+3821_daily_bin1039> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1039 214.894 38.3657 508636801 508896001 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 :                                   659.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

