/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 4 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_bin864
RA = 214.894, Dec = 38.3657
tmin = 463276801, tmax = 463536001
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='342880', job_status='RUN', time_executed='2021-09-09 09:30:35.894551', time_epoch_executed='1631205035.89' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342880

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342880/ft1_4FGL_J1419.5+3821_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342880/ft1_4FGL_J1419.5+3821_daily_bin864.fits outfile=/scratch/kocevski/342880/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin864.fits ra=214.894 dec=38.3657 rad=12.0 tmin=463276801.0 tmax=463536001.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.66
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.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/342880/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin864.fits evtable="EVENTS" outfile="/scratch/kocevski/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.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/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.fits" evtable="EVENTS" scfile=/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits sctable="SC_DATA" outfile=/scratch/kocevski/342880/ltcube_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.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/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits
.....................!
real 11.92
user 11.60
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/342880/ltcube_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.fits outfile=/scratch/kocevski/342880/expmap_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.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/342880/ltcube_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.fits
.....................!
real 191.00
user 185.20
sys 5.42

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/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.fits scfile=/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits outfile=/scratch/kocevski/342880/cmap_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.fits scfile=/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits outfile=/scratch/kocevski/342880/cmap_HighResolution_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.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/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/342880/ft2_4FGL_J1419.5+3821_daily_bin864.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342880/Model_4FGL_J1419.5+3821_daily_bin864.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/342880/ft1_filtered_4FGL_J1419.5+3821_daily_bin864.fits.....................!
real 49.82
user 48.46
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.400       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.541       1.0000         .10000E-03   10000.    
     3 'norm      '    9.7954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    23.790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.181       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.747       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13138       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7067       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7374       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .76148       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5736       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9514       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77660       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=   6273.556     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3159 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.400        55.544       -.52018E-06   -.69137E-04
   2  Prefactor     46.511        73.972       -.54192E-05   -.23534E-03
   3  norm          9.7954        2.3676        .94535E-08    .76238E-04
   4  Prefactor     .10000E-03    5.4629        .11466E-06** at limit **
   5  norm          23.799        18.706       -.32308E-06   -.22571E-03
   6  Prefactor     11.198        15.738       -.24938E-05   -.60618E-03
   7  Prefactor     .10003E-03    92.532        .65909E-05** at limit **
   8  Prefactor     .10000E-03    4.0520        .15721E-06** at limit **
   9  Prefactor     22.740        23.935        .61651E-06    .14092E-03
  10  norm          3.3603        3.8370        .29326E-05   -.59355E-03
  11  Prefactor     .10000E-03    14.538       -.36262E-06** at limit **
  12  Prefactor     .10194E-03    15.713       -.15771E-05** at limit **
  13  Prefactor     2.7068        2.8682       -.12650E-06   -.69396E-04
  14  norm          .10000E-03    4.5008       -.57066E-07** at limit **
  15  Prefactor     .10000E-03    9.4599        .26123E-07** at limit **
  16  norm          2.4078        7.3585        .93627E-06   -.61762E-04
  17  Prefactor     .10000E-03    30.234        .47440E-06** at limit **
  18  Prefactor     5.7358        19.342        .68732E-06    .34415E-04
  19  norm          .10000E-03    3.4919       -.25654E-08** at limit **
  20  Prefactor     .10000E-03    10.209        .42588E-07** at limit **
  21  Prefactor     .78170        15.604        .41609E-05   -.69647E-03
  22  norm          6.5710        3.1169       -.38738E-06   -.27777E-02
  23  Prefactor     9.9508        13.102        .56384E-07   -.20275E-04
  24  Prefactor     .10003E-03    89.295       -.59752E-05** at limit **
  25  Normalizat    1.2743        .19568        .16157E-05   -.29703E-03
  26  Prefactor     .77668        .20221       -.22335E-05   -.78305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.4
  Prefactor  = 46.5114
  norm       = 9.79539
  Prefactor  = 0.0001
  norm       = 23.799
  Prefactor  = 11.1983
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 22.7399
  norm       = 3.36026
  Prefactor  = 0.0001
  Prefactor  = 0.000101943
  Prefactor  = 2.70675
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4078
  Prefactor  = 0.0001
  Prefactor  = 5.73577
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.7817
  norm       = 6.57102
  Prefactor  = 9.95081
  Prefactor  = 0.000100026
  Normalizat = 1.27426
  Prefactor  = 0.77668
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.556     FROM HESSE     STATUS=OK           462 CALLS     3621 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.400        55.610        .24266E-03   -1.4052    
   2  Prefactor     46.511        76.038        .58773E-04   -1.4343    
   3  norm          9.7954        2.3744        .57203E-04   -1.5082    
   4  Prefactor     .10000E-03    5.6713        .36097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          23.799        18.752        .82124E-04   -1.4732    
   6  Prefactor     11.198        16.272        .11981E-03   -1.5039    
   7  Prefactor     .10003E-03    94.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1303        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.740        24.192        .83985E-04   -1.4754    
  10  norm          3.3603        4.0003        .82821E-03   -1.5341    
  11  Prefactor     .10000E-03    14.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10194E-03    23.597        .83142E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7068        2.8645        .13301E-03   -1.5379    
  14  norm          .10000E-03    4.5019        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4078        7.3021        .26400E-03   -1.5398    
  17  Prefactor     .10000E-03    30.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7358        19.334        .16769E-03   -1.5229    
  19  norm          .10000E-03    3.4940        .14453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .78170        47.592        .43372E-02   -1.5531    
  22  norm          6.5710        3.0573        .70553E-04   -1.5195    
  23  Prefactor     9.9508        13.124        .12702E-03   -1.5077    
  24  Prefactor     .10003E-03    91.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2743        .23943        .23200E-03   -.84338    
  26  Prefactor     .77668        .24285        .32052E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58243e-09
Minuit parameter uncertainties:
  1  55.6527
  2  76.1976
  3  2.37443
  4  7.64482e-06
  5  18.7564
  6  16.2786
  7  0.00317463
  8  4.92011e-06
  9  24.2028
  10  4.00061
  11  1.31157e-05
  12  0.0135479
  13  2.86466
  14  3.99786e-06
  15  6.28355e-06
  16  7.3048
  17  9.41064e-05
  18  19.3548
  19  7.68951e-06
  20  3.552e-05
  21  12.2081
  22  3.05739
  23  13.1279
  24  0.00305793
  25  0.239639
  26  0.243182
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.312e-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:  7.767e-01  2.432e-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.274e+00  2.396e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342880/likelihoodResults_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.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) = 6273.5560897
delta logL = -0.000326047264934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6273.55576355
delta logL = 1.05787876237e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5034       1.0000          .0000       10.000    
     3 'Normalizat'    1.2743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77670       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.

 FCN=   6273.556     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      218 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1391.7        .90712E-02** at limit **
   2  Index         2.5375        7.9142        .50000       -.20761E-04
   3  Normalizat    1.2743        .48850E-01    .52471E-01   -.53668E-05
   4  Prefactor     .77668        .54105E-01    .72425E-01   -.48565E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.53748
  Normalizat = 1.27426
  Prefactor  = 0.776677
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.556     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      251 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6625.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5375        6.2606        .50000       -.51496    
   3  Normalizat    1.2743        .14142        .23200E-03   -.84338    
   4  Prefactor     .77668        .15671        .32052E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17202e-07
Minuit parameter uncertainties:
  1  0.00482819
  2  66.1642
  3  0.141466
  4  0.156805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342880': 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) = 6273.55576335
delta logL = 2.9909551813e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.828e-03  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.537e+00  6.616e+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:  7.767e-01  1.568e-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.274e+00  1.415e-01  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/342880/cmap_HighResolution_463276801_463536001_4FGL_J1419.5+3821_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-09 09:42:51.799926', job_id='342880', GAL2='0.78', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631205771.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='864' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 342880: <4FGL_J1419.5+3821_daily_bin864> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin864 214.894 38.3657 463276801 463536001 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

