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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1048
RA = 214.894, Dec = 38.3657
tmin = 510969601, tmax = 511228801
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='344278', job_status='RUN', time_executed='2021-09-09 09:38:47.028151', time_epoch_executed='1631205527.03' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344278/ft1_4FGL_J1419.5+3821_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344278/ft1_4FGL_J1419.5+3821_daily_bin1048.fits outfile=/scratch/kocevski/344278/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1048.fits ra=214.894 dec=38.3657 rad=12.0 tmin=510969601.0 tmax=511228801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.51
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.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/344278/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/344278/ft1_filtered_4FGL_J1419.5+3821_daily_bin1048.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/344278/ft1_filtered_4FGL_J1419.5+3821_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/344278/ltcube_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.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/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.fits
.....................!
real 12.00
user 11.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344278/ft1_filtered_4FGL_J1419.5+3821_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/344278/ltcube_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.fits outfile=/scratch/kocevski/344278/expmap_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.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/344278/ltcube_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.fits
.....................!
real 192.46
user 186.88
sys 5.19

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/344278/ft1_filtered_4FGL_J1419.5+3821_daily_bin1048.fits scfile=/scratch/kocevski/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.fits outfile=/scratch/kocevski/344278/cmap_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344278/ft1_filtered_4FGL_J1419.5+3821_daily_bin1048.fits scfile=/scratch/kocevski/344278/ft2_4FGL_J1419.5+3821_daily_bin1048.fits outfile=/scratch/kocevski/344278/cmap_HighResolution_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.180       1.0000         .10000E-03   10000.    
     3 'norm      '    8.7314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7888       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2174       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2335       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5577       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3404       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.421       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9629       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4496       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16028E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3615       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1654       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8505       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1046       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68211       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=   5134.829     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3085 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3990        73.327        .24252E-05   -.13473E-04
   2  Prefactor     34.182        65.599        .99374E-06    .57642E-05
   3  norm          8.7315        2.2427       -.13310E-06    .58582E-04
   4  Prefactor     1.7894        3.9669       -.12845E-05   -.71717E-03
   5  norm          5.4343        15.058       -.20594E-05   -.62015E-04
   6  Prefactor     .10000E-03    5.0314       -.12457E-07** at limit **
   7  Prefactor     .10000E-03    23.003        .29274E-06** at limit **
   8  Prefactor     .10000E-03    2.9221       -.53286E-07** at limit **
   9  Prefactor     3.2192        16.112       -.22797E-05   -.10492E-03
  10  norm          4.2337        3.1685       -.90738E-07   -.20001E-04
  11  Prefactor     .10000E-03    5.6662        .64048E-07** at limit **
  12  Prefactor     .10000E-03    37.828       -.12950E-05** at limit **
  13  Prefactor     9.5576        4.6860       -.20729E-06   -.76260E-04
  14  norm          .10000E-03    4.1909        .39890E-07** at limit **
  15  Prefactor     7.3399        21.698        .43700E-05    .32952E-05
  16  norm          5.6170        5.0697        .69120E-06   -.10941E-03
  17  Prefactor     28.392        42.583       -.32122E-04   -.61120E-05
  18  Prefactor     8.9512        29.848       -.13433E-04   -.28379E-04
  19  norm          3.4484        4.7749       -.12845E-06   -.56657E-04
  20  Prefactor     .10001E-03    10.948        .12251E-05** at limit **
  21  Prefactor     3.3552        7.0907       -.84890E-06   -.42727E-03
  22  norm          1.1650        1.5961        .33921E-06   -.30141E-03
  23  Prefactor     .10000E-03    3.7807       -.26106E-07** at limit **
  24  Prefactor     5.8329        136.33       -.55759E-04   -.59801E-05
  25  Normalizat    1.1046        .18373        .14152E-05   -.21116E-04
  26  Prefactor     .68201        .19823        .37786E-05   -.35927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39895
  Prefactor  = 34.1819
  norm       = 8.73148
  Prefactor  = 1.78939
  norm       = 5.43427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.21925
  norm       = 4.23367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.55764
  norm       = 0.0001
  Prefactor  = 7.33988
  norm       = 5.61699
  Prefactor  = 28.3924
  Prefactor  = 8.95125
  norm       = 3.44845
  Prefactor  = 0.000100011
  Prefactor  = 3.3552
  norm       = 1.16505
  Prefactor  = 0.0001
  Prefactor  = 5.83291
  Normalizat = 1.10462
  Prefactor  = 0.682011
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.829     FROM HESSE     STATUS=OK           468 CALLS     3553 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3990        73.275        .19207E-03   -1.5288    
   2  Prefactor     34.182        65.781        .68543E-04   -1.4538    
   3  norm          8.7315        2.2484        .51921E-04   -1.5117    
   4  Prefactor     1.7894        3.9700        .20131E-03   -1.5440    
   5  norm          5.4343        15.072        .17241E-03   -1.5242    
   6  Prefactor     .10000E-03    5.0326        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9607        .11954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2192        16.240        .22585E-03   -1.5349    
  10  norm          4.2337        3.1657        .10695E-03   -1.5296    
  11  Prefactor     .10000E-03    5.6834        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5576        4.6960        .10260E-03   -1.5090    
  14  norm          .10000E-03    4.1928        .14327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3399        21.685        .14804E-03   -1.5166    
  16  norm          5.6170        5.0589        .14712E-03   -1.5234    
  17  Prefactor     28.392        42.446        .75150E-04   -1.4642    
  18  Prefactor     8.9512        29.867        .13388E-03   -1.5110    
  19  norm          3.4484        4.7622        .17954E-03   -1.5337    
  20  Prefactor     .10001E-03    74.045        .44109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3552        6.8796        .22072E-03   -1.5342    
  22  norm          1.1650        1.5254        .91128E-04   -1.5492    
  23  Prefactor     .10000E-03    3.7866        .13607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.8329        136.57        .16603E-03   -1.5225    
  25  Normalizat    1.1046        .21757        .20568E-03   -.89604    
  26  Prefactor     .68201        .23307        .29461E-03   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02349e-09
Minuit parameter uncertainties:
  1  35.9588
  2  65.9212
  3  2.24845
  4  3.97062
  5  15.0821
  6  5.47041e-08
  7  1.52028e-05
  8  8.35787e-06
  9  14.4672
  10  3.16578
  11  8.11373e-06
  12  0.00022002
  13  4.69619
  14  3.78246e-06
  15  21.7083
  16  5.05924
  17  42.4909
  18  29.9168
  19  4.76275
  20  0.00181774
  21  6.88119
  22  1.52542
  23  4.08058e-06
  24  56.5944
  25  0.217746
  26  0.233403
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.820e-01  2.334e-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.105e+00  2.177e-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: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344278/likelihoodResults_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.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) = 5134.82979836
delta logL = -0.000837114428577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5134.82896125
delta logL = -6.45013642497e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4743       1.0000          .0000       10.000    
     3 'Normalizat'    1.1046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68201       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=   5134.829     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    328.19        .90712E-02** at limit **
   2  Index         2.4766        6.0981        .50000       -.38549E-05
   3  Normalizat    1.1046        .33648E-01    .37815E-01    .11784E-05
   4  Prefactor     .68201        .38891E-01    .66584E-01    .19429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47656
  Normalizat = 1.10462
  Prefactor  = 0.682011
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.829     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    511.12        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4766        7.8306        .50000       -.52902    
   3  Normalizat    1.1046        .44256E-01    .20568E-03   -.89604    
   4  Prefactor     .68201        .51102E-01    .29461E-03   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02542e-09
Minuit parameter uncertainties:
  1  5.56342e-05
  2  41.3269
  3  0.0442571
  4  0.0511056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344278': 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) = 5134.82896124
delta logL = 3.53247742169e-09

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.563e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.477e+00  4.133e+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.820e-01  5.111e-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.105e+00  4.426e-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/344278/cmap_HighResolution_510969601_511228801_4FGL_J1419.5+3821_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-09 09:51:49.151866', job_id='344278', GAL2='0.68', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631206309.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.53e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1048' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 344278: <4FGL_J1419.5+3821_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1048 214.894 38.3657 510969601 511228801 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

