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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin502
RA = 214.894, Dec = 38.3657
tmin = 369446401, tmax = 369705601
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='341528', job_status='RUN', time_executed='2021-09-09 09:25:40.048258', time_epoch_executed='1631204740.05' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341528/ft1_4FGL_J1419.5+3821_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341528/ft2_4FGL_J1419.5+3821_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341528/ft1_4FGL_J1419.5+3821_daily_bin502.fits outfile=/scratch/kocevski/341528/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin502.fits ra=214.894 dec=38.3657 rad=12.0 tmin=369446401.0 tmax=369705601.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.43
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341528/ft1_filtered_4FGL_J1419.5+3821_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/341528/ft2_4FGL_J1419.5+3821_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/341528/ltcube_369446401_369705601_4FGL_J1419.5+3821_daily_bin502.fits outfile=/scratch/kocevski/341528/expmap_369446401_369705601_4FGL_J1419.5+3821_daily_bin502.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/341528/ltcube_369446401_369705601_4FGL_J1419.5+3821_daily_bin502.fits
.....................!
real 190.63
user 185.16
sys 5.11

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/341528/ft1_filtered_4FGL_J1419.5+3821_daily_bin502.fits scfile=/scratch/kocevski/341528/ft2_4FGL_J1419.5+3821_daily_bin502.fits outfile=/scratch/kocevski/341528/cmap_369446401_369705601_4FGL_J1419.5+3821_daily_bin502.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341528/ft1_filtered_4FGL_J1419.5+3821_daily_bin502.fits scfile=/scratch/kocevski/341528/ft2_4FGL_J1419.5+3821_daily_bin502.fits outfile=/scratch/kocevski/341528/cmap_HighResolution_369446401_369705601_4FGL_J1419.5+3821_daily_bin502.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    100.98       1.0000         .10000E-03   10000.    
     3 'norm      '    12.656       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13147E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2758       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3507       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.237       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8515       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6784       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1193       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    65.783       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90045       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1425       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=   6894.251     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3213 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.977        51.049       -.99219E-06   -.28539E-04
   2  Prefactor     101.03        72.174       -.43503E-05   -.15614E-03
   3  norm          12.657        2.2168        .81656E-07    .26805E-03
   4  Prefactor     .10000E-03    1.0923       -.69228E-07** at limit **
   5  norm          .10000E-03    8.6678        .33209E-06** at limit **
   6  Prefactor     .10000E-03    7.6411       -.62131E-06** at limit **
   7  Prefactor     .10000E-03    129.26       -.52549E-06** at limit **
   8  Prefactor     .10000E-03    1.2835       -.60754E-07** at limit **
   9  Prefactor     .10000E-03    10.619        .79716E-06** at limit **
  10  norm          5.5667        3.7108       -.15557E-06    .62873E-04
  11  Prefactor     16.827        11.593       -.10541E-05   -.29661E-03
  12  Prefactor     .10000E-03    7.8041        .18470E-05** at limit **
  13  Prefactor     3.2799        4.7598        .39584E-05   -.58111E-03
  14  norm          .10000E-03    5.3857        .16798E-06** at limit **
  15  Prefactor     9.3546        18.235        .54928E-06    .22965E-04
  16  norm          .10000E-03    1.5333       -.78212E-08** at limit **
  17  Prefactor     21.904        20.960       -.83972E-08    .36543E-05
  18  Prefactor     29.239        29.277       -.45774E-06    .19778E-04
  19  norm          5.8514        5.7119       -.57780E-06    .10951E-03
  20  Prefactor     .10000E-03    6.2293       -.66760E-07** at limit **
  21  Prefactor     4.6793        6.8049        .30619E-06    .61608E-04
  22  norm          1.1198        1.6482       -.12504E-06   -.42455E-03
  23  Prefactor     .10000E-03    20.422       -.86198E-06** at limit **
  24  Prefactor     65.768        61.584        .26534E-05    .80100E-04
  25  Normalizat    .89986        .18045       -.40055E-05    .10364E-03
  26  Prefactor     1.1430        .19432        .38168E-05    .27498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9774
  Prefactor  = 101.027
  norm       = 12.6569
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.56672
  Prefactor  = 16.8271
  Prefactor  = 0.000100001
  Prefactor  = 3.27988
  norm       = 0.0001
  Prefactor  = 9.35462
  norm       = 0.0001
  Prefactor  = 21.9042
  Prefactor  = 29.2387
  norm       = 5.85141
  Prefactor  = 0.0001
  Prefactor  = 4.67933
  norm       = 1.11978
  Prefactor  = 0.0001
  Prefactor  = 65.7677
  Normalizat = 0.899863
  Prefactor  = 1.143
 **********
 **   18 **HESSE 
 **********

 FCN=   6894.251     FROM HESSE     STATUS=OK           458 CALLS     3671 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.977        51.054        .66824E-04   -1.4508    
   2  Prefactor     101.03        72.497        .20004E-03   -1.3694    
   3  norm          12.657        2.2179        .49714E-04   -1.4996    
   4  Prefactor     .10000E-03    1.0980        .84737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.7525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    130.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2858        .91859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.514        .51627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5667        3.7103        .12491E-03   -1.5236    
  11  Prefactor     16.827        11.644        .97656E-04   -1.4887    
  12  Prefactor     .10000E-03    7.9077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2799        4.8266        .99899E-03   -1.5346    
  14  norm          .10000E-03    5.3900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3546        18.236        .13106E-03   -1.5096    
  16  norm          .10000E-03    1.5407        .10040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.904        20.959        .85584E-04   -1.4772    
  18  Prefactor     29.239        29.280        .74096E-04   -1.4626    
  19  norm          5.8514        5.7169        .83010E-03   -1.5224    
  20  Prefactor     .10000E-03    6.2466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.6793        6.6774        .18605E-03   -1.5275    
  22  norm          1.1198        1.5932        .10982E-03   -1.5496    
  23  Prefactor     .10000E-03    20.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     65.768        61.495        .24741E-03   -1.4084    
  25  Normalizat    .89986        .20529        .24977E-03   -.96465    
  26  Prefactor     1.1430        .22735        .26809E-03   -.88104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20152e-10
Minuit parameter uncertainties:
  1  51.1164
  2  72.5605
  3  2.21792
  4  3.39147e-06
  5  7.44408e-05
  6  9.11331e-07
  7  0.000541162
  8  3.49874e-06
  9  0.000477302
  10  3.71042
  11  11.6452
  12  0.000167793
  13  4.82717
  14  1.97058e-05
  15  18.2472
  16  9.83257e-07
  17  20.9659
  18  29.2948
  19  5.71742
  20  1.76509e-05
  21  6.67847
  22  1.59321
  23  0.000191557
  24  61.5545
  25  0.205466
  26  0.227545
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.143e+00  2.275e-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.999e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 8.70e-06

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) = 6894.12500463
delta logL = 0.12632233727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6894.06614695
delta logL = 0.185180017314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.063       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0765       1.0000          .0000       10.000    
     3 'Normalizat'    .91917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1280       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=   6894.066     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.065        16.605        .85274E-04    .15465E-04
   2  Index         2.0764        .62214        .94870E-02    .16535E-03
   3  Normalizat    .91917        .18890        .24742E-03    .16450E-04
   4  Prefactor     1.1280        .22418        .26958E-03   -.23026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0652
  Index      = 2.07637
  Normalizat = 0.919172
  Prefactor  = 1.12795
 **********
 **   18 **HESSE 
 **********

 FCN=   6894.066     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.065        16.424        .34110E-05   -1.4768    
   2  Index         2.0764        .61501        .18974E-02   -.62454    
   3  Normalizat    .91917        .18898        .98968E-05   -.95790    
   4  Prefactor     1.1280        .22435        .10783E-04   -.88578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69736e-12
Minuit parameter uncertainties:
  1  16.4274
  2  0.617395
  3  0.189112
  4  0.224537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341528': 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) = 6894.06614694
delta logL = 0.185180031096

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.207e+01  1.643e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.076e+00  6.174e-01  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.128e+00  2.245e-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:  9.192e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.63
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.08 +/- 0.62
Photon Flux (Free Index): 2.92e-08 +/- 2.89e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/341528/cmap_HighResolution_369446401_369705601_4FGL_J1419.5+3821_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='1.69e-05', photon_flux_error='2.90e-08', dlogl='1.85e-01', energy_flux='1.26e-05', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-09-09 09:37:29.674287', photon_index_error2='0.62', photon_index2='2.08', ts='5.27', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.90', time_epoch_completed='1631205449.67', return_code='0', job_id='341528', GAL2='1.13', EG2='0.92', return_code2='0', energy_flux_error='8.70e-06', photon_flux_error2='2.89e-08', ts2='5.63', photon_index='2.47' WHERE bin_id='502' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 341528: <4FGL_J1419.5+3821_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin502 214.894 38.3657 369446401 369705601 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 :                                   704.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

