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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin904
RA = 214.894, Dec = 38.3657
tmin = 473644801, tmax = 473904001
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='342937', job_status='RUN', time_executed='2021-09-09 09:30:41.283664', time_epoch_executed='1631205041.28' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342937/ft1_4FGL_J1419.5+3821_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342937/ft2_4FGL_J1419.5+3821_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342937/ft1_4FGL_J1419.5+3821_daily_bin904.fits outfile=/scratch/kocevski/342937/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin904.fits ra=214.894 dec=38.3657 rad=12.0 tmin=473644801.0 tmax=473904001.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.76
user 3.55
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342937/ft2_4FGL_J1419.5+3821_daily_bin904.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/342937/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin904.fits evtable="EVENTS" outfile="/scratch/kocevski/342937/ft1_filtered_4FGL_J1419.5+3821_daily_bin904.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342937/ft1_filtered_4FGL_J1419.5+3821_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/342937/ft2_4FGL_J1419.5+3821_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/342937/ltcube_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.fits outfile=/scratch/kocevski/342937/expmap_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.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/342937/ltcube_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.fits
.....................!
real 189.75
user 185.37
sys 3.98

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/342937/ft1_filtered_4FGL_J1419.5+3821_daily_bin904.fits scfile=/scratch/kocevski/342937/ft2_4FGL_J1419.5+3821_daily_bin904.fits outfile=/scratch/kocevski/342937/cmap_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342937/ft1_filtered_4FGL_J1419.5+3821_daily_bin904.fits scfile=/scratch/kocevski/342937/ft2_4FGL_J1419.5+3821_daily_bin904.fits outfile=/scratch/kocevski/342937/cmap_HighResolution_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3804       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7005       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6710       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19300E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    31.873       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.370       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1713       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.115       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6860       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    85.943       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3166       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54597       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=   6071.940     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3063 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    29.293        .36479E-05** at limit **
   2  Prefactor     .10000E-03    37.108       -.33710E-05** at limit **
   3  norm          1.3803        1.0871        .12652E-07    .18350E-04
   4  Prefactor     1.7005        3.0644        .22634E-06   -.17375E-03
   5  norm          .10000E-03    6.3901        .33865E-07** at limit **
   6  Prefactor     .10000E-03    14.305       -.19731E-05** at limit **
   7  Prefactor     .10000E-03    12.790        .23529E-07** at limit **
   8  Prefactor     2.6711        3.6190        .11606E-06   -.13613E-03
   9  Prefactor     .10000E-03    10.581        .12166E-05** at limit **
  10  norm          2.5747        2.4531       -.28049E-07    .10545E-04
  11  Prefactor     8.6731        9.7190        .65249E-06   -.17666E-03
  12  Prefactor     .10000E-03    8.2854       -.10029E-05** at limit **
  13  Prefactor     .10000E-03    2.1396        .41526E-06** at limit **
  14  norm          .10000E-03    4.9201       -.43414E-06** at limit **
  15  Prefactor     .10000E-03    12.040        .65120E-06** at limit **
  16  norm          31.873        9.2096       -.12011E-06   -.32465E-04
  17  Prefactor     .10000E-03    22.127        .12786E-06** at limit **
  18  Prefactor     27.367        32.729       -.62305E-06   -.98989E-04
  19  norm          6.1709        9.7588        .26687E-05   -.52717E-03
  20  Prefactor     21.113        17.508       -.71246E-06   -.63976E-04
  21  Prefactor     .10000E-03    4.1722       -.15462E-06** at limit **
  22  norm          2.6859        1.7197        .84351E-07   -.18559E-04
  23  Prefactor     .10000E-03    4.4215        .36578E-06** at limit **
  24  Prefactor     85.935        78.260       -.16874E-05   -.98140E-04
  25  Normalizat    1.3166        .17047       -.78842E-08   -.13511E-03
  26  Prefactor     .54602        .19102       -.18968E-06   -.71890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  norm       = 1.3803
  Prefactor  = 1.70052
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.67111
  Prefactor  = 0.000100001
  norm       = 2.57471
  Prefactor  = 8.67307
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.8735
  Prefactor  = 0.0001
  Prefactor  = 27.3669
  norm       = 6.17087
  Prefactor  = 21.1127
  Prefactor  = 0.0001
  norm       = 2.68591
  Prefactor  = 0.0001
  Prefactor  = 85.9354
  Normalizat = 1.31656
  Prefactor  = 0.546015
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.940     FROM HESSE     STATUS=OK           452 CALLS     3515 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3803        1.0888        .37048E-04   -1.5473    
   4  Prefactor     1.7005        3.0502        .17622E-03   -1.5447    
   5  norm          .10000E-03    6.4191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6711        3.6104        .16728E-03   -1.5381    
   9  Prefactor     .10000E-03    10.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5747        2.4569        .11539E-03   -1.5387    
  11  Prefactor     8.6731        9.8018        .68063E-03   -1.5119    
  12  Prefactor     .10000E-03    8.4239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1939        .21419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9432        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.873        9.2338        .70974E-04   -1.4578    
  17  Prefactor     .10000E-03    22.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.367        32.886        .76576E-04   -1.4661    
  19  norm          6.1709        10.479        .80801E-03   -1.5211    
  20  Prefactor     21.113        17.522        .87166E-04   -1.4789    
  21  Prefactor     .10000E-03    4.1991        .15533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6859        1.7112        .75843E-04   -1.5380    
  23  Prefactor     .10000E-03    4.4492        .16028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     85.935        78.951        .43335E-04   -1.3851    
  25  Normalizat    1.3166        .19232        .19709E-03   -.83073    
  26  Prefactor     .54602        .21482        .33429E-03   -1.0991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38637e-09
Minuit parameter uncertainties:
  1  0.000823078
  2  0.000859156
  3  1.08884
  4  3.05048
  5  2.89222e-06
  6  0.000303062
  7  2.99197e-06
  8  3.61071
  9  0.00015628
  10  2.45696
  11  9.80363
  12  0.000117254
  13  0.000177626
  14  3.91773e-05
  15  8.99423e-05
  16  9.23426
  17  2.24295e-05
  18  32.9073
  19  10.4821
  20  17.5267
  21  1.14751e-05
  22  1.71121
  23  3.10062e-05
  24  79.0471
  25  0.192424
  26  0.215143
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  8.673e+00  9.804e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  5.460e-01  2.151e-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.317e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 6.48e-06 +/- 7.33e-06

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

Saving results to:
/scratch/kocevski/342937/likelihoodResults_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.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) = 6071.92982305
delta logL = 0.0105306627411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6071.92195523
delta logL = 0.0183984827618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.328       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3121       1.0000          .0000       10.000    
     3 'Normalizat'    1.3193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54360       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=   6071.922     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.335        14.682        .12468E-03    .11380E-03
   2  Index         2.3112        .84896        .95939E-02   -.16568E-04
   3  Normalizat    1.3194        .18716        .19692E-03   -.92777E-04
   4  Prefactor     .54353        .21244        .33499E-03   -.80024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3347
  Index      = 2.31119
  Normalizat = 1.31937
  Prefactor  = 0.543535
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.922     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.335        14.013        .49871E-05   -1.5065    
   2  Index         2.3112        .81066        .38376E-03   -.56778    
   3  Normalizat    1.3194        .18721        .39384E-04   -.82990    
   4  Prefactor     .54353        .21251        .13400E-04   -1.1002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8949e-11
Minuit parameter uncertainties:
  1  14.0175
  2  0.815742
  3  0.187309
  4  0.212826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342937': 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) = 6071.92195455
delta logL = 0.0183991657905

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.033e+01  1.402e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.311e+00  8.157e-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:  5.435e-01  2.128e-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.319e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.31 +/- 0.82
Photon Flux (Free Index): 1.97e-08 +/- 2.48e-08
Energy Flux (Free Index): 7.33e-06 +/- 9.66e-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/342937/cmap_HighResolution_473644801_473904001_4FGL_J1419.5+3821_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='7.33e-06', photon_flux_error='2.44e-08', dlogl='1.84e-02', energy_flux='6.48e-06', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-09 09:42:38.902822', photon_index_error2='0.82', photon_index2='2.31', ts='1.46', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='8.47e-08', energy_flux_error2='9.66e-06', EG='1.32', time_epoch_completed='1631205758.9', return_code='0', job_id='342937', GAL2='0.54', EG2='1.32', return_code2='0', energy_flux_error='7.33e-06', photon_flux_error2='2.48e-08', ts2='1.49', photon_index='2.47' WHERE bin_id='904' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 342937: <4FGL_J1419.5+3821_daily_bin904> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin904 214.894 38.3657 473644801 473904001 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 :                                   712.00 sec.
    Max Memory :                                 1012 MB
    Average Memory :                             299.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

