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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin621
RA = 214.894, Dec = 38.3657
tmin = 400291201, tmax = 400550401
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='341694', job_status='RUN', time_executed='2021-09-09 09:25:47.077662', time_epoch_executed='1631204747.08' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341694/ft1_4FGL_J1419.5+3821_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341694/ft2_4FGL_J1419.5+3821_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341694/ft1_4FGL_J1419.5+3821_daily_bin621.fits outfile=/scratch/kocevski/341694/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin621.fits ra=214.894 dec=38.3657 rad=12.0 tmin=400291201.0 tmax=400550401.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.32
user 3.10
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341694/ft1_filtered_4FGL_J1419.5+3821_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/341694/ft2_4FGL_J1419.5+3821_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/341694/ltcube_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.fits outfile=/scratch/kocevski/341694/expmap_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.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/341694/ltcube_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.fits
.....................!
real 190.98
user 185.39
sys 5.24

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/341694/ft1_filtered_4FGL_J1419.5+3821_daily_bin621.fits scfile=/scratch/kocevski/341694/ft2_4FGL_J1419.5+3821_daily_bin621.fits outfile=/scratch/kocevski/341694/cmap_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341694/ft1_filtered_4FGL_J1419.5+3821_daily_bin621.fits scfile=/scratch/kocevski/341694/ft2_4FGL_J1419.5+3821_daily_bin621.fits outfile=/scratch/kocevski/341694/cmap_HighResolution_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9594       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0265       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .77988E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.134       1.0000         .10000E-03   10000.    
    10 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2662       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.909       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.013       1.0000         .10000E-03   10000.    
    16 'norm      '    .21221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1444       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69737       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=   5468.079     FROM MIGRAD    STATUS=CONVERGED   1142 CALLS     3699 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.102        .18142E-02** at limit **
   2  Prefactor     8.9694        72.580        .13390E-03    .20037E-04
   3  norm          5.1483        1.6643        .52279E-04    .91333E-04
   4  Prefactor     8.0272        4.8682        .60328E-03    .18291E-03
   5  norm          .10000E-03    18.162        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.5056        .18142E-02** at limit **
   7  Prefactor     .10009E-03    45.520        .15471    ** at limit **
   8  Prefactor     .10000E-03    5.6162        .24251E-02** at limit **
   9  Prefactor     13.126        16.765        .11053E-03   -.33532E-04
  10  norm          .10000E-03    2.6571        .23122E-03** at limit **
  11  Prefactor     8.3173        34.474        .13944E-03   -.46717E-04
  12  Prefactor     9.9774        38.582        .12640E-03    .81939E-04
  13  Prefactor     .10000E-03    6.3059        .19492E-02** at limit **
  14  norm          11.900        13.634        .11608E-03   -.33004E-04
  15  Prefactor     17.021        19.291        .97102E-04   -.34421E-04
  16  norm          .21214        18.156        .23973E-02   -.43153E-03
  17  Prefactor     .10000E-03    16.905        .18142E-02** at limit **
  18  Prefactor     .10000E-03    122.63        .18142E-02** at limit **
  19  norm          .10000E-03    2.3050        .10963E-02** at limit **
  20  Prefactor     .10000E-03    7.5345        .18142E-02** at limit **
  21  Prefactor     .10000E-03    2.0072        .10219E-02** at limit **
  22  norm          2.0931        1.4065        .69290E-04   -.94343E-04
  23  Prefactor     .10000E-03    3.2540        .13020E-02** at limit **
  24  Prefactor     .10000E-03    19.405        .18142E-02** at limit **
  25  Normalizat    1.1444        .20672        .20073E-03   -.17739E-03
  26  Prefactor     .69725        .22226        .28931E-03    .82049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.96938
  norm       = 5.14829
  Prefactor  = 8.02723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 0.000100001
  Prefactor  = 13.1258
  norm       = 0.0001
  Prefactor  = 8.3173
  Prefactor  = 9.97741
  Prefactor  = 0.0001
  norm       = 11.8999
  Prefactor  = 17.0207
  norm       = 0.212144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1444
  Prefactor  = 0.697255
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.079     FROM HESSE     STATUS=OK           442 CALLS     4141 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9694        72.514        .53562E-05   -1.5109    
   3  norm          5.1483        1.6642        .20912E-05   -1.5254    
   4  Prefactor     8.0272        4.8678        .24131E-04   -1.5141    
   5  norm          .10000E-03    18.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10009E-03    45.653        .15429       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6351        .48501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.126        16.763        .44210E-05   -1.4983    
  10  norm          .10000E-03    2.6571        .46245E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3173        34.218        .55776E-05   -1.5131    
  12  Prefactor     9.9774        38.432        .50559E-05   -1.5076    
  13  Prefactor     .10000E-03    6.3312        .38983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.900        13.627        .46434E-05   -1.5018    
  15  Prefactor     17.021        19.288        .38841E-05   -1.4883    
  16  norm          .21214        18.230        .95892E-04   -1.5616    
  17  Prefactor     .10000E-03    16.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    122.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3050        .21926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.0072        .20438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0931        1.4065        .27716E-05   -1.5419    
  23  Prefactor     .10000E-03    3.2540        .26041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1444        .20687        .40147E-04   -.88339    
  26  Prefactor     .69725        .22243        .11572E-04   -1.0363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61575e-09
Minuit parameter uncertainties:
  1  1.14047e-05
  2  51.0907
  3  1.66421
  4  4.86808
  5  0.000164147
  6  1.55313e-05
  7  0.00412404
  8  0.000113795
  9  16.7691
  10  6.57427e-06
  11  33.7734
  12  38.528
  13  2.66873e-05
  14  13.6301
  15  19.2955
  16  3.93347
  17  9.65284e-05
  18  7.82107e-05
  19  1.15244e-07
  20  4.17615e-06
  21  1.17277e-07
  22  1.40648
  23  6.13798e-07
  24  3.66091e-05
  25  0.20702
  26  0.222716
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  8.317e+00  3.377e+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:  6.973e-01  2.227e-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.144e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/341694/likelihoodResults_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.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) = 5466.57852162
delta logL = 1.50024731873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5466.53934742
delta logL = 1.539421522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68867       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4832       1.0000          .0000       10.000    
     3 'Normalizat'    1.0501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76977       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=   5466.539     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      268 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68082        5.9715        .79757E-02    .85693E-03
   2  Index         4.4885        2.3068        .90640E-01    .16184E-03
   3  Normalizat    1.0502        .44599E-01    .40549E-01    .60045E-05
   4  Prefactor     .77003        .51538E-01    .62503E-01    .15674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.680817
  Index      = 4.48854
  Normalizat = 1.05022
  Prefactor  = 0.770026
 **********
 **   18 **HESSE 
 **********

 FCN=   5466.539     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68082        12.336        .35872E-04   -1.5543    
   2  Index         4.4885        3.5800        .35379E-02   -.10247    
   3  Normalizat    1.0502        .17623        .20789E-03   -.91366    
   4  Prefactor     .77003        .19957        .27647E-03   -1.0084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75104e-07
Minuit parameter uncertainties:
  1  5.79712
  2  3.99631
  3  0.17633
  4  0.199761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341694': 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) = 5466.53933507
delta logL = 1.53943386732

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  6.808e-01  5.797e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  4.489e+00  3.996e+00  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.700e-01  1.998e-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.050e+00  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 214.894 38.366
Photon Index (Free Index): 4.49 +/- 4.00
Photon Flux (Free Index): 8.89e-08 +/- 5.50e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.03e-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/341694/cmap_HighResolution_400291201_400550401_4FGL_J1419.5+3821_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.54e+00', photon_flux2='8.89e-08', job_status='DONE', time_completed='2021-09-09 09:37:56.226435', photon_index_error2='4.00', photon_index2='4.49', ts='0.31', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.03e-05', EG='1.14', time_epoch_completed='1631205476.23', return_code='0', job_id='341694', GAL2='0.77', EG2='1.05', return_code2='102', photon_flux_error2='5.50e-08', ts2='3.64', photon_index='2.47' WHERE bin_id='621' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 341694: <4FGL_J1419.5+3821_daily_bin621> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin621 214.894 38.3657 400291201 400550401 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 :                                   720.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

