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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin263
RA = 214.894, Dec = 38.3657
tmin = 307497601, tmax = 307756801
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='340158', job_status='RUN', time_executed='2021-09-09 09:20:51.782831', time_epoch_executed='1631204451.78' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340158/ft1_4FGL_J1419.5+3821_daily_bin263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340158/ft2_4FGL_J1419.5+3821_daily_bin263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340158/ft1_4FGL_J1419.5+3821_daily_bin263.fits outfile=/scratch/kocevski/340158/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin263.fits ra=214.894 dec=38.3657 rad=12.0 tmin=307497601.0 tmax=307756801.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.38
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340158/ft1_filtered_4FGL_J1419.5+3821_daily_bin263.fits" evtable="EVENTS" scfile=/scratch/kocevski/340158/ft2_4FGL_J1419.5+3821_daily_bin263.fits sctable="SC_DATA" outfile=/scratch/kocevski/340158/ltcube_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.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/340158/ft2_4FGL_J1419.5+3821_daily_bin263.fits
.....................!
real 12.21
user 11.64
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340158/ft1_filtered_4FGL_J1419.5+3821_daily_bin263.fits evtable="EVENTS" scfile=/scratch/kocevski/340158/ft2_4FGL_J1419.5+3821_daily_bin263.fits sctable="SC_DATA" expcube=/scratch/kocevski/340158/ltcube_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.fits outfile=/scratch/kocevski/340158/expmap_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.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/340158/ltcube_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.fits
.....................!
real 192.77
user 184.73
sys 5.83

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/340158/ft1_filtered_4FGL_J1419.5+3821_daily_bin263.fits scfile=/scratch/kocevski/340158/ft2_4FGL_J1419.5+3821_daily_bin263.fits outfile=/scratch/kocevski/340158/cmap_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340158/ft1_filtered_4FGL_J1419.5+3821_daily_bin263.fits scfile=/scratch/kocevski/340158/ft2_4FGL_J1419.5+3821_daily_bin263.fits outfile=/scratch/kocevski/340158/cmap_HighResolution_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3288       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.999       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5816       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8153       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8752       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7378       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.9036       1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7156       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69202       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7639       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96924       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0391       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=   5736.289     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3716 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3289        161.13        .30877E-06   -.23188E-05
   2  Prefactor     21.007        72.451        .98083E-05    .27697E-04
   3  norm          2.2015        1.4192        .40351E-07   -.96590E-04
   4  Prefactor     6.5806        4.5769       -.22240E-06   -.11720E-03
   5  norm          3.0523        12.542       -.36008E-05   -.97066E-04
   6  Prefactor     .10000E-03    5.5553       -.62070E-08** at limit **
   7  Prefactor     5.6787        102.13       -.15010E-04   -.32341E-04
   8  Prefactor     4.2737        4.4136        .73879E-06   -.23018E-02
   9  Prefactor     3.8103        16.641        .30266E-05    .16452E-04
  10  norm          .10000E-03    .99615       -.23411E-07** at limit **
  11  Prefactor     .10000E-03    4.0717        .34758E-07** at limit **
  12  Prefactor     .10000E-03    8.3525       -.54921E-07** at limit **
  13  Prefactor     3.8741        3.4301        .36863E-06   -.31400E-02
  14  norm          6.7378        11.187        .14201E-05    .44860E-04
  15  Prefactor     .10000E-03    13.186       -.11646E-06** at limit **
  16  norm          9.9027        6.7722       -.85813E-06   -.10132E-03
  17  Prefactor     72.054        47.391        .69448E-05    .16225E-03
  18  Prefactor     .10000E-03    189.14       -.43633E-06** at limit **
  19  norm          .10000E-03    2.5401       -.56116E-08** at limit **
  20  Prefactor     4.7172        10.530        .45949E-05    .12676E-03
  21  Prefactor     .69218        5.6933       -.17134E-06   -.38660E-03
  22  norm          .10000E-03    .63194       -.48370E-07** at limit **
  23  Prefactor     5.7626        7.7504        .53322E-06    .16627E-04
  24  Prefactor     .10000E-03    47.500        .28506E-06** at limit **
  25  Normalizat    .96957        .17863       -.80650E-06    .57767E-04
  26  Prefactor     1.0388        .19475       -.31562E-06    .14395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32893
  Prefactor  = 21.0071
  norm       = 2.20155
  Prefactor  = 6.58059
  norm       = 3.05225
  Prefactor  = 0.0001
  Prefactor  = 5.67869
  Prefactor  = 4.27373
  Prefactor  = 3.81026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.87405
  norm       = 6.73782
  Prefactor  = 0.0001
  norm       = 9.90272
  Prefactor  = 72.0538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.71721
  Prefactor  = 0.692177
  norm       = 0.0001
  Prefactor  = 5.76258
  Prefactor  = 0.0001
  Normalizat = 0.969565
  Prefactor  = 1.03879
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.289     FROM HESSE     STATUS=OK           464 CALLS     4180 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3289        161.63        .19361E-03   -1.5292    
   2  Prefactor     21.007        73.301        .87405E-04   -1.4791    
   3  norm          2.2015        1.4151        .69332E-04   -1.5411    
   4  Prefactor     6.5806        4.5887        .12961E-03   -1.5195    
   5  norm          3.0523        12.672        .23213E-03   -1.5359    
   6  Prefactor     .10000E-03    5.5588        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6787        102.45        .16843E-03   -1.5231    
   8  Prefactor     4.2737        5.1730        .87009E-03   -1.5294    
   9  Prefactor     3.8103        16.717        .20664E-03   -1.5318    
  10  norm          .10000E-03    .99882        .73814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0790        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8741        4.7753        .84547E-03   -1.5314    
  14  norm          6.7378        11.183        .15458E-03   -1.5189    
  15  Prefactor     .10000E-03    13.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.9027        6.7857        .12733E-03   -1.5078    
  17  Prefactor     72.054        47.402        .23650E-03   -1.4008    
  18  Prefactor     .10000E-03    195.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5407        .11788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7172        10.510        .18530E-03   -1.5274    
  21  Prefactor     .69218        5.7084        .34964E-03   -1.5542    
  22  norm          .10000E-03    1.1276        .11545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.7626        7.7491        .16730E-03   -1.5228    
  24  Prefactor     .10000E-03    47.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96957        .22173        .22852E-03   -.94057    
  26  Prefactor     1.0388        .23858        .26027E-03   -.91448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80036e-09
Minuit parameter uncertainties:
  1  53.0583
  2  73.6175
  3  1.41511
  4  4.58894
  5  12.4427
  6  1.94771e-06
  7  48.3353
  8  5.17351
  9  15.9692
  10  3.13803e-08
  11  2.3359e-06
  12  1.22971e-05
  13  4.77576
  14  11.1869
  15  3.23128e-05
  16  6.78627
  17  47.4272
  18  5.97599e-05
  19  4.31617e-06
  20  10.5145
  21  3.97577
  22  6.31291e-06
  23  7.75049
  24  1.09334e-05
  25  0.221939
  26  0.238821
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.336e-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.039e+00  2.388e-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:  9.696e-01  2.219e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340158/likelihoodResults_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.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) = 5736.28966962
delta logL = -0.00116474108836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5736.28850477
delta logL = 1.14756403491e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4507       1.0000          .0000       10.000    
     3 'Normalizat'    .96956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0388       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=   5736.289     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10463E-03    3.8299        .15209E-01** at limit **
   2  Index         2.3119        6.1059        .50000        .35329E-04
   3  Normalizat    .96957        .36941E-02    .22852E-03    .36217E-04
   4  Prefactor     1.0388        .43593E-02    .26027E-03    .20529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104633
  Index      = 2.31187
  Normalizat = 0.969565
  Prefactor  = 1.03879
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.289     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10463E-03    81.312        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3119        5.0958        .50000       -.56762    
   3  Normalizat    .96957        .17311E-01    .91410E-05   -.94057    
   4  Prefactor     1.0388        .20427E-01    .10411E-04   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.83886e-08
Minuit parameter uncertainties:
  1  0.0388715
  2  503.493
  3  0.0173109
  4  0.0204275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340158': 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) = 5736.28850387
delta logL = 1.01633759186e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.046e-04  3.887e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.312e+00  5.035e+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.039e+00  2.043e-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:  9.696e-01  1.731e-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/340158/cmap_HighResolution_307497601_307756801_4FGL_J1419.5+3821_daily_bin263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-09 09:33:19.285621', job_id='340158', GAL2='1.04', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631205199.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='263' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:33:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 340158: <4FGL_J1419.5+3821_daily_bin263> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin263 214.894 38.3657 307497601 307756801 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 :                                   736.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            768 sec.

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

