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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1585
RA = 214.894, Dec = 38.3657
tmin = 650160001, tmax = 650419201
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='346427', job_status='RUN', time_executed='2021-09-09 09:41:02.136902', time_epoch_executed='1631205662.14' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346427

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346427/ft1_4FGL_J1419.5+3821_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346427/ft2_4FGL_J1419.5+3821_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346427/ft1_4FGL_J1419.5+3821_daily_bin1585.fits outfile=/scratch/kocevski/346427/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1585.fits ra=214.894 dec=38.3657 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.37
user 4.09
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346427/ft1_filtered_4FGL_J1419.5+3821_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/346427/ft2_4FGL_J1419.5+3821_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/346427/ltcube_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.fits outfile=/scratch/kocevski/346427/expmap_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.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/346427/ltcube_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.fits
.....................!
real 191.38
user 186.73
sys 4.09

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/346427/ft1_filtered_4FGL_J1419.5+3821_daily_bin1585.fits scfile=/scratch/kocevski/346427/ft2_4FGL_J1419.5+3821_daily_bin1585.fits outfile=/scratch/kocevski/346427/cmap_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346427/ft1_filtered_4FGL_J1419.5+3821_daily_bin1585.fits scfile=/scratch/kocevski/346427/ft2_4FGL_J1419.5+3821_daily_bin1585.fits outfile=/scratch/kocevski/346427/cmap_HighResolution_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.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/346427/ft1_filtered_4FGL_J1419.5+3821_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/346427/ft2_4FGL_J1419.5+3821_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346427/Model_4FGL_J1419.5+3821_daily_bin1585.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/346427/ft1_filtered_4FGL_J1419.5+3821_daily_bin1585.fits.....................!
real 48.82
user 47.47
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.775       1.0000         .10000E-03   10000.    
     3 'norm      '    .95492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2628       1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.780       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7593       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.235       1.0000         .10000E-03   10000.    
    14 'norm      '    18.506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .67084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    73.837       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39125       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3201       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85628       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=   5945.679     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3568 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.435       -.20603E-04** at limit **
   2  Prefactor     37.761        70.267       -.20062E-04    .16467E-04
   3  norm          .95513        1.0739       -.48212E-07   -.10940E-03
   4  Prefactor     5.2630        5.3241       -.21401E-05   -.24322E-03
   5  norm          .10000E-03    9.7673       -.85320E-07** at limit **
   6  Prefactor     6.8623        12.588        .41854E-07    .28303E-04
   7  Prefactor     .10000E-03    17.005        .75109E-05** at limit **
   8  Prefactor     .10000E-03    1.1590        .12956E-07** at limit **
   9  Prefactor     18.778        20.733       -.16551E-05   -.41178E-05
  10  norm          4.7594        4.8740        .10241E-05   -.84775E-04
  11  Prefactor     9.6189        17.004       -.80680E-06    .25248E-03
  12  Prefactor     .10000E-03    20.574       -.18489E-04** at limit **
  13  Prefactor     17.235        6.8617        .16243E-06    .13075E-03
  14  norm          18.505        17.813        .14625E-05    .19607E-03
  15  Prefactor     .10000E-03    28.520        .20178E-04** at limit **
  16  norm          .66631        4.9612       -.55064E-06   -.18572E-03
  17  Prefactor     .10000E-03    24.840       -.11949E-05** at limit **
  18  Prefactor     73.837        54.553       -.23398E-06    .45691E-04
  19  norm          7.3229        6.9274       -.28552E-06    .15276E-03
  20  Prefactor     .10000E-03    5.7776        .18568E-07** at limit **
  21  Prefactor     .38800        6.8905       -.16866E-05   -.50415E-04
  22  norm          .10000E-03    .56711        .87717E-08** at limit **
  23  Prefactor     .10000E-03    4.6215       -.18163E-07** at limit **
  24  Prefactor     .10000E-03    43.057        .93015E-05** at limit **
  25  Normalizat    1.3202        .20069        .23108E-05    .17063E-03
  26  Prefactor     .85609        .20946       -.41996E-06    .24191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 37.7611
  norm       = 0.955126
  Prefactor  = 5.26301
  norm       = 0.0001
  Prefactor  = 6.86226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7778
  norm       = 4.75937
  Prefactor  = 9.61888
  Prefactor  = 0.0001
  Prefactor  = 17.2349
  norm       = 18.5048
  Prefactor  = 0.0001
  norm       = 0.66631
  Prefactor  = 0.0001
  Prefactor  = 73.8375
  norm       = 7.32291
  Prefactor  = 0.0001
  Prefactor  = 0.387996
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32018
  Prefactor  = 0.856087
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.679     FROM HESSE     STATUS=OK           458 CALLS     4026 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.761        70.772        .65211E-04   -1.4478    
   3  norm          .95513        1.0483        .81655E-04   -1.5513    
   4  Prefactor     5.2630        5.3486        .17120E-03   -1.5249    
   5  norm          .10000E-03    9.8111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8623        12.574        .15316E-03   -1.5184    
   7  Prefactor     .10000E-03    17.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1597        .81067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.778        20.854        .92423E-04   -1.4841    
  10  norm          4.7594        4.8519        .16235E-03   -1.5272    
  11  Prefactor     9.6189        16.951        .12916E-03   -1.5088    
  12  Prefactor     .10000E-03    20.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.235        6.8762        .96475E-04   -1.4877    
  14  norm          18.505        17.818        .93104E-04   -1.4847    
  15  Prefactor     .10000E-03    28.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66631        24.897        .31442E-02   -1.5545    
  17  Prefactor     .10000E-03    24.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     73.837        54.724        .46724E-04   -1.3987    
  19  norm          7.3229        6.9425        .14822E-03   -1.5167    
  20  Prefactor     .10000E-03    5.7854        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .38800        32.183        .38012E-02   -1.5583    
  22  norm          .10000E-03    .57084        .56509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6278        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3202        .24614        .23277E-03   -.82966    
  26  Prefactor     .85609        .25394        .31342E-03   -.97693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03952e-08
Minuit parameter uncertainties:
  1  3.65434e-05
  2  70.9302
  3  1.04828
  4  5.34908
  5  1.27654e-05
  6  12.5784
  7  2.87343e-06
  8  1.42778e-07
  9  20.8618
  10  4.85227
  11  16.9599
  12  8.41828e-06
  13  6.87651
  14  17.823
  15  8.43248e-05
  16  8.149
  17  1.11051e-05
  18  54.7609
  19  6.94327
  20  4.1944e-07
  21  7.07037
  22  1.10893e-06
  23  4.20344e-06
  24  1.10374e-05
  25  0.246363
  26  0.254286
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.561e-01  2.543e-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.320e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346427/likelihoodResults_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.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) = 5945.67916294
delta logL = 0.000149846111526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5945.67895588
delta logL = 0.000356907028618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9594       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4213       1.0000          .0000       10.000    
     3 'Normalizat'    1.3220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85499       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=   5945.679     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      237 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9908        525.26        .31743E-02    .37304E-04
   2  Index         2.4122        5.8882        .23822        .24589E-04
   3  Normalizat    1.3223        .62041E-01    .52612E-01    .38238E-03
   4  Prefactor     .85448        .55259E-01    .70893E-01    .30832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99081
  Index      = 2.41217
  Normalizat = 1.32228
  Prefactor  = 0.854482
 **********
 **   18 **HESSE 
 **********

 FCN=   5945.679     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9908        23.053        .12697E-03   -1.5076    
   2  Index         2.4122        2.2996        .12553E-01   -.54400    
   3  Normalizat    1.3223        .24290        .23262E-03   -.82904    
   4  Prefactor     .85448        .25993        .31368E-03   -.97750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07882e-09
Minuit parameter uncertainties:
  1  23.0734
  2  2.42785
  3  0.24311
  4  0.260311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346427': 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) = 5945.67894293
delta logL = 0.000369855235476

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  9.991e+00  2.307e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.412e+00  2.428e+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.545e-01  2.603e-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.322e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
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/346427/cmap_HighResolution_650160001_650419201_4FGL_J1419.5+3821_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-09 09:53:42.285526', job_id='346427', GAL2='0.85', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1631206422.29', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.70e-04', ts2='0.52', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1585' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 346427: <4FGL_J1419.5+3821_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1585 214.894 38.3657 650160001 650419201 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

