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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin692
RA = 214.894, Dec = 38.3657
tmin = 418694401, tmax = 418953601
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='341792', job_status='RUN', time_executed='2021-09-09 09:25:54.074920', time_epoch_executed='1631204754.07' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341792/ft1_4FGL_J1419.5+3821_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341792/ft2_4FGL_J1419.5+3821_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341792/ft1_4FGL_J1419.5+3821_daily_bin692.fits outfile=/scratch/kocevski/341792/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin692.fits ra=214.894 dec=38.3657 rad=12.0 tmin=418694401.0 tmax=418953601.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.17
user 4.90
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341792/ft1_filtered_4FGL_J1419.5+3821_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/341792/ft2_4FGL_J1419.5+3821_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/341792/ltcube_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.fits outfile=/scratch/kocevski/341792/expmap_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.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/341792/ltcube_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.fits
.....................!
real 190.76
user 185.30
sys 5.07

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/341792/ft1_filtered_4FGL_J1419.5+3821_daily_bin692.fits scfile=/scratch/kocevski/341792/ft2_4FGL_J1419.5+3821_daily_bin692.fits outfile=/scratch/kocevski/341792/cmap_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341792/ft1_filtered_4FGL_J1419.5+3821_daily_bin692.fits scfile=/scratch/kocevski/341792/ft2_4FGL_J1419.5+3821_daily_bin692.fits outfile=/scratch/kocevski/341792/cmap_HighResolution_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.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/341792/ft1_filtered_4FGL_J1419.5+3821_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/341792/ft2_4FGL_J1419.5+3821_daily_bin692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341792/Model_4FGL_J1419.5+3821_daily_bin692.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/341792/ft1_filtered_4FGL_J1419.5+3821_daily_bin692.fits.....................!
real 38.50
user 37.20
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.529       1.0000         .10000E-03   10000.    
     3 'norm      '    10.640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.211       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.641       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.999       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6102       1.0000         .10000E-03   10000.    
    14 'norm      '    73.372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.438       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.017       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5835       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.080       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84154       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91588       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=   4313.869     FROM MIGRAD    STATUS=CONVERGED   1050 CALLS     3471 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.167        .18142E-02** at limit **
   2  Prefactor     23.557        64.807        .82578E-04   -.45680E-04
   3  norm          10.639        2.4814        .47864E-04    .50355E-04
   4  Prefactor     .10000E-03    3.1481        .11295E-02** at limit **
   5  norm          .10000E-03    7.9915        .18091E-02** at limit **
   6  Prefactor     .26016        21.032        .89640E-01    .20094E-03
   7  Prefactor     41.223        55.763        .62443E-04   -.13946E-04
   8  Prefactor     .10000E-03    2.4773        .10065E-02** at limit **
   9  Prefactor     32.661        24.437        .70136E-04   -.91098E-04
  10  norm          .10000E-03    2.7430        .20919E-03** at limit **
  11  Prefactor     25.997        19.347        .78564E-04   -.27239E-03
  12  Prefactor     .10000E-03    23.070        .18142E-02** at limit **
  13  Prefactor     7.6107        4.4878        .10215E-03   -.20745E-03
  14  norm          73.369        28.838        .46871E-04   -.91879E-04
  15  Prefactor     16.429        34.227        .98786E-04    .12314E-04
  16  norm          .10000E-03    2.1582        .94137E-03** at limit **
  17  Prefactor     47.991        61.503        .57867E-04    .58153E-04
  18  Prefactor     .10000E-03    33.325        .18142E-02** at limit **
  19  norm          .10000E-03    3.0416        .11187E-02** at limit **
  20  Prefactor     .10000E-03    10.277        .18142E-02** at limit **
  21  Prefactor     .10000E-03    13.788        .18142E-02** at limit **
  22  norm          3.5829        2.0285        .67093E-04    .31991E-03
  23  Prefactor     .10000E-03    5.2971        .14758E-02** at limit **
  24  Prefactor     40.126        55.728        .31657E-03   -.17428E-03
  25  Normalizat    .84143        .23761        .23864E-03   -.32363E-03
  26  Prefactor     .91602        .26077        .26679E-03    .20887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.5567
  norm       = 10.639
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.260162
  Prefactor  = 41.2226
  Prefactor  = 0.0001
  Prefactor  = 32.6606
  norm       = 0.0001
  Prefactor  = 25.9967
  Prefactor  = 0.0001
  Prefactor  = 7.61074
  norm       = 73.3691
  Prefactor  = 16.4291
  norm       = 0.0001
  Prefactor  = 47.9907
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5829
  Prefactor  = 0.0001
  Prefactor  = 40.1258
  Normalizat = 0.841428
  Prefactor  = 0.916023
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.869     FROM HESSE     STATUS=OK           440 CALLS     3911 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.557        64.808        .16516E-04   -1.4737    
   3  norm          10.639        2.4814        .19146E-05   -1.5055    
   4  Prefactor     .10000E-03    3.1487        .22590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.9930        .36182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .26016        20.469        .91633E-01   -1.5606    
   7  Prefactor     41.223        55.763        .12489E-04   -1.4423    
   8  Prefactor     .10000E-03    2.4774        .20130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.661        24.436        .28054E-05   -1.4564    
  10  norm          .10000E-03    2.7430        .41837E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.997        19.339        .15713E-04   -1.4688    
  12  Prefactor     .10000E-03    23.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6107        4.4878        .40861E-05   -1.5156    
  14  norm          73.369        28.838        .93742E-05   -1.3993    
  15  Prefactor     16.429        34.233        .39514E-05   -1.4897    
  16  norm          .10000E-03    2.1582        .18827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.991        61.502        .11573E-04   -1.4321    
  18  Prefactor     .10000E-03    33.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0416        .22373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5829        2.0283        .26837E-05   -1.5329    
  23  Prefactor     .10000E-03    5.2973        .29516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     40.126        55.728        .63314E-04   -1.4440    
  25  Normalizat    .84143        .23784        .47728E-04   -.98550    
  26  Prefactor     .91602        .26102        .53357E-04   -.95583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05966e-09
Minuit parameter uncertainties:
  1  1.82723e-05
  2  65.0023
  3  2.4814
  4  1.51521e-05
  5  6.3755e-07
  6  4.61603
  7  55.8333
  8  5.72571e-05
  9  24.4436
  10  1.42499e-05
  11  19.3432
  12  0.000146399
  13  4.48797
  14  28.8437
  15  34.2739
  16  4.1378e-05
  17  61.5839
  18  7.41107e-05
  19  4.80394e-07
  20  9.73034e-05
  21  0.000146277
  22  2.02832
  23  6.30028e-08
  24  55.8004
  25  0.238133
  26  0.261381
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.600e+01  1.934e+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:  9.160e-01  2.614e-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.414e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.65
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.49e-08 +/- 4.82e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.45e-05

TS (Fixed Index): 3.65
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341792/likelihoodResults_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.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) = 4313.70364963
delta logL = 0.164951809719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4313.70327454
delta logL = 0.165326899842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.161       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1602       1.0000          .0000       10.000    
     3 'Normalizat'    .85565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90407       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=   4313.703     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      292 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.190        28.891        .66645E-04    .24223E-04
   2  Index         2.1610        .51871        .57712E-02    .20559E-03
   3  Normalizat    .85558        .22258        .23690E-03    .12295E-03
   4  Prefactor     .90405        .25784        .26827E-03   -.74626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1899
  Index      = 2.16095
  Normalizat = 0.855581
  Prefactor  = 0.904052
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.703     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.190        28.390        .26658E-05   -1.4504    
   2  Index         2.1610        .50962        .11542E-02   -.60384    
   3  Normalizat    .85558        .22275        .94758E-05   -.98039    
   4  Prefactor     .90405        .25806        .10731E-04   -.96000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61356e-10
Minuit parameter uncertainties:
  1  28.4009
  2  0.510932
  3  0.22299
  4  0.258413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341792': 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) = 4313.70327137
delta logL = 0.165330064463

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  3.619e+01  2.840e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.161e+00  5.109e-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:  9.041e-01  2.584e-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.556e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.16 +/- 0.51
Photon Flux (Free Index): 5.44e-08 +/- 4.31e-08
Energy Flux (Free Index): 2.63e-05 +/- 2.41e-05

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/341792/cmap_HighResolution_418694401_418953601_4FGL_J1419.5+3821_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='6.49e-08', energy_flux2='2.63e-05', photon_flux_error='4.82e-08', dlogl='1.65e-01', energy_flux='1.94e-05', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-09 09:36:33.989064', photon_index_error2='0.51', photon_index2='2.16', ts='3.65', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='2.41e-05', EG='0.84', time_epoch_completed='1631205393.99', return_code='0', job_id='341792', GAL2='0.90', EG2='0.86', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.31e-08', ts2='4.02', photon_index='2.47' WHERE bin_id='692' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 341792: <4FGL_J1419.5+3821_daily_bin692> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin692 214.894 38.3657 418694401 418953601 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 :                                   627.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            653 sec.

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

