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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1001
RA = 214.894, Dec = 38.3657
tmin = 498787201, tmax = 499046401
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='343075', job_status='RUN', time_executed='2021-09-09 09:33:57.213528', time_epoch_executed='1631205237.21' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343075

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343075/ft1_4FGL_J1419.5+3821_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343075/ft1_4FGL_J1419.5+3821_daily_bin1001.fits outfile=/scratch/kocevski/343075/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1001.fits ra=214.894 dec=38.3657 rad=12.0 tmin=498787201.0 tmax=499046401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.99
user 4.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.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/343075/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1001.fits evtable="EVENTS" outfile="/scratch/kocevski/343075/ft1_filtered_4FGL_J1419.5+3821_daily_bin1001.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343075/ft1_filtered_4FGL_J1419.5+3821_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/343075/ltcube_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.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/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343075/ft1_filtered_4FGL_J1419.5+3821_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/343075/ltcube_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.fits outfile=/scratch/kocevski/343075/expmap_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.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/343075/ltcube_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.fits
.....................!
real 191.97
user 187.62
sys 3.99

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/343075/ft1_filtered_4FGL_J1419.5+3821_daily_bin1001.fits scfile=/scratch/kocevski/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.fits outfile=/scratch/kocevski/343075/cmap_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343075/ft1_filtered_4FGL_J1419.5+3821_daily_bin1001.fits scfile=/scratch/kocevski/343075/ft2_4FGL_J1419.5+3821_daily_bin1001.fits outfile=/scratch/kocevski/343075/cmap_HighResolution_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    142.20       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9935       1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.148       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4432       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1944       1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5623       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.844       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .34399E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1137       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89966       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4212       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=   5806.383     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3198 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.521        .24679E-06** at limit **
   2  Prefactor     142.27        102.37        .24758E-05    .13916E-03
   3  norm          4.8383        1.9195        .43494E-06    .22858E-02
   4  Prefactor     6.9938        5.4885        .45362E-06    .25292E-03
   5  norm          .10000E-03    6.5552        .36273E-06** at limit **
   6  Prefactor     17.151        19.878        .15014E-06   -.17342E-04
   7  Prefactor     .10000E-03    40.285       -.22784E-06** at limit **
   8  Prefactor     1.4434        3.5069        .10338E-05    .57160E-03
   9  Prefactor     .10000E-03    10.575       -.19780E-06** at limit **
  10  norm          3.1623        3.2896        .47155E-07    .30873E-04
  11  Prefactor     .10000E-03    9.2402       -.23513E-06** at limit **
  12  Prefactor     .10000E-03    9.8461       -.37928E-06** at limit **
  13  Prefactor     3.1945        3.3424        .16710E-06    .72566E-04
  14  norm          .10000E-03    17.512       -.57463E-07** at limit **
  15  Prefactor     7.5651        22.714        .52111E-06    .53111E-07
  16  norm          .10000E-03    14.138       -.86382E-06** at limit **
  17  Prefactor     27.855        54.830       -.23202E-06   -.34023E-04
  18  Prefactor     .10000E-03    13.240        .41589E-07** at limit **
  19  norm          .59991E-01    16.459       -.40992E-05    .76900E-03
  20  Prefactor     11.014        10.604        .80086E-07    .51893E-04
  21  Prefactor     .10000E-03    7.4445       -.18684E-06** at limit **
  22  norm          1.1144        1.4499        .85824E-07    .22191E-03
  23  Prefactor     2.7765        12.074        .15189E-05    .11971E-03
  24  Prefactor     .10003E-03    438.49       -.57359E-05** at limit **
  25  Normalizat    .89987        .22997       -.52635E-05   -.12294E-03
  26  Prefactor     1.4209        .25510        .35317E-05    .69849E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 142.272
  norm       = 4.83826
  Prefactor  = 6.99379
  norm       = 0.0001
  Prefactor  = 17.1509
  Prefactor  = 0.0001
  Prefactor  = 1.44338
  Prefactor  = 0.0001
  norm       = 3.1623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1945
  norm       = 0.0001
  Prefactor  = 7.56511
  norm       = 0.0001
  Prefactor  = 27.8553
  Prefactor  = 0.0001
  norm       = 0.059991
  Prefactor  = 11.0136
  Prefactor  = 0.0001
  norm       = 1.11444
  Prefactor  = 2.77646
  Prefactor  = 0.000100033
  Normalizat = 0.899872
  Prefactor  = 1.42092
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.383     FROM HESSE     STATUS=OK           464 CALLS     3662 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     142.27        103.44        .16893E-03   -1.3317    
   3  norm          4.8383        1.9534        .32354E-03   -1.5268    
   4  Prefactor     6.9938        5.4927        .15071E-03   -1.5179    
   5  norm          .10000E-03    6.5702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.151        19.875        .96719E-04   -1.4879    
   7  Prefactor     .10000E-03    40.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4434        3.5311        .21992E-03   -1.5468    
   9  Prefactor     .10000E-03    10.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1623        3.2878        .13655E-03   -1.5352    
  11  Prefactor     .10000E-03    9.2828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1945        3.3395        .13702E-03   -1.5350    
  14  norm          .10000E-03    17.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5651        22.708        .14583E-03   -1.5158    
  16  norm          .10000E-03    14.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.855        54.778        .75923E-04   -1.4652    
  18  Prefactor     .10000E-03    13.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .59991E-01    9.4358        .69760E-01   -1.5659    
  20  Prefactor     11.014        10.603        .12070E-03   -1.5044    
  21  Prefactor     .10000E-03    7.5012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1144        1.4102        .10012E-03   -1.5497    
  23  Prefactor     2.7765        12.194        .24430E-03   -1.5375    
  24  Prefactor     .10003E-03    448.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89987        .24293        .27167E-03   -.96465    
  26  Prefactor     1.4209        .27578        .26242E-03   -.79779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85293e-09
Minuit parameter uncertainties:
  1  6.08868e-05
  2  103.569
  3  1.95341
  4  5.49307
  5  4.48025e-05
  6  19.8825
  7  6.61176e-05
  8  3.53166
  9  1.62582e-05
  10  3.28803
  11  1.15318e-05
  12  6.1718e-05
  13  3.33974
  14  1.13621e-05
  15  22.7338
  16  0.000105518
  17  54.8775
  18  3.90496e-05
  19  1.50373
  20  10.6045
  21  7.72026e-06
  22  1.41028
  23  11.6411
  24  0.00769815
  25  0.243229
  26  0.276064
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.153e-05  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:  1.421e+00  2.761e-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:  8.999e-01  2.432e-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: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/343075/likelihoodResults_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.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) = 5806.38326715
delta logL = -0.000513132988999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.38275422
delta logL = -2.0512197807e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4662       1.0000          .0000       10.000    
     3 'Normalizat'    .89981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4210       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=   5806.383     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    127.13        .18142E-02** at limit **
   2  Index         2.4360        5.9998        .50000        .46591E-05
   3  Normalizat    .89987        .17376E-01    .27167E-03    .98340E-05
   4  Prefactor     1.4209        .20592E-01    .26242E-03    .70183E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100247
  Index      = 2.43596
  Normalizat = 0.899875
  Prefactor  = 1.42092
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.383     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    576.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4360        5.6322        .50000       -.53845    
   3  Normalizat    .89987        .39650E-01    .10867E-04   -.96465    
   4  Prefactor     1.4209        .46977E-01    .10497E-04   -.79779    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.33022e-09
Minuit parameter uncertainties:
  1  0.0241081
  2  1221.11
  3  0.0396509
  4  0.0469788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343075': 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) = 5806.38275399
delta logL = 2.97195583698e-08

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.002e-04  2.411e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.436e+00  1.221e+03  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:  1.421e+00  4.698e-02  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:  8.999e-01  3.965e-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/343075/cmap_HighResolution_498787201_499046401_4FGL_J1419.5+3821_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-09-09 09:45:52.391665', job_id='343075', GAL2='1.42', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631205952.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='2.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1001' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 343075: <4FGL_J1419.5+3821_daily_bin1001> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1001 214.894 38.3657 498787201 499046401 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

