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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1599
RA = 214.894, Dec = 38.3657
tmin = 653788801, tmax = 654048001
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='953837', job_status='RUN', time_executed='2021-09-23 00:29:58.947062', time_epoch_executed='1632382198.95' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953837

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953837/ft1_4FGL_J1419.5+3821_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953837/ft2_4FGL_J1419.5+3821_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953837/ft1_4FGL_J1419.5+3821_daily_bin1599.fits outfile=/scratch/kocevski/953837/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1599.fits ra=214.894 dec=38.3657 rad=12.0 tmin=653788801.0 tmax=654048001.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.93
user 3.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953837/ft2_4FGL_J1419.5+3821_daily_bin1599.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/953837/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/953837/ft1_filtered_4FGL_J1419.5+3821_daily_bin1599.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.51
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953837/ft1_filtered_4FGL_J1419.5+3821_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/953837/ft2_4FGL_J1419.5+3821_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/953837/ltcube_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.fits outfile=/scratch/kocevski/953837/expmap_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.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/953837/ltcube_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.fits
.....................!
real 194.39
user 188.66
sys 5.35

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/953837/ft1_filtered_4FGL_J1419.5+3821_daily_bin1599.fits scfile=/scratch/kocevski/953837/ft2_4FGL_J1419.5+3821_daily_bin1599.fits outfile=/scratch/kocevski/953837/cmap_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953837/ft1_filtered_4FGL_J1419.5+3821_daily_bin1599.fits scfile=/scratch/kocevski/953837/ft2_4FGL_J1419.5+3821_daily_bin1599.fits outfile=/scratch/kocevski/953837/cmap_HighResolution_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.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.60
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .55225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2341       1.0000         .10000E-03   10000.    
     5 'norm      '    17.865       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13620E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.277       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2411       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.475       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2295       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32521       1.0000         .10000E-03   10000.    
    22 'norm      '    .10671E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .89915E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.497       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0167       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=   6118.929     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3156 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.638        64.417        .68489E-05    .43883E-04
   2  Prefactor     .10000E-03    59.424       -.48802E-07** at limit **
   3  norm          .55206        .84464        .31705E-06    .26230E-04
   4  Prefactor     9.2327        4.8753        .85929E-07   -.25313E-04
   5  norm          17.863        12.831       -.46733E-06   -.61630E-04
   6  Prefactor     8.5711        8.8923        .63001E-07    .43716E-05
   7  Prefactor     .10000E-03    24.320        .11990E-06** at limit **
   8  Prefactor     .10000E-03    2.2680        .68548E-06** at limit **
   9  Prefactor     14.269        18.552       -.52970E-06   -.10043E-03
  10  norm          .10000E-03    1.4874        .32919E-07** at limit **
  11  Prefactor     .10000E-03    4.2125        .42924E-07** at limit **
  12  Prefactor     .10000E-03    4.6063        .46987E-07** at limit **
  13  Prefactor     9.2398        4.5407       -.23144E-07   -.30992E-04
  14  norm          .10000E-03    7.0674        .81224E-08** at limit **
  15  Prefactor     .10000E-03    13.122        .30329E-07** at limit **
  16  norm          2.1950        7.1325        .94566E-05   -.34886E-04
  17  Prefactor     48.418        41.179       -.83595E-06    .18791E-04
  18  Prefactor     36.460        33.176       -.13511E-05   -.44918E-04
  19  norm          6.3017        6.8751       -.19817E-06   -.24877E-05
  20  Prefactor     7.2355        18.909       -.22547E-06    .41705E-04
  21  Prefactor     .32224        5.9251        .87772E-06   -.21484E-03
  22  norm          .10000E-03    .76246        .67828E-07** at limit **
  23  Prefactor     .15138E-03    8.6983        .11549E-05** at limit **
  24  Prefactor     43.521        74.150       -.61190E-06   -.14595E-04
  25  Normalizat    1.0571        .17754       -.18162E-05   -.10213E-03
  26  Prefactor     1.0169        .19518        .36947E-06   -.12656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.6381
  Prefactor  = 0.0001
  norm       = 0.552056
  Prefactor  = 9.23269
  norm       = 17.8627
  Prefactor  = 8.57109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2398
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19504
  Prefactor  = 48.4184
  Prefactor  = 36.4599
  norm       = 6.30167
  Prefactor  = 7.23548
  Prefactor  = 0.322242
  norm       = 0.0001
  Prefactor  = 0.000151378
  Prefactor  = 43.5209
  Normalizat = 1.05713
  Prefactor  = 1.01693
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.929     FROM HESSE     STATUS=OK           470 CALLS     3626 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.638        64.437        .60588E-04   -1.4386    
   2  Prefactor     .10000E-03    59.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55206        .84455        .22965E-03   -1.5559    
   4  Prefactor     9.2327        4.8770        .12044E-03   -1.5100    
   5  norm          17.863        12.846        .94759E-04   -1.4862    
   6  Prefactor     8.5711        8.8946        .13692E-03   -1.5122    
   7  Prefactor     .10000E-03    24.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3334        .22803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.269        18.619        .10600E-03   -1.4952    
  10  norm          .10000E-03    1.4963        .93144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2222        .15679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6121        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2398        4.5464        .11142E-03   -1.5100    
  14  norm          .10000E-03    7.0970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1950        7.1740        .13884E-02   -1.5412    
  17  Prefactor     48.418        41.220        .57629E-04   -1.4315    
  18  Prefactor     36.460        33.179        .66359E-04   -1.4500    
  19  norm          6.3017        6.8701        .15990E-03   -1.5206    
  20  Prefactor     7.2355        18.758        .14918E-03   -1.5170    
  21  Prefactor     .32224        22.427        .34624E-02   -1.5594    
  22  norm          .10000E-03    1.2346        .12858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .15138E-03    12.043        .73085E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     43.521        73.579        .60786E-04   -1.4388    
  25  Normalizat    1.0571        .21007        .23092E-03   -.91140    
  26  Prefactor     1.0169        .23043        .27470E-03   -.92167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2653e-10
Minuit parameter uncertainties:
  1  64.54
  2  0.00010192
  3  0.844567
  4  4.87723
  5  12.848
  6  8.89597
  7  4.86718e-05
  8  4.24223e-05
  9  18.627
  10  1.79955e-06
  11  3.2634e-06
  12  3.71795e-06
  13  4.54659
  14  2.79864e-06
  15  2.78811e-06
  16  7.17681
  17  41.2444
  18  33.1961
  19  6.871
  20  18.7728
  21  5.37787
  22  6.58062e-06
  23  0.0497587
  24  73.7329
  25  0.210233
  26  0.230657
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.263e-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:  1.017e+00  2.307e-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.057e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953837/likelihoodResults_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.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) = 6118.93034135
delta logL = -0.00112413203624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6118.92921704
delta logL = 1.82018084161e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4513       1.0000          .0000       10.000    
     3 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0169       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=   6118.929     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.763        .15952E-01** at limit **
   2  Index         1.8413        8.9890        .50000        .48165E-06
   3  Normalizat    1.0571        .73098E-02    .23092E-03    .36360E-03
   4  Prefactor     1.0169        .85820E-02    .27470E-03    .30776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84134
  Normalizat = 1.05713
  Prefactor  = 1.01693
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.929     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    193.50        .18260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8413        5.5434        .50000       -.68379    
   3  Normalizat    1.0571        .25005E-01    .46184E-04   -.91140    
   4  Prefactor     1.0169        .29357E-01    .54940E-04   -.92167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.45285e-09
Minuit parameter uncertainties:
  1  0.000111801
  2  860.232
  3  0.025005
  4  0.029357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953837': 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) = 6118.92921411
delta logL = 3.10962059302e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.017e+00  2.936e-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.057e+00  2.501e-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/953837/cmap_HighResolution_653788801_654048001_4FGL_J1419.5+3821_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-23 00:42:39.994862', job_id='953837', GAL2='1.02', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632382959.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1599' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:42:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 953837: <4FGL_J1419.5+3821_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 00:26:59 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:27:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:27:28 2021
Terminated at Thu Sep 23 00:42:40 2021
Results reported at Thu Sep 23 00:42:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1599 214.894 38.3657 653788801 654048001 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 :                                   761.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            941 sec.

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

