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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1366
RA = 214.894, Dec = 38.3657
tmin = 593395201, tmax = 593654401
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='345993', job_status='RUN', time_executed='2021-09-09 09:40:29.937424', time_epoch_executed='1631205629.94' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345993

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345993/ft1_4FGL_J1419.5+3821_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345993/ft1_4FGL_J1419.5+3821_daily_bin1366.fits outfile=/scratch/kocevski/345993/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1366.fits ra=214.894 dec=38.3657 rad=12.0 tmin=593395201.0 tmax=593654401.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 4.13
user 3.88
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.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/345993/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1366.fits evtable="EVENTS" outfile="/scratch/kocevski/345993/ft1_filtered_4FGL_J1419.5+3821_daily_bin1366.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345993/ft1_filtered_4FGL_J1419.5+3821_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/345993/ltcube_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.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/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.fits
.....................!
real 11.74
user 11.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345993/ft1_filtered_4FGL_J1419.5+3821_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/345993/ltcube_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.fits outfile=/scratch/kocevski/345993/expmap_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.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/345993/ltcube_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.fits
.....................!
real 191.62
user 186.22
sys 4.90

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/345993/ft1_filtered_4FGL_J1419.5+3821_daily_bin1366.fits scfile=/scratch/kocevski/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.fits outfile=/scratch/kocevski/345993/cmap_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.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/345993/ft1_filtered_4FGL_J1419.5+3821_daily_bin1366.fits scfile=/scratch/kocevski/345993/ft2_4FGL_J1419.5+3821_daily_bin1366.fits outfile=/scratch/kocevski/345993/cmap_HighResolution_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31194E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.410       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4755       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .62048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2412       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.996       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24418E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.7211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.202       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4580       1.0000         .10000E-03   10000.    
    22 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .59548       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3507       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=   6604.749     FROM MIGRAD    STATUS=CONVERGED   1111 CALLS     4076 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    44.220        .16803    ** at limit **
   2  Prefactor     41.405        62.868        .62293E-04    .33471E-04
   3  norm          6.4759        1.9202        .58531E-04    .72643E-04
   4  Prefactor     .10000E-03    1.0481        .81090E-03** at limit **
   5  norm          .10028E-03    71.283        .42857E-02** at limit **
   6  Prefactor     .10000E-03    6.7761        .18142E-02** at limit **
   7  Prefactor     .10001E-03    137.64        .18142E-02** at limit **
   8  Prefactor     .10000E-03    2.5059        .12502E-02** at limit **
   9  Prefactor     .10000E-03    3.7345        .15334E-02** at limit **
  10  norm          1.2413        2.7789        .19935E-03    .71000E-04
  11  Prefactor     .10000E-03    8.3780        .18142E-02** at limit **
  12  Prefactor     11.384        12.942        .11873E-03   -.45959E-05
  13  Prefactor     69.997        8.3374        .47980E-04    .11378E-03
  14  norm          2.8380        8.2630        .24134E-03    .65620E-04
  15  Prefactor     .10001E-03    144.09        .65126E-02** at limit **
  16  norm          4.0169        5.5122        .20121E-03    .12334E-03
  17  Prefactor     .10000E-03    20.261        .18142E-02** at limit **
  18  Prefactor     .10000E-03    12.354        .18142E-02** at limit **
  19  norm          6.7209        6.3640        .77388E-03   -.53446E-03
  20  Prefactor     32.203        15.612        .70610E-04   -.85333E-05
  21  Prefactor     2.4581        4.1893        .21081E-03    .12980E-03
  22  norm          .10000E-03    8.7876        .12326E-02** at limit **
  23  Prefactor     .10000E-03    4.0591        .15973E-02** at limit **
  24  Prefactor     .10000E-03    144.39        .18142E-02** at limit **
  25  Normalizat    .59516        .20623        .30093E-03    .16717E-03
  26  Prefactor     1.3510        .23947        .25112E-03    .70317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100261
  Prefactor  = 41.4048
  norm       = 6.47592
  Prefactor  = 0.0001
  norm       = 0.000100276
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24126
  Prefactor  = 0.0001
  Prefactor  = 11.3836
  Prefactor  = 69.9972
  norm       = 2.83804
  Prefactor  = 0.000100011
  norm       = 4.01693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.72093
  Prefactor  = 32.2033
  Prefactor  = 2.45806
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.595164
  Prefactor  = 1.35097
 **********
 **   18 **HESSE 
 **********

 FCN=   6604.749     FROM HESSE     STATUS=OK           440 CALLS     4516 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    44.433        .16739       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.405        62.860        .12459E-04   -1.4420    
   3  norm          6.4759        1.9202        .23412E-05   -1.5199    
   4  Prefactor     .10000E-03    1.0481        .16218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10028E-03    73.082        .17143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    137.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5063        .25004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7345        .30668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2413        2.7787        .79741E-05   -1.5485    
  11  Prefactor     .10000E-03    8.3785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.384        12.940        .47494E-05   -1.5033    
  13  Prefactor     69.997        8.3367        .95960E-05   -1.4033    
  14  norm          2.8380        8.2627        .96535E-05   -1.5371    
  15  Prefactor     .10001E-03    148.79        .26051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0169        5.5118        .80485E-05   -1.5307    
  17  Prefactor     .10000E-03    20.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.7209        6.3639        .30955E-04   -1.5189    
  20  Prefactor     32.203        15.610        .28244E-05   -1.4572    
  21  Prefactor     2.4581        4.1880        .84325E-05   -1.5394    
  22  norm          .10000E-03    8.9841        .24651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.0594        .31946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    144.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .59516        .20630        .12037E-04   -1.0819    
  26  Prefactor     1.3510        .23969        .50223E-04   -.81804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29909e-09
Minuit parameter uncertainties:
  1  0.00681819
  2  62.9613
  3  1.92019
  4  5.17452e-07
  5  0.00900048
  6  1.04976e-05
  7  0.00282584
  8  5.5629e-06
  9  6.20337e-07
  10  2.77897
  11  2.24301e-05
  12  12.9428
  13  8.33685
  14  8.26598
  15  0.00261338
  16  5.51246
  17  4.10305e-05
  18  1.01582e-05
  19  6.3645
  20  15.6124
  21  4.18854
  22  3.09277e-05
  23  3.68809e-07
  24  0.000866889
  25  0.206571
  26  0.239888
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.243e-05  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.351e+00  2.399e-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:  5.952e-01  2.066e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345993/likelihoodResults_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.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) = 6604.75001172
delta logL = -0.000568582320739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6604.74944386
delta logL = -7.18374394637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4597       1.0000          .0000       10.000    
     3 'Normalizat'    .59503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3511       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=   6604.749     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10214E-03    2.3766        .18142E-01** at limit **
   2  Index         2.3289        8.7836        .50000        .87186E-05
   3  Normalizat    .59516        .20699E-02    .30093E-03    .19607E-04
   4  Prefactor     1.3510        .25208E-02    .25112E-03    .19377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102137
  Index      = 2.32889
  Normalizat = 0.595162
  Prefactor  = 1.35097
 **********
 **   18 **HESSE 
 **********

 FCN=   6604.749     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10214E-03    182.74        .23450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3289        5.4735        .50000       -.56359    
   3  Normalizat    .59516        .18409E-01    .12037E-04   -1.0819    
   4  Prefactor     1.3510        .22419E-01    .10045E-04   -.81804    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04952e-08
Minuit parameter uncertainties:
  1  0.0396443
  2  1069.77
  3  0.0184092
  4  0.0224189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345993': 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) = 6604.7494429
delta logL = 2.38637767325e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.021e-04  3.964e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.329e+00  1.070e+03  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.351e+00  2.242e-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:  5.952e-01  1.841e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/345993/cmap_HighResolution_593395201_593654401_4FGL_J1419.5+3821_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-09 09:54:43.647239', job_id='345993', GAL2='1.35', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1631206483.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1366' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:54:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 345993: <4FGL_J1419.5+3821_daily_bin1366> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1366 214.894 38.3657 593395201 593654401 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 :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

