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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin708
RA = 214.894, Dec = 38.3657
tmin = 422841601, tmax = 423100801
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='341815', job_status='RUN', time_executed='2021-09-09 09:25:55.013790', time_epoch_executed='1631204755.01' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341815/ft1_4FGL_J1419.5+3821_daily_bin708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341815/ft1_4FGL_J1419.5+3821_daily_bin708.fits outfile=/scratch/kocevski/341815/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin708.fits ra=214.894 dec=38.3657 rad=12.0 tmin=422841601.0 tmax=423100801.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.95
user 3.71
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.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/341815/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin708.fits evtable="EVENTS" outfile="/scratch/kocevski/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.fits" evtable="EVENTS" scfile=/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits sctable="SC_DATA" outfile=/scratch/kocevski/341815/ltcube_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.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/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits
.....................!
real 11.96
user 11.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits sctable="SC_DATA" expcube=/scratch/kocevski/341815/ltcube_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.fits outfile=/scratch/kocevski/341815/expmap_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.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/341815/ltcube_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.fits
.....................!
real 191.05
user 185.29
sys 5.36

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/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.fits scfile=/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits outfile=/scratch/kocevski/341815/cmap_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.fits scfile=/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits outfile=/scratch/kocevski/341815/cmap_HighResolution_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.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/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/341815/ft2_4FGL_J1419.5+3821_daily_bin708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341815/Model_4FGL_J1419.5+3821_daily_bin708.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/341815/ft1_filtered_4FGL_J1419.5+3821_daily_bin708.fits.....................!
real 47.72
user 46.30
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1357       1.0000         .10000E-03   10000.    
     3 'norm      '    6.6232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.8669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16298       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22438E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.409       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3287       1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.045       1.0000         .10000E-03   10000.    
    22 'norm      '    6.9374       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3711       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .51945       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=   5899.255     FROM MIGRAD    STATUS=CONVERGED   1119 CALLS     3655 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.970        79.308        .72057E-04   -.22719E-04
   2  Prefactor     .91896        88.056        .18157        .62466E-04
   3  norm          6.6230        1.8577        .52938E-04    .19650E-03
   4  Prefactor     .10000E-03    1.7852        .99844E-03** at limit **
   5  norm          6.8668        13.977        .15311E-03   -.19306E-04
   6  Prefactor     14.965        15.964        .10353E-03   -.44473E-04
   7  Prefactor     .10000E-03    21.630        .18142E-02** at limit **
   8  Prefactor     2.1899        3.6048        .18068E-03   -.20349E-03
   9  Prefactor     .10000E-03    9.9582        .18142E-02** at limit **
  10  norm          2.1922        2.4782        .12486E-03   -.44525E-04
  11  Prefactor     14.384        11.595        .10561E-03   -.63837E-04
  12  Prefactor     .10000E-03    7.7887        .18142E-02** at limit **
  13  Prefactor     .15054        25.326        .19863E-02    .62660E-03
  14  norm          .10000E-03    4.5273        .15958E-02** at limit **
  15  Prefactor     .10246E-03    19.399        .92814E-01** at limit **
  16  norm          .10000E-03    2.6668        .12205E-02** at limit **
  17  Prefactor     18.436        36.821        .93348E-04   -.29716E-04
  18  Prefactor     1.3273        173.88        .38111E-03    .41166E-05
  19  norm          .10000E-03    6.4781        .18142E-02** at limit **
  20  Prefactor     .10000E-03    19.502        .18142E-02** at limit **
  21  Prefactor     13.046        9.6430        .11090E-03   -.27125E-03
  22  norm          6.9368        2.3905        .61750E-04   -.60663E-03
  23  Prefactor     .10000E-03    13.502        .18142E-02** at limit **
  24  Prefactor     .10000E-03    28.684        .18142E-02** at limit **
  25  Normalizat    1.3711        .21146        .20050E-03   -.28243E-03
  26  Prefactor     .51978        .21657        .34812E-03   -.14082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9695
  Prefactor  = 0.918956
  norm       = 6.62297
  Prefactor  = 0.0001
  norm       = 6.86681
  Prefactor  = 14.9646
  Prefactor  = 0.000100001
  Prefactor  = 2.18991
  Prefactor  = 0.0001
  norm       = 2.19223
  Prefactor  = 14.3836
  Prefactor  = 0.0001
  Prefactor  = 0.150536
  norm       = 0.0001
  Prefactor  = 0.000102459
  norm       = 0.0001
  Prefactor  = 18.4362
  Prefactor  = 1.32732
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0459
  norm       = 6.93678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37112
  Prefactor  = 0.519776
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.255     FROM HESSE     STATUS=OK           452 CALLS     4107 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.970        79.278        .14411E-04   -1.4594    
   2  Prefactor     .91896        94.783        .17359       -1.5516    
   3  norm          6.6230        1.8571        .21175E-05   -1.5193    
   4  Prefactor     .10000E-03    1.7854        .19969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8668        13.973        .61242E-05   -1.5184    
   6  Prefactor     14.965        15.963        .41412E-05   -1.4934    
   7  Prefactor     .10000E-03    21.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1899        3.6044        .72270E-05   -1.5412    
   9  Prefactor     .10000E-03    9.9601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1922        2.4776        .49943E-05   -1.5412    
  11  Prefactor     14.384        11.594        .42243E-05   -1.4949    
  12  Prefactor     .10000E-03    7.7894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .15054        25.117        .79451E-04   -1.5630    
  14  norm          .10000E-03    4.5273        .31917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10246E-03    18.386        .96508E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6671        .24409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.436        36.826        .37339E-05   -1.4849    
  18  Prefactor     1.3273        173.77        .15245E-04   -1.5478    
  19  norm          .10000E-03    6.4836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.046        9.6426        .44360E-05   -1.4985    
  22  norm          6.9368        2.3900        .24700E-05   -1.5181    
  23  Prefactor     .10000E-03    13.513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3711        .21094        .40101E-04   -.81468    
  26  Prefactor     .51978        .21674        .13925E-04   -1.1108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34417e-09
Minuit parameter uncertainties:
  1  79.5491
  2  18.6951
  3  1.8571
  4  1.80498e-06
  5  13.9798
  6  15.9679
  7  0.000232645
  8  3.60477
  9  1.3835e-05
  10  2.47771
  11  11.5962
  12  3.24648e-05
  13  3.88933
  14  8.50403e-06
  15  0.0134533
  16  2.50762e-05
  17  36.8714
  18  30.464
  19  1.62633e-05
  20  0.000100602
  21  9.64373
  22  2.39007
  23  0.000102321
  24  4.28438e-05
  25  0.21107
  26  0.217087
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.438e+01  1.160e+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:  5.198e-01  2.171e-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.371e+00  2.111e-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.59e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 8.67e-06

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

Saving results to:
/scratch/kocevski/341815/likelihoodResults_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.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) = 5898.77050439
delta logL = 0.484580373488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5898.77038606
delta logL = 0.484698708216

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.999       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8211       1.0000          .0000       10.000    
     3 'Normalizat'    1.3950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50125       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=   5898.770     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      242 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.960        33.228        .21852E-02   -.16274E-03
   2  Index         1.8210        1.0075        .19406       -.43300E-04
   3  Normalizat    1.3950        .17060        .45031E-01   -.33786E-03
   4  Prefactor     .50127        .18818        .79882E-01   -.23208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9599
  Index      = 1.82099
  Normalizat = 1.39496
  Prefactor  = 0.501273
 **********
 **   18 **HESSE 
 **********

 FCN=   5898.770     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.960        16.615        .87406E-04   -1.4792    
   2  Index         1.8210        .58884        .97223E-02   -.68905    
   3  Normalizat    1.3950        .18850        .19905E-03   -.80774    
   4  Prefactor     .50127        .21016        .35383E-03   -1.1192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27313e-10
Minuit parameter uncertainties:
  1  16.6184
  2  0.591152
  3  0.188594
  4  0.210491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341815': 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) = 5898.7703833
delta logL = 0.484701466837

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.096e+01  1.662e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.821e+00  5.912e-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.013e-01  2.105e-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.395e+00  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.82 +/- 0.59
Photon Flux (Free Index): 1.97e-08 +/- 2.12e-08
Energy Flux (Free Index): 2.22e-05 +/- 2.86e-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/341815/cmap_HighResolution_422841601_423100801_4FGL_J1419.5+3821_daily_bin708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='2.22e-05', photon_flux_error='2.89e-08', dlogl='4.85e-01', energy_flux='1.08e-05', photon_flux2='1.97e-08', job_status='DONE', time_completed='2021-09-09 09:39:11.859760', photon_index_error2='0.59', photon_index2='1.82', ts='3.33', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='2.86e-05', EG='1.37', time_epoch_completed='1631205551.86', return_code='0', job_id='341815', GAL2='0.50', EG2='1.39', return_code2='0', energy_flux_error='8.67e-06', photon_flux_error2='2.12e-08', ts2='4.31', photon_index='2.47' WHERE bin_id='708' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 341815: <4FGL_J1419.5+3821_daily_bin708> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin708 214.894 38.3657 422841601 423100801 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

