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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1289
RA = 214.894, Dec = 38.3657
tmin = 573436801, tmax = 573696001
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='344628', job_status='RUN', time_executed='2021-09-09 09:38:07.261342', time_epoch_executed='1631205487.26' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344628/ft1_4FGL_J1419.5+3821_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344628/ft2_4FGL_J1419.5+3821_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344628/ft1_4FGL_J1419.5+3821_daily_bin1289.fits outfile=/scratch/kocevski/344628/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1289.fits ra=214.894 dec=38.3657 rad=12.0 tmin=573436801.0 tmax=573696001.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.45
user 5.20
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344628/ft1_filtered_4FGL_J1419.5+3821_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/344628/ft2_4FGL_J1419.5+3821_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/344628/ltcube_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.fits outfile=/scratch/kocevski/344628/expmap_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.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/344628/ltcube_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.fits
.....................!
real 190.63
user 184.79
sys 5.39

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/344628/ft1_filtered_4FGL_J1419.5+3821_daily_bin1289.fits scfile=/scratch/kocevski/344628/ft2_4FGL_J1419.5+3821_daily_bin1289.fits outfile=/scratch/kocevski/344628/cmap_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344628/ft1_filtered_4FGL_J1419.5+3821_daily_bin1289.fits scfile=/scratch/kocevski/344628/ft2_4FGL_J1419.5+3821_daily_bin1289.fits outfile=/scratch/kocevski/344628/cmap_HighResolution_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6290       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    91.138       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.743       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8539       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.660       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5892       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.900       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.286       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1470       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1613       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83478       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=   6424.512     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3051 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.421        60.706       -.61551E-06   -.13874E-04
   2  Prefactor     .10001E-03    52.934       -.12419E-04** at limit **
   3  norm          17.349        2.8366        .13909E-07    .45792E-04
   4  Prefactor     4.6285        4.1095        .10739E-05   -.27640E-02
   5  norm          .10000E-03    10.650       -.30969E-06** at limit **
   6  Prefactor     .10000E-03    6.7143       -.59501E-06** at limit **
   7  Prefactor     91.126        67.643       -.54768E-05   -.19520E-03
   8  Prefactor     .10000E-03    1.9442       -.39562E-07** at limit **
   9  Prefactor     45.742        26.012       -.43499E-07   -.95287E-04
  10  norm          3.8539        3.9779       -.51626E-06   -.31658E-03
  11  Prefactor     .10000E-03    5.3831       -.11341E-05** at limit **
  12  Prefactor     .10000E-03    5.9206        .16228E-05** at limit **
  13  Prefactor     11.659        5.2206       -.56926E-07   -.68734E-04
  14  norm          2.5893        11.287        .20335E-06   -.55385E-04
  15  Prefactor     .10002E-03    40.277        .15633E-04** at limit **
  16  norm          10.900        8.7763       -.24967E-06   -.85621E-04
  17  Prefactor     .10000E-03    14.702        .14044E-05** at limit **
  18  Prefactor     24.283        32.957       -.20154E-05   -.65712E-04
  19  norm          .10000E-03    3.9198       -.18119E-06** at limit **
  20  Prefactor     3.3221        13.567        .37847E-05   -.67250E-03
  21  Prefactor     .10000E-03    4.3725        .21805E-06** at limit **
  22  norm          1.1464        1.4700       -.87036E-07   -.35884E-03
  23  Prefactor     .10000E-03    3.1207       -.87560E-08** at limit **
  24  Prefactor     .10000E-03    25.866       -.50334E-05** at limit **
  25  Normalizat    1.1613        .18529        .47131E-06   -.12004E-03
  26  Prefactor     .83477        .19767       -.37116E-06   -.24909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.4209
  Prefactor  = 0.000100012
  norm       = 17.3488
  Prefactor  = 4.62849
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.1262
  Prefactor  = 0.0001
  Prefactor  = 45.7416
  norm       = 3.85392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6595
  norm       = 2.58933
  Prefactor  = 0.000100015
  norm       = 10.9003
  Prefactor  = 0.0001
  Prefactor  = 24.2834
  norm       = 0.0001
  Prefactor  = 3.32215
  Prefactor  = 0.0001
  norm       = 1.14637
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.1613
  Prefactor  = 0.834771
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.512     FROM HESSE     STATUS=OK           452 CALLS     3503 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.421        60.747        .22967E-03   -1.3957    
   2  Prefactor     .10001E-03    53.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.349        2.8461        .52201E-04   -1.4875    
   4  Prefactor     4.6285        5.0024        .88793E-03   -1.5278    
   5  norm          .10000E-03    10.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.126        68.256        .42093E-04   -1.3796    
   8  Prefactor     .10000E-03    1.9504        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.742        26.212        .59281E-04   -1.4354    
  10  norm          3.8539        3.9736        .15512E-03   -1.5315    
  11  Prefactor     .10000E-03    5.3979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.659        5.2389        .11581E-03   -1.5025    
  14  norm          2.5893        11.239        .25359E-03   -1.5386    
  15  Prefactor     .10002E-03    41.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.900        8.7961        .12135E-03   -1.5048    
  17  Prefactor     .10000E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.283        32.964        .81283E-04   -1.4722    
  19  norm          .10000E-03    3.9236        .15496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3221        18.162        .11091E-02   -1.5343    
  21  Prefactor     .10000E-03    4.4165        .16340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1464        1.4361        .10375E-03   -1.5494    
  23  Prefactor     .10000E-03    3.1255        .13828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1613        .22625        .24206E-03   -.87807    
  26  Prefactor     .83477        .23721        .31360E-03   -.98459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59712e-09
Minuit parameter uncertainties:
  1  60.7965
  2  0.00161502
  3  2.84612
  4  5.0028
  5  2.42393e-05
  6  2.74526e-05
  7  68.3145
  8  9.71194e-06
  9  26.2187
  10  3.97385
  11  4.61596e-05
  12  6.80638e-05
  13  5.23911
  14  10.7922
  15  0.00159859
  16  8.7971
  17  9.0162e-05
  18  32.9887
  19  6.651e-06
  20  15.5425
  21  6.30458e-06
  22  1.43614
  23  1.59229e-06
  24  0.000452427
  25  0.226443
  26  0.237505
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.616e-05  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:  8.348e-01  2.375e-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.161e+00  2.264e-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: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344628/likelihoodResults_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.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) = 6424.51306119
delta logL = -0.00088018751012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6424.51218098
delta logL = 1.93049345398e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4636       1.0000          .0000       10.000    
     3 'Normalizat'    1.1613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83478       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=   6424.512     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    865.04        .18142E-02** at limit **
   2  Index         2.4550        5.5042        .50000        .13953E-04
   3  Normalizat    1.1613        .76302E-01    .24206E-03    .19914E-04
   4  Prefactor     .83477        .85574E-01    .31360E-03    .12869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.45499
  Normalizat = 1.1613
  Prefactor  = 0.83477
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.512     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4550        6.2219        .50000       -.53403    
   3  Normalizat    1.1613        .20795        .96823E-05   -.87807    
   4  Prefactor     .83477        .23318        .12544E-04   -.98459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75024e-10
Minuit parameter uncertainties:
  1  0.000168036
  2  4.7511
  3  0.208098
  4  0.233457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344628': 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) = 6424.51218094
delta logL = 5.63986759516e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.348e-01  2.335e-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.161e+00  2.081e-01  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/344628/cmap_HighResolution_573436801_573696001_4FGL_J1419.5+3821_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-09 09:50:45.443465', job_id='344628', GAL2='0.83', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631206245.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1289' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 344628: <4FGL_J1419.5+3821_daily_bin1289> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1289> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:35:40 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:35:41 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:35:41 2021
Terminated at Thu Sep  9 09:50:46 2021
Results reported at Thu Sep  9 09:50:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1289 214.894 38.3657 573436801 573696001 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 :                                   751.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

