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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1411
RA = 214.894, Dec = 38.3657
tmin = 605059201, tmax = 605318401
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='346064', job_status='RUN', time_executed='2021-09-09 09:42:54.525943', time_epoch_executed='1631205774.53' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346064/ft1_4FGL_J1419.5+3821_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346064/ft2_4FGL_J1419.5+3821_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346064/ft1_4FGL_J1419.5+3821_daily_bin1411.fits outfile=/scratch/kocevski/346064/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1411.fits ra=214.894 dec=38.3657 rad=12.0 tmin=605059201.0 tmax=605318401.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 5.40
user 5.10
sys 0.25

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346064/ft1_filtered_4FGL_J1419.5+3821_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/346064/ft2_4FGL_J1419.5+3821_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/346064/ltcube_605059201_605318401_4FGL_J1419.5+3821_daily_bin1411.fits outfile=/scratch/kocevski/346064/expmap_605059201_605318401_4FGL_J1419.5+3821_daily_bin1411.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/346064/ltcube_605059201_605318401_4FGL_J1419.5+3821_daily_bin1411.fits
.....................!
real 192.52
user 186.03
sys 5.95

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/346064/ft1_filtered_4FGL_J1419.5+3821_daily_bin1411.fits scfile=/scratch/kocevski/346064/ft2_4FGL_J1419.5+3821_daily_bin1411.fits outfile=/scratch/kocevski/346064/cmap_605059201_605318401_4FGL_J1419.5+3821_daily_bin1411.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.158       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.021       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8365       1.0000         .10000E-03   10000.    
     5 'norm      '    11.891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.638       1.0000         .10000E-03   10000.    
    10 'norm      '    3.9371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.307       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.7747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.079       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8165       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9994       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4564       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72087       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97021       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=   5567.484     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     3056 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.184        81.133        .38518E-05    .26323E-04
   2  Prefactor     51.045        92.038       -.29406E-08    .20760E-04
   3  norm          2.5111        1.5076       -.38703E-07   -.98590E-04
   4  Prefactor     9.8372        6.0079       -.36850E-06   -.32264E-03
   5  norm          11.891        15.120       -.10226E-06   -.12009E-04
   6  Prefactor     .10000E-03    5.9242       -.22980E-06** at limit **
   7  Prefactor     .10000E-03    19.707        .63691E-06** at limit **
   8  Prefactor     .10000E-03    1.4535       -.31882E-07** at limit **
   9  Prefactor     37.642        22.513       -.17480E-06    .19560E-04
  10  norm          3.9372        4.3063        .11560E-06   -.73881E-05
  11  Prefactor     .10000E-03    4.1391        .26086E-06** at limit **
  12  Prefactor     .10000E-03    4.1621       -.19458E-06** at limit **
  13  Prefactor     45.308        7.8142       -.56904E-07   -.50089E-04
  14  norm          .10000E-03    6.0038       -.61086E-07** at limit **
  15  Prefactor     .10000E-03    7.4752       -.56039E-07** at limit **
  16  norm          8.7747        6.5730       -.27669E-06   -.71440E-04
  17  Prefactor     43.090        43.029        .93494E-06    .31770E-04
  18  Prefactor     .10000E-03    15.311       -.17097E-06** at limit **
  19  norm          .10000E-03    3.0043        .33062E-07** at limit **
  20  Prefactor     .38102        57.450        .64902E-05   -.30612E-05
  21  Prefactor     .10000E-03    6.1197        .73664E-06** at limit **
  22  norm          1.8165        1.2939        .53736E-08    .18199E-05
  23  Prefactor     4.0038        13.901       -.21076E-08    .81227E-05
  24  Prefactor     1.4268        255.13       -.11091E-04   -.71163E-05
  25  Normalizat    .72080        .22097        .42413E-05   -.81772E-04
  26  Prefactor     .97024        .22265       -.44250E-05    .10011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.184
  Prefactor  = 51.0448
  norm       = 2.51108
  Prefactor  = 9.83721
  norm       = 11.8906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6424
  norm       = 3.93724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3077
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.77467
  Prefactor  = 43.0899
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.381021
  Prefactor  = 0.0001
  norm       = 1.81646
  Prefactor  = 4.00375
  Prefactor  = 1.42676
  Normalizat = 0.7208
  Prefactor  = 0.970237
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.484     FROM HESSE     STATUS=OK           456 CALLS     3512 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.184        81.597        .69588E-04   -1.4555    
   2  Prefactor     51.045        92.988        .56146E-04   -1.4278    
   3  norm          2.5111        1.5034        .67806E-04   -1.5391    
   4  Prefactor     9.8372        6.1095        .63883E-03   -1.5081    
   5  norm          11.891        15.112        .11617E-03   -1.5018    
   6  Prefactor     .10000E-03    5.9295        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4569        .87836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.642        22.586        .65328E-04   -1.4480    
  10  norm          3.9372        4.2963        .15499E-03   -1.5311    
  11  Prefactor     .10000E-03    4.1454        .14826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1682        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     45.308        7.8165        .59565E-04   -1.4361    
  14  norm          .10000E-03    6.0096        .17855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.7747        6.5624        .13531E-03   -1.5115    
  17  Prefactor     43.090        43.182        .61079E-04   -1.4394    
  18  Prefactor     .10000E-03    15.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0066        .12629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .38102        56.973        .37333E-02   -1.5585    
  21  Prefactor     .10000E-03    6.2126        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8165        1.2870        .68418E-04   -1.5438    
  23  Prefactor     4.0038        13.903        .20167E-03   -1.5308    
  24  Prefactor     1.4268        265.23        .35673E-03   -1.5469    
  25  Normalizat    .72080        .22844        .26407E-03   -1.0308    
  26  Prefactor     .97024        .23091        .25904E-03   -.93728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19362e-08
Minuit parameter uncertainties:
  1  81.8729
  2  93.2542
  3  1.50344
  4  6.10992
  5  15.1168
  6  8.54858e-06
  7  4.1218e-05
  8  8.4029e-07
  9  22.5909
  10  4.29667
  11  5.51419e-06
  12  8.51108e-06
  13  7.81664
  14  3.42772e-06
  15  4.88896e-06
  16  6.56295
  17  43.2135
  18  8.1335e-07
  19  2.00991e-06
  20  9.32619
  21  3.2858e-05
  22  1.28702
  23  13.9141
  24  39.0818
  25  0.228742
  26  0.231144
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.514e-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:  9.702e-01  2.311e-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:  7.208e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/346064/likelihoodResults_605059201_605318401_4FGL_J1419.5+3821_daily_bin1411.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) = 5567.48508932
delta logL = -0.00114217458031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5567.48394742
delta logL = -2.75105776382e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4532       1.0000          .0000       10.000    
     3 'Normalizat'    .72092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97011       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=   5567.484     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      247 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.884        .15039E-01** at limit **
   2  Index         1.8390        7.2186        .50000        .39188E-06
   3  Normalizat    .72080        .77586E-02    .26407E-03   -.28384E-03
   4  Prefactor     .97024        .87729E-02    .25904E-03   -.28303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83898
  Normalizat = 0.720801
  Prefactor  = 0.970235
 **********
 **   18 **HESSE 
 **********

 FCN=   5567.484     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.32        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8390        5.8782        .50000       -.68439    
   3  Normalizat    .72080        .26943E-01    .10563E-04   -1.0308    
   4  Prefactor     .97024        .30465E-01    .51808E-04   -.93728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.31702e-09
Minuit parameter uncertainties:
  1  0.000159862
  2  929.102
  3  0.0269432
  4  0.0304654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346064': 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) = 5567.48394424
delta logL = 2.90574917017e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.599e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.839e+00  9.291e+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:  9.702e-01  3.047e-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:  7.208e-01  2.694e-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/346064/cmap_HighResolution_605059201_605318401_4FGL_J1419.5+3821_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2021-09-09 09:55:59.305499', job_id='346064', GAL2='0.97', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631206559.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1411' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:55:59 PDT 2021


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

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

Your job looked like:

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

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

