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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1483
RA = 214.894, Dec = 38.3657
tmin = 623721601, tmax = 623980801
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='346220', job_status='RUN', time_executed='2021-09-09 09:40:47.766722', time_epoch_executed='1631205647.77' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346220/ft1_4FGL_J1419.5+3821_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346220/ft2_4FGL_J1419.5+3821_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346220/ft1_4FGL_J1419.5+3821_daily_bin1483.fits outfile=/scratch/kocevski/346220/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1483.fits ra=214.894 dec=38.3657 rad=12.0 tmin=623721601.0 tmax=623980801.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 5.25
user 4.96
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346220/ft1_filtered_4FGL_J1419.5+3821_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/346220/ft2_4FGL_J1419.5+3821_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/346220/ltcube_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.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/346220/ft2_4FGL_J1419.5+3821_daily_bin1483.fits
.....................!
real 11.43
user 11.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346220/ft1_filtered_4FGL_J1419.5+3821_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/346220/ft2_4FGL_J1419.5+3821_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/346220/ltcube_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.fits outfile=/scratch/kocevski/346220/expmap_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.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/346220/ltcube_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.fits
.....................!
real 191.13
user 185.63
sys 5.06

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/346220/ft1_filtered_4FGL_J1419.5+3821_daily_bin1483.fits scfile=/scratch/kocevski/346220/ft2_4FGL_J1419.5+3821_daily_bin1483.fits outfile=/scratch/kocevski/346220/cmap_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346220/ft1_filtered_4FGL_J1419.5+3821_daily_bin1483.fits scfile=/scratch/kocevski/346220/ft2_4FGL_J1419.5+3821_daily_bin1483.fits outfile=/scratch/kocevski/346220/cmap_HighResolution_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.461       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8035       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24372E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.875       1.0000         .10000E-03   10000.    
    10 'norm      '    .13848E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.935       1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.911       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.463       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97380E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    88.056       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2252       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66438       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=   6083.177     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3588 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0909        78.547       -.28082E-04    .55851E-05
   2  Prefactor     77.436        76.423       -.17067E-04    .22943E-04
   3  norm          1.8039        1.6139       -.29292E-06   -.63020E-03
   4  Prefactor     .10003E-03    5.1466       -.21303E-05** at limit **
   5  norm          .10000E-03    6.2019        .22118E-05** at limit **
   6  Prefactor     .10000E-03    4.8470       -.15386E-05** at limit **
   7  Prefactor     .10000E-03    23.045        .48346E-05** at limit **
   8  Prefactor     .10000E-03    1.8192       -.11782E-06** at limit **
   9  Prefactor     22.872        18.557        .49520E-05    .14744E-05
  10  norm          .10000E-03    2.4568       -.18630E-05** at limit **
  11  Prefactor     4.1284        5.0381        .54097E-06    .11642E-02
  12  Prefactor     .10000E-03    3.0980       -.29759E-07** at limit **
  13  Prefactor     55.925        8.2613        .14477E-05    .69085E-03
  14  norm          .10000E-03    4.4865        .14948E-06** at limit **
  15  Prefactor     12.913        14.461       -.42384E-05   -.13678E-05
  16  norm          .10000E-03    7.2057        .18026E-06** at limit **
  17  Prefactor     15.462        21.969        .77500E-06    .20129E-05
  18  Prefactor     .11211E-03    28.902        .19824E-05** at limit **
  19  norm          2.2213        6.1226       -.13405E-05   -.45133E-03
  20  Prefactor     6.3618        11.219        .71345E-06   -.10856E-03
  21  Prefactor     .10000E-03    5.0395        .20906E-05** at limit **
  22  norm          4.3680        1.9028        .18824E-05   -.86696E-03
  23  Prefactor     .10000E-03    7.7368       -.84638E-06** at limit **
  24  Prefactor     87.921        78.139       -.86288E-04    .30442E-05
  25  Normalizat    1.2257        .18355        .10704E-05    .48580E-03
  26  Prefactor     .66358        .19361        .36158E-05    .26434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.09089
  Prefactor  = 77.4359
  norm       = 1.80387
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8716
  norm       = 0.000100002
  Prefactor  = 4.12838
  Prefactor  = 0.0001
  Prefactor  = 55.9252
  norm       = 0.0001
  Prefactor  = 12.9128
  norm       = 0.0001
  Prefactor  = 15.4624
  Prefactor  = 0.000112114
  norm       = 2.22126
  Prefactor  = 6.36178
  Prefactor  = 0.0001
  norm       = 4.36797
  Prefactor  = 0.0001
  Prefactor  = 87.921
  Normalizat = 1.22574
  Prefactor  = 0.663585
 **********
 **   18 **HESSE 
 **********

 FCN=   6083.177     FROM HESSE     STATUS=OK           466 CALLS     4054 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0909        78.741        .14039E-03   -1.5139    
   2  Prefactor     77.436        77.467        .45627E-04   -1.3946    
   3  norm          1.8039        1.6030        .88423E-04   -1.5439    
   4  Prefactor     .10003E-03    22.256        .33387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.8498        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8333        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.872        18.627        .83750E-04   -1.4751    
  10  norm          .10000E-03    5.7759        .23662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1284        5.0393        .94337E-03   -1.5302    
  12  Prefactor     .10000E-03    3.0993        .13407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     55.925        8.2688        .53636E-04   -1.4211    
  14  norm          .10000E-03    4.4931        .16134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.913        14.464        .11148E-03   -1.4989    
  16  norm          .10000E-03    7.4359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.462        21.963        .10185E-03   -1.4921    
  18  Prefactor     .11211E-03    31.032        .11658       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2213        6.0884        .27601E-03   -1.5410    
  20  Prefactor     6.3618        11.187        .15908E-03   -1.5203    
  21  Prefactor     .10000E-03    5.0733        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3680        1.8981        .66034E-04   -1.5290    
  23  Prefactor     .10000E-03    7.7874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     87.921        78.088        .21408E-03   -1.3830    
  25  Normalizat    1.2257        .21811        .22273E-03   -.85811    
  26  Prefactor     .66358        .22937        .33006E-03   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36259e-09
Minuit parameter uncertainties:
  1  50.5678
  2  77.5684
  3  1.60301
  4  0.0015023
  5  6.927e-06
  6  2.87201e-06
  7  6.13349e-05
  8  1.5056e-05
  9  18.6321
  10  0.000239047
  11  5.03981
  12  3.86765e-06
  13  8.26893
  14  4.13407e-06
  15  14.4675
  16  6.92478e-05
  17  21.974
  18  0.0387979
  19  6.09009
  20  11.191
  21  4.28398e-05
  22  1.89817
  23  5.2678e-06
  24  78.1794
  25  0.218274
  26  0.229692
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.128e+00  5.040e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.636e-01  2.297e-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.226e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.03e-08 +/- 1.26e-08
Energy Flux (Fixed Index): 3.09e-06 +/- 3.77e-06

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

Saving results to:
/scratch/kocevski/346220/likelihoodResults_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.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) = 6082.75598914
delta logL = 0.420842356049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6082.75597115
delta logL = 0.420860344975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5494       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6717       1.0000          .0000       10.000    
     3 'Normalizat'    1.2315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65870       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=   6082.756     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5406        560.21        .36490E-02   -.41440E-04
   2  Index         1.6707        6.8725        .28104       -.10590E-04
   3  Normalizat    1.2315        .18141        .50272E-01   -.13792E-03
   4  Prefactor     .65869        .17830        .74782E-01   -.33669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.54065
  Index      = 1.67072
  Normalizat = 1.23149
  Prefactor  = 0.658686
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.756     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5406        8.5052        .14596E-03   -1.5159    
   2  Index         1.6707        .74367        .12273E-01   -.72864    
   3  Normalizat    1.2315        .19926        .22226E-03   -.85635    
   4  Prefactor     .65869        .22435        .33106E-03   -1.0517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24503e-11
Minuit parameter uncertainties:
  1  8.50652
  2  0.748691
  3  0.199382
  4  0.224656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346220': 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) = 6082.75596972
delta logL = 0.420861778536

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.541e+00  8.507e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.671e+00  7.487e-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:  6.587e-01  2.247e-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.231e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.67 +/- 0.75
Photon Flux (Free Index): 6.02e-09 +/- 7.88e-09
Energy Flux (Free Index): 1.08e-05 +/- 2.26e-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/346220/cmap_HighResolution_623721601_623980801_4FGL_J1419.5+3821_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', comment='SUCCESS', photon_flux='1.03e-08', energy_flux2='1.08e-05', photon_flux_error='1.26e-08', dlogl='4.21e-01', energy_flux='3.09e-06', photon_flux2='6.02e-09', job_status='DONE', time_completed='2021-09-09 09:54:12.128979', photon_index_error2='0.75', photon_index2='1.67', ts='1.73', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='5.51e-08', energy_flux_error2='2.26e-05', EG='1.23', time_epoch_completed='1631206452.13', return_code='0', job_id='346220', GAL2='0.66', EG2='1.23', return_code2='0', energy_flux_error='3.77e-06', photon_flux_error2='7.88e-09', ts2='2.58', photon_index='2.47' WHERE bin_id='1483' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 346220: <4FGL_J1419.5+3821_daily_bin1483> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1483 214.894 38.3657 623721601 623980801 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 :                                   780.31 sec.
    Max Memory :                                 1164 MB
    Average Memory :                             326.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

