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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin128
RA = 214.894, Dec = 38.3657
tmin = 272505601, tmax = 272764801
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='339963', job_status='RUN', time_executed='2021-09-09 09:20:34.685681', time_epoch_executed='1631204434.69' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339963/ft1_4FGL_J1419.5+3821_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339963/ft2_4FGL_J1419.5+3821_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339963/ft1_4FGL_J1419.5+3821_daily_bin128.fits outfile=/scratch/kocevski/339963/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin128.fits ra=214.894 dec=38.3657 rad=12.0 tmin=272505601.0 tmax=272764801.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 1.74
user 1.55
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339963/ft1_filtered_4FGL_J1419.5+3821_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/339963/ft2_4FGL_J1419.5+3821_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/339963/ltcube_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.fits outfile=/scratch/kocevski/339963/expmap_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.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/339963/ltcube_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.fits
.....................!
real 190.05
user 185.63
sys 4.00

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/339963/ft1_filtered_4FGL_J1419.5+3821_daily_bin128.fits scfile=/scratch/kocevski/339963/ft2_4FGL_J1419.5+3821_daily_bin128.fits outfile=/scratch/kocevski/339963/cmap_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339963/ft1_filtered_4FGL_J1419.5+3821_daily_bin128.fits scfile=/scratch/kocevski/339963/ft2_4FGL_J1419.5+3821_daily_bin128.fits outfile=/scratch/kocevski/339963/cmap_HighResolution_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.417       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24601E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.435       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1415       1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.385       1.0000         .10000E-03   10000.    
    16 'norm      '    10.120       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32999E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .86658       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.5710       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .58121E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82768       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3483       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=   6102.769     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2670 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.349        .39913E-07** at limit **
   2  Prefactor     .10001E-03    91.369       -.10719E-04** at limit **
   3  norm          4.8613        2.1190       -.14156E-06    .17801E-03
   4  Prefactor     .10000E-03    1.1551       -.17743E-07** at limit **
   5  norm          .10000E-03    7.9320       -.11383E-06** at limit **
   6  Prefactor     22.419        18.535       -.61088E-07    .47223E-04
   7  Prefactor     .10000E-03    64.988        .48854E-05** at limit **
   8  Prefactor     .10000E-03    3.0448       -.19630E-06** at limit **
   9  Prefactor     12.434        18.317        .14132E-06    .26213E-04
  10  norm          .10000E-03    1.4386        .29540E-06** at limit **
  11  Prefactor     11.722        11.054        .41670E-07    .10714E-03
  12  Prefactor     .10000E-03    9.0672        .14205E-06** at limit **
  13  Prefactor     1.1422        3.7810       -.38602E-05    .24326E-03
  14  norm          .10000E-03    5.4350        .45289E-07** at limit **
  15  Prefactor     32.390        25.508       -.10174E-06    .34408E-04
  16  norm          10.122        6.5647       -.92090E-07    .15079E-03
  17  Prefactor     .10000E-03    30.675       -.47981E-06** at limit **
  18  Prefactor     .10000E-03    215.75       -.54283E-04** at limit **
  19  norm          .10000E-03    2.7959       -.85494E-08** at limit **
  20  Prefactor     13.582        12.671       -.20764E-06    .37496E-04
  21  Prefactor     .10000E-03    1.4172       -.85041E-08** at limit **
  22  norm          .86622        .85269       -.44466E-07   -.12376E-04
  23  Prefactor     9.5728        11.353       -.26499E-06    .20773E-04
  24  Prefactor     .10000E-03    252.48       -.12529E-05** at limit **
  25  Normalizat    .82744        .18018        .93521E-06    .54346E-03
  26  Prefactor     1.3484        .20904        .40899E-07    .31375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 4.86135
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4189
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.4335
  norm       = 0.0001
  Prefactor  = 11.7216
  Prefactor  = 0.0001
  Prefactor  = 1.14217
  norm       = 0.0001
  Prefactor  = 32.3903
  norm       = 10.1224
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 13.5821
  Prefactor  = 0.0001
  norm       = 0.866223
  Prefactor  = 9.5728
  Prefactor  = 0.0001
  Normalizat = 0.827442
  Prefactor  = 1.34842
 **********
 **   18 **HESSE 
 **********

 FCN=   6102.769     FROM HESSE     STATUS=OK           456 CALLS     3126 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    93.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8613        2.1190        .70987E-04   -1.5267    
   4  Prefactor     .10000E-03    1.1610        .81983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.9748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.419        18.528        .84600E-04   -1.4761    
   7  Prefactor     .10000E-03    65.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3538        .26353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.434        18.219        .11360E-03   -1.5003    
  10  norm          .10000E-03    1.4502        .91583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.722        11.046        .11702E-03   -1.5023    
  12  Prefactor     .10000E-03    9.0910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1422        3.7994        .25775E-03   -1.5494    
  14  norm          .10000E-03    5.4383        .17786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.390        25.527        .70411E-04   -1.4569    
  16  norm          10.122        6.5617        .12596E-03   -1.5072    
  17  Prefactor     .10000E-03    30.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    206.45        .68639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7977        .12757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.582        12.655        .10868E-03   -1.4971    
  21  Prefactor     .10000E-03    1.4181        .90817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .86622        .83075        .69496E-04   -1.5522    
  23  Prefactor     9.5728        11.349        .12953E-03   -1.5089    
  24  Prefactor     .10000E-03    257.17        .21081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82744        .21530        .26041E-03   -.99059    
  26  Prefactor     1.3484        .25130        .25363E-03   -.81878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.23999e-10
Minuit parameter uncertainties:
  1  7.72115e-06
  2  0.00230126
  3  2.11906
  4  4.30064e-07
  5  5.94622e-06
  6  18.5323
  7  0.000850247
  8  2.15029e-05
  9  18.2274
  10  2.12847e-05
  11  11.0479
  12  6.93476e-06
  13  3.80019
  14  3.22529e-06
  15  25.5354
  16  6.56221
  17  6.96134e-05
  18  0.0011644
  19  2.96965e-07
  20  12.6575
  21  2.40119e-08
  22  0.830756
  23  11.3513
  24  0.000619981
  25  0.215522
  26  0.251522
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.172e+01  1.105e+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:  1.348e+00  2.515e-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.274e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 8.76e-06 +/- 8.26e-06

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

Saving results to:
/scratch/kocevski/339963/likelihoodResults_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.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) = 6102.49591564
delta logL = 0.273549220517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6102.49500576
delta logL = 0.274459098265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.599       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9432       1.0000          .0000       10.000    
     3 'Normalizat'    .84315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3361       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=   6102.495     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      266 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.599        567.75        .24576E-02   -.10351E-03
   2  Index         1.9432        5.6152        .26127       -.10335E-03
   3  Normalizat    .84308        .88326E-01    .44171E-01    .16968E-04
   4  Prefactor     1.3362        .81263E-01    .57576E-01    .23738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5992
  Index      = 1.94316
  Normalizat = 0.843078
  Prefactor  = 1.33616
 **********
 **   18 **HESSE 
 **********

 FCN=   6102.495     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.599        16.149        .98305E-04   -1.4893    
   2  Index         1.9432        .68454        .90321E-02   -.65779    
   3  Normalizat    .84308        .20683        .25825E-03   -.98490    
   4  Prefactor     1.3362        .25015        .25460E-03   -.82238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02394e-10
Minuit parameter uncertainties:
  1  16.1531
  2  0.688002
  3  0.207023
  4  0.250371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339963': 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): 0
logL (Free Index) = 6102.4950057
delta logL = 0.274459152778

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.660e+01  1.615e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.943e+00  6.880e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.336e+00  2.504e-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.431e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.13
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.94 +/- 0.69
Photon Flux (Free Index): 1.82e-08 +/- 2.38e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.97e-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/339963/cmap_HighResolution_272505601_272764801_4FGL_J1419.5+3821_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.46e-05', photon_flux_error='2.75e-08', dlogl='2.74e-01', energy_flux='8.76e-06', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-09 09:31:47.378038', photon_index_error2='0.69', photon_index2='1.94', ts='2.58', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='9.64e-08', energy_flux_error2='1.97e-05', EG='0.83', time_epoch_completed='1631205107.38', return_code='0', job_id='339963', GAL2='1.34', EG2='0.84', return_code2='0', energy_flux_error='8.26e-06', photon_flux_error2='2.38e-08', ts2='3.13', photon_index='2.47' WHERE bin_id='128' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 339963: <4FGL_J1419.5+3821_daily_bin128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin128 214.894 38.3657 272505601 272764801 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 :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

