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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1140
RA = 214.894, Dec = 38.3657
tmin = 534816001, tmax = 535075201
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='344415', job_status='RUN', time_executed='2021-09-09 09:38:06.949972', time_epoch_executed='1631205486.95' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344415/ft1_4FGL_J1419.5+3821_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344415/ft2_4FGL_J1419.5+3821_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344415/ft1_4FGL_J1419.5+3821_daily_bin1140.fits outfile=/scratch/kocevski/344415/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1140.fits ra=214.894 dec=38.3657 rad=12.0 tmin=534816001.0 tmax=535075201.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.65
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344415/ft2_4FGL_J1419.5+3821_daily_bin1140.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/344415/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1140.fits evtable="EVENTS" outfile="/scratch/kocevski/344415/ft1_filtered_4FGL_J1419.5+3821_daily_bin1140.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344415/ft1_filtered_4FGL_J1419.5+3821_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/344415/ft2_4FGL_J1419.5+3821_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/344415/ltcube_534816001_535075201_4FGL_J1419.5+3821_daily_bin1140.fits outfile=/scratch/kocevski/344415/expmap_534816001_535075201_4FGL_J1419.5+3821_daily_bin1140.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/344415/ltcube_534816001_535075201_4FGL_J1419.5+3821_daily_bin1140.fits
.....................!
real 190.51
user 185.36
sys 4.77

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/344415/ft1_filtered_4FGL_J1419.5+3821_daily_bin1140.fits scfile=/scratch/kocevski/344415/ft2_4FGL_J1419.5+3821_daily_bin1140.fits outfile=/scratch/kocevski/344415/cmap_534816001_535075201_4FGL_J1419.5+3821_daily_bin1140.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37601E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.149       1.0000         .10000E-03   10000.    
    10 'norm      '    .19562E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9271       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9113       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.661       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58261E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4092       1.0000         .10000E-03   10000.    
    22 'norm      '    .39469       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .70795E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.293       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87253       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1233       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=   4892.776     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3206 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    300.80       -.15183E-05** at limit **
   2  Prefactor     .10000E-03    41.421       -.10813E-06** at limit **
   3  norm          6.0636        1.9934        .35572E-08    .36046E-04
   4  Prefactor     .10000E-03    1.4392       -.45226E-07** at limit **
   5  norm          .10000E-03    4.8690       -.29879E-07** at limit **
   6  Prefactor     .10000E-03    5.4130        .21250E-07** at limit **
   7  Prefactor     .10000E-03    26.066       -.15846E-06** at limit **
   8  Prefactor     .43425        5.6467        .48724E-06   -.81036E-04
   9  Prefactor     33.151        24.889        .66035E-07    .92051E-05
  10  norm          .13745E-01    2.8361       -.11387E-05    .79071E-03
  11  Prefactor     2.9229        8.6933        .18112E-05   -.27154E-03
  12  Prefactor     .10000E-03    15.673        .58804E-06** at limit **
  13  Prefactor     7.9111        4.8276        .18455E-06   -.68355E-04
  14  norm          .10000E-03    4.8885        .88134E-07** at limit **
  15  Prefactor     .10000E-03    64.331       -.35511E-06** at limit **
  16  norm          6.5551        6.9943        .90878E-07    .42497E-05
  17  Prefactor     15.664        31.740       -.11584E-06    .24150E-05
  18  Prefactor     .10108E-03    33.115        .10554E-05** at limit **
  19  norm          .10000E-03    5.4712       -.97059E-08** at limit **
  20  Prefactor     .10000E-03    26.520        .30065E-06** at limit **
  21  Prefactor     3.3888        12.731       -.33535E-05   -.14166E-03
  22  norm          .39631        2.4950        .21438E-05    .57226E-03
  23  Prefactor     .10009E-03    6.4287        .59663E-06** at limit **
  24  Prefactor     52.420        96.210       -.68731E-05    .18377E-04
  25  Normalizat    .87259        .18697       -.21728E-06    .15474E-04
  26  Prefactor     1.1233        .21224        .27888E-06    .70867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.06362
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.434253
  Prefactor  = 33.1508
  norm       = 0.0137453
  Prefactor  = 2.92295
  Prefactor  = 0.0001
  Prefactor  = 7.91107
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.55509
  Prefactor  = 15.6638
  Prefactor  = 0.00010108
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38883
  norm       = 0.396311
  Prefactor  = 0.000100093
  Prefactor  = 52.4203
  Normalizat = 0.87259
  Prefactor  = 1.12333
 **********
 **   18 **HESSE 
 **********

 FCN=   4892.776     FROM HESSE     STATUS=OK           478 CALLS     3684 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    304.66        .19570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0636        1.9953        .54192E-04   -1.5215    
   4  Prefactor     .10000E-03    1.4475        .81942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8753        .15074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4146        .15895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .43425        5.8587        .31908E-02   -1.5576    
   9  Prefactor     33.151        25.195        .69598E-04   -1.4556    
  10  norm          .13745E-01    3.1309        .37294E-01   -1.5685    
  11  Prefactor     2.9229        8.4165        .11872E-02   -1.5366    
  12  Prefactor     .10000E-03    15.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9111        4.8161        .56651E-03   -1.5145    
  14  norm          .10000E-03    4.8913        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    65.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5551        6.9843        .15675E-03   -1.5196    
  17  Prefactor     15.664        31.725        .10121E-03   -1.4916    
  18  Prefactor     .10108E-03    36.475        .11241       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.4842        .15977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3888        12.065        .21910E-03   -1.5340    
  22  norm          .39631        2.3786        .15439E-03   -1.5582    
  23  Prefactor     .10009E-03    95.202        .33841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     52.420        95.171        .55462E-04   -1.4259    
  25  Normalizat    .87259        .22600        .23823E-03   -.97430    
  26  Prefactor     1.1233        .25641        .25297E-03   -.88724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05579e-08
Minuit parameter uncertainties:
  1  0.000282473
  2  2.838e-05
  3  1.99531
  4  1.83499e-06
  5  2.27798e-06
  6  8.71587e-07
  7  4.19393e-06
  8  3.1901
  9  25.2034
  10  0.41341
  11  8.41988
  12  4.67737e-05
  13  4.81631
  14  4.35983e-06
  15  9.98246e-05
  16  6.98516
  17  31.7589
  18  0.012561
  19  2.27668e-07
  20  1.57312e-06
  21  12.0739
  22  1.94169
  23  0.00594926
  24  95.4483
  25  0.226245
  26  0.256689
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.123e+00  2.567e-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:  8.726e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344415/likelihoodResults_534816001_535075201_4FGL_J1419.5+3821_daily_bin1140.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) = 4892.7519133
delta logL = 0.0244333308183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4892.73785497
delta logL = 0.0384916563617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5683       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1574       1.0000          .0000       10.000    
     3 'Normalizat'    .86332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1303       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=   4892.738     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5656        117.41        .84882E-02    .43317E-03
   2  Index         3.1580        6.5685        .21769        .31989E-04
   3  Normalizat    .86331        .37614E-01    .44431E-01   -.78830E-05
   4  Prefactor     1.1303        .42376E-01    .57052E-01    .95535E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56565
  Index      = 3.15797
  Normalizat = 0.863307
  Prefactor  = 1.13034
 **********
 **   18 **HESSE 
 **********

 FCN=   4892.738     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5656        38.957        .19787E-03   -1.5458    
   2  Index         3.1580        6.5545        .11697E-01   -.37729    
   3  Normalizat    .86331        .22309        .23940E-03   -.97762    
   4  Prefactor     1.1303        .25838        .25228E-03   -.88503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16972e-11
Minuit parameter uncertainties:
  1  15.6305
  2  6.19893
  3  0.223324
  4  0.258672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344415': 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) = 4892.73785485
delta logL = 0.0384917803585

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.566e+00  1.563e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.158e+00  6.199e+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:  1.130e+00  2.587e-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:  8.633e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/344415/cmap_HighResolution_534816001_535075201_4FGL_J1419.5+3821_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.40e-08', time_completed='2021-09-09 09:50:58.562729', job_id='344415', GAL2='1.13', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1631206258.56', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.85e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1140' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:50:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 344415: <4FGL_J1419.5+3821_daily_bin1140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1140 214.894 38.3657 534816001 535075201 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 :                                   646.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

