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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1093
RA = 214.894, Dec = 38.3657
tmin = 522633601, tmax = 522892801
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='344348', job_status='RUN', time_executed='2021-09-09 09:37:35.599451', time_epoch_executed='1631205455.6' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344348/ft1_4FGL_J1419.5+3821_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344348/ft1_4FGL_J1419.5+3821_daily_bin1093.fits outfile=/scratch/kocevski/344348/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1093.fits ra=214.894 dec=38.3657 rad=12.0 tmin=522633601.0 tmax=522892801.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.70
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.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/344348/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/344348/ft1_filtered_4FGL_J1419.5+3821_daily_bin1093.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/344348/ft1_filtered_4FGL_J1419.5+3821_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/344348/ltcube_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.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/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.fits
.....................!
real 12.14
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344348/ft1_filtered_4FGL_J1419.5+3821_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/344348/ltcube_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.fits outfile=/scratch/kocevski/344348/expmap_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.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/344348/ltcube_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.fits
.....................!
real 192.49
user 186.89
sys 5.23

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/344348/ft1_filtered_4FGL_J1419.5+3821_daily_bin1093.fits scfile=/scratch/kocevski/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.fits outfile=/scratch/kocevski/344348/cmap_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344348/ft1_filtered_4FGL_J1419.5+3821_daily_bin1093.fits scfile=/scratch/kocevski/344348/ft2_4FGL_J1419.5+3821_daily_bin1093.fits outfile=/scratch/kocevski/344348/cmap_HighResolution_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3401       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.624       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.667       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35936E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7981       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.587       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.708       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.696       1.0000         .10000E-03   10000.    
    22 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71923       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=   5720.662     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3093 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.044        56.953       -.84810E-05    .11668E-03
   2  Prefactor     .10000E-03    50.989       -.13725E-06** at limit **
   3  norm          3.3335        1.5605       -.21733E-06   -.26557E-02
   4  Prefactor     2.3399        2.5320       -.34170E-06   -.11049E-02
   5  norm          .10000E-03    6.8066       -.27187E-07** at limit **
   6  Prefactor     .10000E-03    6.1220       -.20382E-06** at limit **
   7  Prefactor     40.618        55.726       -.79070E-05    .85220E-04
   8  Prefactor     .10000E-03    1.5014        .90404E-07** at limit **
   9  Prefactor     27.657        25.098       -.14516E-05    .70826E-04
  10  norm          .10000E-03    1.7804       -.23505E-07** at limit **
  11  Prefactor     4.7026        9.2038       -.37758E-06   -.56496E-04
  12  Prefactor     .10000E-03    6.0393        .10004E-06** at limit **
  13  Prefactor     .11536E-01    2.1852       -.40902E-06   -.56001E-04
  14  norm          3.7973        8.9983       -.74413E-06   -.89561E-04
  15  Prefactor     19.581        21.222        .16233E-05   -.50568E-04
  16  norm          4.1250        4.2489        .70978E-07    .63131E-04
  17  Prefactor     27.502        29.963       -.11124E-05    .27768E-04
  18  Prefactor     55.709        50.316        .35089E-05   -.42040E-04
  19  norm          8.9565        7.6234        .62674E-06   -.34278E-04
  20  Prefactor     .10000E-03    14.334        .10202E-06** at limit **
  21  Prefactor     17.697        9.7622       -.11882E-05    .10619E-03
  22  norm          .10000E-03    .99200        .10987E-06** at limit **
  23  Prefactor     .10000E-03    9.6270       -.11228E-06** at limit **
  24  Prefactor     .10000E-03    24.370       -.39381E-06** at limit **
  25  Normalizat    1.2286        .18431        .15383E-05    .16565E-04
  26  Prefactor     .71929        .19721       -.34970E-06    .96551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.0439
  Prefactor  = 0.0001
  norm       = 3.33347
  Prefactor  = 2.3399
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6175
  Prefactor  = 0.0001
  Prefactor  = 27.6572
  norm       = 0.0001
  Prefactor  = 4.70259
  Prefactor  = 0.0001
  Prefactor  = 0.0115362
  norm       = 3.79727
  Prefactor  = 19.5805
  norm       = 4.12504
  Prefactor  = 27.5023
  Prefactor  = 55.7094
  norm       = 8.9565
  Prefactor  = 0.0001
  Prefactor  = 17.6969
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22859
  Prefactor  = 0.719291
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.662     FROM HESSE     STATUS=OK           462 CALLS     3555 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.044        56.301        .53111E-04   -1.4196    
   2  Prefactor     .10000E-03    51.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3335        1.6053        .31885E-03   -1.5343    
   4  Prefactor     2.3399        2.5744        .61909E-03   -1.5402    
   5  norm          .10000E-03    6.8180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.618        55.326        .62890E-04   -1.4432    
   8  Prefactor     .10000E-03    1.5035        .90503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.657        25.337        .76164E-04   -1.4656    
  10  norm          .10000E-03    1.7893        .98516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7026        9.1959        .18553E-03   -1.5274    
  12  Prefactor     .10000E-03    6.0442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11536E-01    5.9714        .35468E-01   -1.5687    
  14  norm          3.7973        9.0005        .20712E-03   -1.5318    
  15  Prefactor     19.581        21.201        .90500E-04   -1.4823    
  16  norm          4.1250        4.2506        .15336E-03   -1.5302    
  17  Prefactor     27.502        29.956        .76389E-04   -1.4659    
  18  Prefactor     55.709        50.159        .53744E-04   -1.4214    
  19  norm          8.9565        7.6212        .13393E-03   -1.5109    
  20  Prefactor     .10000E-03    14.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.697        9.7247        .95209E-04   -1.4866    
  22  norm          .10000E-03    1.0262        .14613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.7266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2286        .22474        .21797E-03   -.85724    
  26  Prefactor     .71929        .23700        .30847E-03   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23873e-09
Minuit parameter uncertainties:
  1  56.3535
  2  4.1938e-06
  3  1.60533
  4  2.57456
  5  3.22906e-06
  6  2.08145e-06
  7  55.3956
  8  7.8209e-06
  9  25.3472
  10  1.9599e-06
  11  9.19864
  12  4.5455e-06
  13  0.522698
  14  9.0037
  15  21.2088
  16  4.25087
  17  29.972
  18  50.1971
  19  7.62203
  20  1.66206e-05
  21  9.72555
  22  7.04335e-06
  23  8.09998e-06
  24  1.5382e-05
  25  0.224913
  26  0.237334
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.703e+00  9.199e+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:  7.193e-01  2.373e-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.229e+00  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344348/likelihoodResults_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.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) = 5720.55548889
delta logL = 0.10682050534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.54772232
delta logL = 0.1145870747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9718       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8852       1.0000          .0000       10.000    
     3 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71311       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=   5720.548     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9800        944.97        .37985E-02    .30172E-04
   2  Index         1.8865        8.1857        .26494        .38020E-04
   3  Normalizat    1.2362        .17644        .49165E-01    .26263E-04
   4  Prefactor     .71281        .13603        .69973E-01   -.24164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.97996
  Index      = 1.88652
  Normalizat = 1.23623
  Prefactor  = 0.712811
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.548     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9800        11.477        .15194E-03   -1.5180    
   2  Index         1.8865        1.0594        .16142E-01   -.67218    
   3  Normalizat    1.2362        .20962        .21735E-03   -.85490    
   4  Prefactor     .71281        .23365        .30966E-03   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73783e-10
Minuit parameter uncertainties:
  1  11.4807
  2  1.07281
  3  0.209761
  4  0.233971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344348': 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) = 5720.54771955
delta logL = 0.114589847064

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  6.980e+00  1.148e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.887e+00  1.073e+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:  7.128e-01  2.340e-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.236e+00  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/344348/cmap_HighResolution_522633601_522892801_4FGL_J1419.5+3821_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-09 09:50:52.196481', job_id='344348', GAL2='0.71', fit_tolerance='1e-08', EG2='1.24', EG='1.23', time_epoch_completed='1631206252.2', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.15e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1093' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 344348: <4FGL_J1419.5+3821_daily_bin1093> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1093 214.894 38.3657 522633601 522892801 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 :                                   689.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

