/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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin409
RA = 214.894, Dec = 38.3657
tmin = 345340801, tmax = 345600001
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='340372', job_status='RUN', time_executed='2021-09-09 09:21:02.615588', time_epoch_executed='1631204462.62' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340372/ft1_4FGL_J1419.5+3821_daily_bin409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340372/ft2_4FGL_J1419.5+3821_daily_bin409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340372/ft1_4FGL_J1419.5+3821_daily_bin409.fits outfile=/scratch/kocevski/340372/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin409.fits ra=214.894 dec=38.3657 rad=12.0 tmin=345340801.0 tmax=345600001.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.44
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340372/ft1_filtered_4FGL_J1419.5+3821_daily_bin409.fits" evtable="EVENTS" scfile=/scratch/kocevski/340372/ft2_4FGL_J1419.5+3821_daily_bin409.fits sctable="SC_DATA" outfile=/scratch/kocevski/340372/ltcube_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.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/340372/ft2_4FGL_J1419.5+3821_daily_bin409.fits
.....................!
real 11.94
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340372/ft1_filtered_4FGL_J1419.5+3821_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/340372/ft2_4FGL_J1419.5+3821_daily_bin409.fits sctable="SC_DATA" expcube=/scratch/kocevski/340372/ltcube_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.fits outfile=/scratch/kocevski/340372/expmap_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.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/340372/ltcube_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.fits
.....................!
real 190.63
user 185.27
sys 4.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/340372/ft1_filtered_4FGL_J1419.5+3821_daily_bin409.fits scfile=/scratch/kocevski/340372/ft2_4FGL_J1419.5+3821_daily_bin409.fits outfile=/scratch/kocevski/340372/cmap_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340372/ft1_filtered_4FGL_J1419.5+3821_daily_bin409.fits scfile=/scratch/kocevski/340372/ft2_4FGL_J1419.5+3821_daily_bin409.fits outfile=/scratch/kocevski/340372/cmap_HighResolution_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3080       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.503       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52748       1.0000         .10000E-03   10000.    
    14 'norm      '    13.865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.924       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.324       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2681       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8475       1.0000         .10000E-03   10000.    
    22 'norm      '    .65968       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .47521       1.0000         .10000E-03   10000.    
    24 'Prefactor '    61.831       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83045       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2564       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=   6270.793     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3067 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.806        .69893E-05** at limit **
   2  Prefactor     .10000E-03    54.203       -.54196E-05** at limit **
   3  norm          18.139        2.7279        .37219E-07    .71131E-04
   4  Prefactor     1.3083        3.8514        .64172E-06    .73029E-04
   5  norm          .10000E-03    6.2946       -.65307E-06** at limit **
   6  Prefactor     .10000E-03    6.4868       -.20778E-06** at limit **
   7  Prefactor     37.498        49.034        .12056E-05    .15776E-04
   8  Prefactor     .10000E-03    3.0951       -.17858E-06** at limit **
   9  Prefactor     .10000E-03    10.813        .29412E-07** at limit **
  10  norm          5.7016        4.2756        .27460E-08   -.80292E-04
  11  Prefactor     .10000E-03    5.9183        .28978E-06** at limit **
  12  Prefactor     .10000E-03    6.6575        .59797E-06** at limit **
  13  Prefactor     .52675        2.1888        .10437E-06   -.92167E-04
  14  norm          13.867        10.766       -.23992E-07   -.44035E-04
  15  Prefactor     .10000E-03    13.458       -.59789E-06** at limit **
  16  norm          13.923        6.6054       -.91200E-07   -.11405E-03
  17  Prefactor     .10000E-03    17.651        .79334E-06** at limit **
  18  Prefactor     18.324        26.703        .35115E-06   -.10807E-04
  19  norm          .10000E-03    3.4141        .35812E-08** at limit **
  20  Prefactor     1.2661        52.303       -.68083E-06   -.95324E-05
  21  Prefactor     3.8486        7.4454        .33743E-05    .34687E-03
  22  norm          .65937        1.5963       -.45090E-07    .20275E-03
  23  Prefactor     .43727        10.588        .34237E-05   -.53172E-03
  24  Prefactor     61.835        61.578       -.11198E-05   -.36412E-04
  25  Normalizat    .83043        .17569       -.89281E-06   -.19781E-03
  26  Prefactor     1.2564        .20005       -.15923E-06   -.21244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 18.1394
  Prefactor  = 1.30831
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.70161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.526755
  norm       = 13.867
  Prefactor  = 0.0001
  norm       = 13.9234
  Prefactor  = 0.0001
  Prefactor  = 18.3236
  norm       = 0.0001
  Prefactor  = 1.26614
  Prefactor  = 3.84859
  norm       = 0.659374
  Prefactor  = 0.437273
  Prefactor  = 61.8352
  Normalizat = 0.830425
  Prefactor  = 1.2564
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.793     FROM HESSE     STATUS=OK           460 CALLS     3527 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.139        2.7292        .48571E-04   -1.4856    
   4  Prefactor     1.3083        3.8408        .25045E-03   -1.5479    
   5  norm          .10000E-03    6.2990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.4910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.498        49.021        .65446E-04   -1.4482    
   8  Prefactor     .10000E-03    3.1487        .13589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7016        4.2613        .13526E-03   -1.5230    
  11  Prefactor     .10000E-03    5.9683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .52675        6.4995        .21569E-02   -1.5563    
  14  norm          13.867        10.763        .10757E-03   -1.4963    
  15  Prefactor     .10000E-03    13.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.923        6.6011        .10734E-03   -1.4962    
  17  Prefactor     .10000E-03    17.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.324        26.691        .93565E-04   -1.4852    
  19  norm          .10000E-03    3.4178        .14286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2661        51.870        .39535E-03   -1.5483    
  21  Prefactor     3.8486        7.5354        .10287E-02   -1.5316    
  22  norm          .65937        1.5353        .13736E-03   -1.5546    
  23  Prefactor     .43727        74.485        .40645E-02   -1.5576    
  24  Prefactor     61.835        61.387        .51029E-04   -1.4134    
  25  Normalizat    .83043        .20628        .25921E-03   -.98950    
  26  Prefactor     1.2564        .23845        .25999E-03   -.84613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23771e-08
Minuit parameter uncertainties:
  1  0.000486197
  2  0.000339428
  3  2.72922
  4  3.84157
  5  1.19584e-05
  6  3.31842e-06
  7  49.074
  8  1.3313e-05
  9  2.87309e-06
  10  4.26155
  11  5.60392e-06
  12  1.49968e-05
  13  3.70075
  14  10.7642
  15  1.76109e-05
  16  6.60149
  17  3.30109e-05
  18  26.708
  19  1.58073e-06
  20  16.2224
  21  7.5373
  22  1.53542
  23  11.4272
  24  61.4498
  25  0.206473
  26  0.238654
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.604e-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:  1.256e+00  2.387e-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.304e-01  2.065e-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: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340372/likelihoodResults_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.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) = 6270.79341436
delta logL = -0.000797286591478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6270.79261708
delta logL = -1.03300408227e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4520       1.0000          .0000       10.000    
     3 'Normalizat'    .83045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2564       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=   6270.793     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10128E-03    53.342        .18142E-02** at limit **
   2  Index         2.3959        7.9437        .50000        .24311E-04
   3  Normalizat    .83042        .12027E-01    .25921E-03   -.19298E-04
   4  Prefactor     1.2564        .14576E-01    .25999E-03    .37911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010128
  Index      = 2.39592
  Normalizat = 0.830425
  Prefactor  = 1.2564
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.793     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 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     .10128E-03    229.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3959        5.2995        .50000       -.54781    
   3  Normalizat    .83042        .25822E-01    .10369E-04   -.98950    
   4  Prefactor     1.2564        .31295E-01    .10400E-04   -.84613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27163e-08
Minuit parameter uncertainties:
  1  0.0344107
  2  490.842
  3  0.0258225
  4  0.0312952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340372': 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) = 6270.79261669
delta logL = 3.79147422791e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.013e-04  3.441e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.396e+00  4.908e+02  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.256e+00  3.130e-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.304e-01  2.582e-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/340372/cmap_HighResolution_345340801_345600001_4FGL_J1419.5+3821_daily_bin409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-09-09 09:33:17.205425', job_id='340372', GAL2='1.26', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631205197.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='409' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:33:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 340372: <4FGL_J1419.5+3821_daily_bin409> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin409> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:47 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:48 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:20:48 2021
Terminated at Thu Sep  9 09:33:17 2021
Results reported at Thu Sep  9 09:33:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin409 214.894 38.3657 345340801 345600001 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 :                                   728.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            750 sec.

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

