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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1030
RA = 214.894, Dec = 38.3657
tmin = 506304001, tmax = 506563201
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='343116', job_status='RUN', time_executed='2021-09-09 09:34:41.586375', time_epoch_executed='1631205281.59' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343116

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343116/ft1_4FGL_J1419.5+3821_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343116/ft2_4FGL_J1419.5+3821_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343116/ft1_4FGL_J1419.5+3821_daily_bin1030.fits outfile=/scratch/kocevski/343116/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1030.fits ra=214.894 dec=38.3657 rad=12.0 tmin=506304001.0 tmax=506563201.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.45
user 3.22
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343116/ft1_filtered_4FGL_J1419.5+3821_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/343116/ft2_4FGL_J1419.5+3821_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/343116/ltcube_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.fits outfile=/scratch/kocevski/343116/expmap_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.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/343116/ltcube_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.fits
.....................!
real 192.66
user 187.50
sys 4.80

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/343116/ft1_filtered_4FGL_J1419.5+3821_daily_bin1030.fits scfile=/scratch/kocevski/343116/ft2_4FGL_J1419.5+3821_daily_bin1030.fits outfile=/scratch/kocevski/343116/cmap_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.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/343116/ft1_filtered_4FGL_J1419.5+3821_daily_bin1030.fits scfile=/scratch/kocevski/343116/ft2_4FGL_J1419.5+3821_daily_bin1030.fits outfile=/scratch/kocevski/343116/cmap_HighResolution_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.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/343116/ft1_filtered_4FGL_J1419.5+3821_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/343116/ft2_4FGL_J1419.5+3821_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343116/Model_4FGL_J1419.5+3821_daily_bin1030.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/343116/ft1_filtered_4FGL_J1419.5+3821_daily_bin1030.fits.....................!
real 45.78
user 44.41
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4963       1.0000         .10000E-03   10000.    
     5 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.766       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.232       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1306       1.0000         .10000E-03   10000.    
    19 'norm      '    7.9822       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9737       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3228       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3488       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2906       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70271       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.690     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3084 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.877        31.985       -.45257E-06   -.16719E-04
   2  Prefactor     .10000E-03    16.569        .15728E-05** at limit **
   3  norm          5.8516        2.0920        .11914E-06   -.15521E-03
   4  Prefactor     3.4964        3.3574        .19891E-06   -.34090E-04
   5  norm          .10000E-03    8.4905       -.10071E-05** at limit **
   6  Prefactor     .10000E-03    5.4626        .15818E-06** at limit **
   7  Prefactor     34.746        67.191        .46755E-05    .11888E-04
   8  Prefactor     .10000E-03    1.7971       -.34275E-06** at limit **
   9  Prefactor     .10000E-03    10.380        .10155E-06** at limit **
  10  norm          1.2009        2.7265        .60831E-07   -.48947E-03
  11  Prefactor     .10000E-03    7.5953        .10699E-05** at limit **
  12  Prefactor     .10108E-03    17.702        .86269E-05** at limit **
  13  Prefactor     .10000E-03    1.7433       -.28594E-07** at limit **
  14  norm          .10000E-03    5.8672       -.26085E-06** at limit **
  15  Prefactor     32.227        27.455       -.23361E-06   -.30030E-03
  16  norm          2.2922        7.4207       -.64150E-06   -.46616E-03
  17  Prefactor     .10000E-03    116.77        .75025E-05** at limit **
  18  Prefactor     1.1714        114.73        .71978E-05   -.50856E-04
  19  norm          7.9820        7.1043       -.17811E-06   -.10060E-03
  20  Prefactor     5.9753        11.585       -.12770E-05   -.18335E-03
  21  Prefactor     2.3211        7.1970        .82907E-05    .11999E-03
  22  norm          .10000E-03    .59621        .15845E-06** at limit **
  23  Prefactor     1.3497        12.402        .13637E-05    .20353E-04
  24  Prefactor     .10000E-03    17.327       -.14974E-05** at limit **
  25  Normalizat    1.2905        .18152       -.14976E-05   -.11183E-02
  26  Prefactor     .70271        .19926       -.12473E-05   -.69510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8773
  Prefactor  = 0.0001
  norm       = 5.85159
  Prefactor  = 3.4964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.7456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20087
  Prefactor  = 0.0001
  Prefactor  = 0.00010108
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.2268
  norm       = 2.29225
  Prefactor  = 0.000100001
  Prefactor  = 1.17139
  norm       = 7.98198
  Prefactor  = 5.97531
  Prefactor  = 2.32114
  norm       = 0.0001
  Prefactor  = 1.34971
  Prefactor  = 0.0001
  Normalizat = 1.29051
  Prefactor  = 0.702712
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.690     FROM HESSE     STATUS=OK           460 CALLS     3544 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.877        31.970        .10387E-03   -1.4936    
   2  Prefactor     .10000E-03    16.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8516        2.0965        .60705E-04   -1.5224    
   4  Prefactor     3.4964        3.3542        .12779E-03   -1.5334    
   5  norm          .10000E-03    8.4993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4664        .16849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.746        67.353        .67965E-04   -1.4528    
   8  Prefactor     .10000E-03    1.8046        .96684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2009        2.2235        .17653E-02   -1.5489    
  11  Prefactor     .10000E-03    7.6234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10108E-03    104.92        .48413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7635        .95097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.8716        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.227        27.453        .70579E-04   -1.4572    
  16  norm          2.2922        7.3762        .27082E-03   -1.5405    
  17  Prefactor     .10000E-03    117.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1714        117.98        .43938E-02   -1.5492    
  19  norm          7.9820        7.1000        .14192E-03   -1.5143    
  20  Prefactor     5.9753        11.569        .16429E-03   -1.5219    
  21  Prefactor     2.3211        7.3358        .13456E-02   -1.5403    
  22  norm          .10000E-03    .61437        .11151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3497        12.398        .37683E-03   -1.5476    
  24  Prefactor     .10000E-03    17.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2905        .20795        .20222E-03   -.83850    
  26  Prefactor     .70271        .22892        .30523E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09055e-08
Minuit parameter uncertainties:
  1  32.0065
  2  7.34498e-05
  3  2.09651
  4  3.35436
  5  9.86478e-07
  6  5.50304e-06
  7  67.5009
  8  2.80031e-05
  9  3.21707e-05
  10  2.22369
  11  8.93158e-06
  12  0.0213283
  13  1.51066e-06
  14  1.08233e-05
  15  27.4633
  16  7.37907
  17  0.000521278
  18  23.5588
  19  7.1007
  20  11.573
  21  7.33865
  22  2.47621e-06
  23  8.18315
  24  5.56816e-05
  25  0.208085
  26  0.229226
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.932e-06  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:  7.027e-01  2.292e-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.291e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/343116/likelihoodResults_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5447.69083738
delta logL = -0.000624328630693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5447.69021307
delta logL = -1.72531144926e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4788       1.0000          .0000       10.000    
     3 'Normalizat'    1.2905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70273       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=   5447.690     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.486        .90712E-02** at limit **
   2  Index         2.4855        5.9161        .50000       -.80333E-05
   3  Normalizat    1.2905        .17104        .32977E-01   -.74191E-04
   4  Prefactor     .70271        .19734        .68976E-01    .34744E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4855
  Normalizat = 1.29051
  Prefactor  = 0.702713
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.690     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      236 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1412.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4855        6.1002        .50000       -.52695    
   3  Normalizat    1.2905        .90007E-01    .20222E-03   -.83850    
   4  Prefactor     .70271        .10364        .30523E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29515e-08
Minuit parameter uncertainties:
  1  0.000605637
  2  60.2861
  3  0.090018
  4  0.103672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343116': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5447.69021303
delta logL = 2.45236151386e-08

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.056e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.486e+00  6.029e+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.027e-01  1.037e-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.291e+00  9.002e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/343116/cmap_HighResolution_506304001_506563201_4FGL_J1419.5+3821_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-09 09:46:09.208897', job_id='343116', GAL2='0.70', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631205969.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1030' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 343116: <4FGL_J1419.5+3821_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1030> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 09:30:39 2021
Job was executed on host(s) <bullet0203>, 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:46:09 2021
Results reported at Thu Sep  9 09:46:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1030 214.894 38.3657 506304001 506563201 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 :                                   684.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

