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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin2
RA = 214.894, Dec = 38.3657
tmin = 239846401, tmax = 240105601
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='338726', job_status='RUN', time_executed='2021-09-09 09:18:21.243879', time_epoch_executed='1631204301.24' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338726/ft1_4FGL_J1419.5+3821_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338726/ft2_4FGL_J1419.5+3821_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338726/ft1_4FGL_J1419.5+3821_daily_bin2.fits outfile=/scratch/kocevski/338726/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin2.fits ra=214.894 dec=38.3657 rad=12.0 tmin=239846401.0 tmax=240105601.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.44
user 1.29
sys 0.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338726/ft2_4FGL_J1419.5+3821_daily_bin2.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/338726/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/338726/ft1_filtered_4FGL_J1419.5+3821_daily_bin2.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.35
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338726/ft1_filtered_4FGL_J1419.5+3821_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/338726/ft2_4FGL_J1419.5+3821_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/338726/ltcube_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.fits outfile=/scratch/kocevski/338726/expmap_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.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/338726/ltcube_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.fits
.....................!
real 190.65
user 186.35
sys 3.95

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/338726/ft1_filtered_4FGL_J1419.5+3821_daily_bin2.fits scfile=/scratch/kocevski/338726/ft2_4FGL_J1419.5+3821_daily_bin2.fits outfile=/scratch/kocevski/338726/cmap_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338726/ft1_filtered_4FGL_J1419.5+3821_daily_bin2.fits scfile=/scratch/kocevski/338726/ft2_4FGL_J1419.5+3821_daily_bin2.fits outfile=/scratch/kocevski/338726/cmap_HighResolution_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11518E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.692       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.961       1.0000         .10000E-03   10000.    
     5 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.165       1.0000         .10000E-03   10000.    
    10 'norm      '    9.7985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2488       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.299       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.368       1.0000         .10000E-03   10000.    
    22 'norm      '    .86833       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.663       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2594       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54753       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=   4735.327     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3114 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    152.97        .55563E-06** at limit **
   2  Prefactor     66.721        107.61        .20135E-05    .24665E-04
   3  norm          3.1823        1.9694        .56311E-07   -.57761E-04
   4  Prefactor     18.962        5.7739        .45393E-07   -.30806E-04
   5  norm          .10000E-03    13.860        .16037E-06** at limit **
   6  Prefactor     .10000E-03    5.4488        .56325E-07** at limit **
   7  Prefactor     .10000E-03    47.279       -.43442E-06** at limit **
   8  Prefactor     3.7603        5.0184        .32094E-05   -.25176E-04
   9  Prefactor     11.174        17.734       -.69080E-06   -.39153E-04
  10  norm          9.8002        4.8573        .58392E-07   -.21119E-04
  11  Prefactor     .10000E-03    3.1986        .68095E-08** at limit **
  12  Prefactor     .10000E-03    3.7636        .84725E-08** at limit **
  13  Prefactor     .10000E-03    1.3646        .14677E-07** at limit **
  14  norm          .10000E-03    4.9809       -.57061E-08** at limit **
  15  Prefactor     4.2388        22.606        .86933E-06    .10969E-04
  16  norm          .10000E-03    4.6043        .28167E-07** at limit **
  17  Prefactor     .10000E-03    28.927        .46667E-08** at limit **
  18  Prefactor     49.318        42.301        .65008E-06    .49581E-04
  19  norm          .10000E-03    3.1426        .38950E-07** at limit **
  20  Prefactor     .10000E-03    4.8825        .13174E-06** at limit **
  21  Prefactor     11.356        9.8103        .63746E-06    .15777E-03
  22  norm          .87322        2.0220       -.30019E-06   -.10045E-03
  23  Prefactor     .10000E-03    5.3235       -.11898E-06** at limit **
  24  Prefactor     48.587        71.366       -.39800E-06   -.15501E-03
  25  Normalizat    1.2588        .20758       -.19037E-05    .82469E-04
  26  Prefactor     .54798        .21671        .22110E-05   -.36198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 66.7205
  norm       = 3.18231
  Prefactor  = 18.9616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76034
  Prefactor  = 11.1735
  norm       = 9.80021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.23885
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.3178
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3558
  norm       = 0.873224
  Prefactor  = 0.0001
  Prefactor  = 48.5865
  Normalizat = 1.25881
  Prefactor  = 0.547981
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.327     FROM HESSE     STATUS=OK           450 CALLS     3564 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    153.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.721        109.26        .49146E-04   -1.4072    
   3  norm          3.1823        1.9663        .72384E-04   -1.5351    
   4  Prefactor     18.962        5.7784        .88089E-04   -1.4837    
   5  norm          .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4500        .15688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7603        5.0338        .86146E-03   -1.5320    
   9  Prefactor     11.174        17.780        .11990E-03   -1.5039    
  10  norm          9.8002        4.8586        .10296E-03   -1.5082    
  11  Prefactor     .10000E-03    3.2001        .12019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7651        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3761        .78475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9844        .14999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2388        22.610        .19548E-03   -1.5296    
  16  norm          .10000E-03    4.7119        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.318        42.406        .57113E-04   -1.4302    
  19  norm          .10000E-03    3.1436        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8880        .14849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.356        9.5417        .11882E-03   -1.5034    
  22  norm          .87322        1.9120        .12391E-03   -1.5521    
  23  Prefactor     .10000E-03    5.3348        .15506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.587        70.512        .28742E-03   -1.4313    
  25  Normalizat    1.2588        .23647        .20470E-03   -.84804    
  26  Prefactor     .54798        .24352        .33398E-03   -1.0982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58345e-10
Minuit parameter uncertainties:
  1  0.000205381
  2  109.596
  3  1.96633
  4  5.77854
  5  3.55954e-06
  6  1.25917e-05
  7  0.00011528
  8  5.03435
  9  17.7881
  10  4.85883
  11  8.35174e-07
  12  1.02312e-06
  13  1.05348e-06
  14  5.40132e-07
  15  19.5911
  16  2.88604e-06
  17  1.35653e-05
  18  42.432
  19  2.86617e-07
  20  9.71835e-06
  21  9.54297
  22  1.9121
  23  1.32905e-05
  24  70.633
  25  0.236677
  26  0.243982
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.352e-07  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:  5.480e-01  2.440e-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.259e+00  2.367e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338726/likelihoodResults_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.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) = 4735.32857935
delta logL = -0.00141652421917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4735.32716244
delta logL = 3.87885847886e-07

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 'Index     '    2.4461       1.0000          .0000       10.000    
     3 'Normalizat'    1.2589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54789       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=   4735.327     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      252 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.665        .12388E-01** at limit **
   2  Index         1.6759        5.6933        .50000       -.48754E-06
   3  Normalizat    1.2588        .88205E-02    .20470E-03    .20983E-02
   4  Prefactor     .54799        .98889E-02    .33398E-03    .13192E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.67592
  Normalizat = 1.25881
  Prefactor  = 0.547987
 **********
 **   18 **HESSE 
 **********

 FCN=   4735.327     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    157.86        .15638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6759        5.4770        .50000       -.72725    
   3  Normalizat    1.2588        .25119E-01    .40941E-04   -.84804    
   4  Prefactor     .54799        .28162E-01    .66796E-04   -1.0982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.93062e-09
Minuit parameter uncertainties:
  1  0.000115923
  2  662.285
  3  0.0251196
  4  0.0281622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338726': 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) = 4735.32715644
delta logL = 6.38870915282e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.159e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.676e+00  6.623e+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:  5.480e-01  2.816e-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:  1.259e+00  2.512e-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/338726/cmap_HighResolution_239846401_240105601_4FGL_J1419.5+3821_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-09 09:28:35.484153', job_id='338726', GAL2='0.55', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631204915.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='6.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='2' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 338726: <4FGL_J1419.5+3821_daily_bin2> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin2> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:32 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:34 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:15:34 2021
Terminated at Thu Sep  9 09:28:35 2021
Results reported at Thu Sep  9 09:28:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin2 214.894 38.3657 239846401 240105601 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 :                                   614.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

