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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin506
RA = 214.894, Dec = 38.3657
tmin = 370483201, tmax = 370742401
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='341533', job_status='RUN', time_executed='2021-09-09 09:28:51.260736', time_epoch_executed='1631204931.26' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341533

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341533/ft1_4FGL_J1419.5+3821_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341533/ft2_4FGL_J1419.5+3821_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341533/ft1_4FGL_J1419.5+3821_daily_bin506.fits outfile=/scratch/kocevski/341533/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin506.fits ra=214.894 dec=38.3657 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.56
user 19.00
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341533/ft1_filtered_4FGL_J1419.5+3821_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/341533/ft2_4FGL_J1419.5+3821_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/341533/ltcube_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.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/341533/ft2_4FGL_J1419.5+3821_daily_bin506.fits
.....................!
real 10.13
user 9.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341533/ft1_filtered_4FGL_J1419.5+3821_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/341533/ft2_4FGL_J1419.5+3821_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/341533/ltcube_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.fits outfile=/scratch/kocevski/341533/expmap_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.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/341533/ltcube_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.fits
.....................!
real 190.38
user 185.70
sys 4.31

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/341533/ft1_filtered_4FGL_J1419.5+3821_daily_bin506.fits scfile=/scratch/kocevski/341533/ft2_4FGL_J1419.5+3821_daily_bin506.fits outfile=/scratch/kocevski/341533/cmap_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    38.047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
    10 'norm      '    .32458E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6420       1.0000         .10000E-03   10000.    
    14 'norm      '    26.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.213       1.0000         .10000E-03   10000.    
    16 'norm      '    .10572E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    130.86       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0067       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .67581       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=   1908.938     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3131 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3441        6449.9       -.68622E-04   -.14621E-05
   2  Prefactor     .10000E-03    77.931       -.12222E-05** at limit **
   3  norm          14.142        4.0989       -.25326E-06    .12385E-03
   4  Prefactor     .10000E-03    4.3094       -.21123E-07** at limit **
   5  norm          38.036        34.358        .62296E-05    .12705E-04
   6  Prefactor     .10000E-03    16.100        .15929E-06** at limit **
   7  Prefactor     .10000E-03    115.38       -.15798E-04** at limit **
   8  Prefactor     .10000E-03    2.9750        .15734E-08** at limit **
   9  Prefactor     20.858        34.519       -.53332E-05    .23830E-04
  10  norm          .10036E-03    7.8284        .67738E-06** at limit **
  11  Prefactor     .10000E-03    14.836        .89629E-06** at limit **
  12  Prefactor     12.732        24.802       -.27574E-04   -.25679E-04
  13  Prefactor     2.6283        13.106       -.59230E-06   -.19660E-03
  14  norm          26.262        29.574        .39453E-05   -.21118E-04
  15  Prefactor     28.189        45.641        .14822E-04    .92811E-05
  16  norm          .10000E-03    12.744        .28911E-06** at limit **
  17  Prefactor     70.630        79.703       -.91316E-05    .19187E-05
  18  Prefactor     130.85        101.62       -.21301E-04    .44001E-06
  19  norm          .10000E-03    7.9376        .11740E-07** at limit **
  20  Prefactor     .10000E-03    11.658       -.13046E-08** at limit **
  21  Prefactor     .10000E-03    5.4576        .43469E-08** at limit **
  22  norm          .10000E-03    1.7363       -.18880E-07** at limit **
  23  Prefactor     .10000E-03    10.718       -.13271E-07** at limit **
  24  Prefactor     .10000E-03    101.11        .13077E-04** at limit **
  25  Normalizat    1.0070        .32234        .52352E-05   -.35353E-04
  26  Prefactor     .67596        .32909       -.47322E-06    .70676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34415
  Prefactor  = 0.0001
  norm       = 14.1417
  Prefactor  = 0.0001
  norm       = 38.036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8578
  norm       = 0.000100359
  Prefactor  = 0.000100002
  Prefactor  = 12.7319
  Prefactor  = 2.62827
  norm       = 26.2618
  Prefactor  = 28.1893
  norm       = 0.0001
  Prefactor  = 70.6301
  Prefactor  = 130.851
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00695
  Prefactor  = 0.675958
 **********
 **   18 **HESSE 
 **********

 FCN=   1908.938     FROM HESSE     STATUS=OK           462 CALLS     3593 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3441        6467.4        .25499E-03   -1.5476    
   2  Prefactor     .10000E-03    77.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.142        4.1230        .44342E-04   -1.4956    
   4  Prefactor     .10000E-03    4.3150        .88582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          38.036        34.431        .64978E-04   -1.4474    
   6  Prefactor     .10000E-03    16.103        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    115.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9785        .73593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.858        34.871        .87630E-04   -1.4794    
  10  norm          .10036E-03    15.864        .40205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.862        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.732        24.851        .11225E-03   -1.4994    
  13  Prefactor     2.6283        13.133        .25083E-03   -1.5384    
  14  norm          26.262        29.641        .78186E-04   -1.4683    
  15  Prefactor     28.189        45.604        .75425E-04   -1.4646    
  16  norm          .10000E-03    12.866        .15230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.630        79.683        .23880E-03   -1.4025    
  18  Prefactor     130.85        101.50        .17599E-03   -1.3415    
  19  norm          .10000E-03    7.9380        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.660        .14573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4586        .99697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7501        .56205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.727        .13973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    101.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0070        .38366        .23645E-03   -.92798    
  26  Prefactor     .67596        .38665        .31258E-03   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20893e-10
Minuit parameter uncertainties:
  1  135.456
  2  8.2062e-05
  3  4.12311
  4  3.2452e-06
  5  34.4486
  6  6.97035e-05
  7  1.56457e-05
  8  9.17435e-07
  9  34.9055
  10  0.00477187
  11  0.000339902
  12  24.8707
  13  11.754
  14  29.6575
  15  45.66
  16  9.38027e-05
  17  79.8041
  18  101.632
  19  4.33389e-06
  20  1.17275e-05
  21  2.16992e-06
  22  2.10083e-06
  23  1.31336e-05
  24  8.04584e-06
  25  0.384716
  26  0.388194
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.399e-04  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:  6.760e-01  3.882e-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.007e+00  3.847e-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: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341533/likelihoodResults_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.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) = 1908.93871328
delta logL = -0.000319345402886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1908.93839588
delta logL = -1.95043821805e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7913       1.0000          .0000       10.000    
     3 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67596       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=   1908.938     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10474E-03    9.2437        .13487E-01** at limit **
   2  Index         2.6904        6.1486        .50000        .31792E-04
   3  Normalizat    1.0070        .68074E-02    .23645E-03   -.14395E-03
   4  Prefactor     .67595        .75339E-02    .31258E-03   -.88071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104738
  Index      = 2.6904
  Normalizat = 1.00695
  Prefactor  = 0.675953
 **********
 **   18 **HESSE 
 **********

 FCN=   1908.938     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10474E-03    96.882        .14134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6904        5.7790        .50000       -.48016    
   3  Normalizat    1.0070        .22210E-01    .47290E-04   -.92798    
   4  Prefactor     .67595        .24580E-01    .12503E-04   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17761e-08
Minuit parameter uncertainties:
  1  0.0429191
  2  280.427
  3  0.0222099
  4  0.0245801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341533': 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) = 1908.93839533
delta logL = -1.39285202749e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.047e-04  4.292e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.690e+00  2.804e+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:  6.760e-01  2.458e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.007e+00  2.221e-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/341533/cmap_HighResolution_370483201_370742401_4FGL_J1419.5+3821_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-09 09:37:35.741096', job_id='341533', GAL2='0.68', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631205455.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='506' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:37:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 341533: <4FGL_J1419.5+3821_daily_bin506> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin506> 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) <bullet0031>, 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:36 2021
Results reported at Thu Sep  9 09:37:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin506 214.894 38.3657 370483201 370742401 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 :                                   515.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             194.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

