/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 144 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin81
RA = 214.894, Dec = 38.3657
tmin = 260323201, tmax = 260582401
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='338849', job_status='RUN', time_executed='2021-09-09 09:18:18.312836', time_epoch_executed='1631204298.31' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338849/ft1_4FGL_J1419.5+3821_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338849/ft2_4FGL_J1419.5+3821_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338849/ft1_4FGL_J1419.5+3821_daily_bin81.fits outfile=/scratch/kocevski/338849/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin81.fits ra=214.894 dec=38.3657 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.53
user 1.33
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338849/ft1_filtered_4FGL_J1419.5+3821_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/338849/ft2_4FGL_J1419.5+3821_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/338849/ltcube_260323201_260582401_4FGL_J1419.5+3821_daily_bin81.fits outfile=/scratch/kocevski/338849/expmap_260323201_260582401_4FGL_J1419.5+3821_daily_bin81.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/338849/ltcube_260323201_260582401_4FGL_J1419.5+3821_daily_bin81.fits
.....................!
real 192.13
user 187.01
sys 4.76

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/338849/ft1_filtered_4FGL_J1419.5+3821_daily_bin81.fits scfile=/scratch/kocevski/338849/ft2_4FGL_J1419.5+3821_daily_bin81.fits outfile=/scratch/kocevski/338849/cmap_260323201_260582401_4FGL_J1419.5+3821_daily_bin81.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338849/ft1_filtered_4FGL_J1419.5+3821_daily_bin81.fits scfile=/scratch/kocevski/338849/ft2_4FGL_J1419.5+3821_daily_bin81.fits outfile=/scratch/kocevski/338849/cmap_HighResolution_260323201_260582401_4FGL_J1419.5+3821_daily_bin81.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67957E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4500       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16556E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14135E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.787       1.0000         .10000E-03   10000.    
    16 'norm      '    .83046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.797       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13247E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7985       1.0000         .10000E-03   10000.    
    24 'Prefactor '    60.417       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1998       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=   8080.077     FROM MIGRAD    STATUS=CONVERGED   1130 CALLS     3745 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    30.754        .16350    ** at limit **
   2  Prefactor     .10000E-03    22.208        .18142E-02** at limit **
   3  norm          1.9964        1.0420        .29317E-04    .21328E-04
   4  Prefactor     4.4508        4.0440        .16319E-03    .25247E-03
   5  norm          .10000E-03    5.6314        .18142E-02** at limit **
   6  Prefactor     9.6250        14.269        .12916E-03    .24911E-04
   7  Prefactor     .10000E-03    51.367        .18142E-02** at limit **
   8  Prefactor     .10000E-03    26.084        .33565E-02** at limit **
   9  Prefactor     .10000E-03    9.0468        .18142E-02** at limit **
  10  norm          .10000E-03    1.5219        .10779E-02** at limit **
  11  Prefactor     27.615        16.020        .76185E-04    .25607E-03
  12  Prefactor     .10038E-03    131.07        .59726E-02** at limit **
  13  Prefactor     .10000E-03    1.9781        .24351E-03** at limit **
  14  norm          .10000E-03    5.5821        .18142E-02** at limit **
  15  Prefactor     11.787        13.356        .11668E-03    .51055E-04
  16  norm          .82585        17.757        .30987E-02    .60773E-03
  17  Prefactor     .10000E-03    14.476        .18142E-02** at limit **
  18  Prefactor     .10000E-03    26.630        .18142E-02** at limit **
  19  norm          10.797        7.6987        .12193E-03    .11692E-03
  20  Prefactor     8.2953        11.046        .13919E-03    .32035E-03
  21  Prefactor     .10000E-03    7.7064        .36285E-03** at limit **
  22  norm          .10010E-03    18.844        .12467E-02** at limit **
  23  Prefactor     6.7988        12.688        .15388E-03    .12419E-03
  24  Prefactor     60.393        63.880        .51619E-04    .13915E-03
  25  Normalizat    1.0241        .19234        .24312E-03    .82961E-03
  26  Prefactor     1.1998        .21466        .26441E-03    .69014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  norm       = 1.99636
  Prefactor  = 4.45081
  norm       = 0.0001
  Prefactor  = 9.62503
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.6147
  Prefactor  = 0.000100384
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7867
  norm       = 0.825853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.7974
  Prefactor  = 8.29532
  Prefactor  = 0.0001
  norm       = 0.000100097
  Prefactor  = 6.79879
  Prefactor  = 60.3929
  Normalizat = 1.02413
  Prefactor  = 1.19982
 **********
 **   18 **HESSE 
 **********

 FCN=   8080.077     FROM HESSE     STATUS=OK           442 CALLS     4187 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    30.800        .16327       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9964        1.0419        .11727E-05   -1.5425    
   4  Prefactor     4.4508        4.0425        .65276E-05   -1.5286    
   5  norm          .10000E-03    5.6321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6250        14.266        .51662E-05   -1.5087    
   7  Prefactor     .10000E-03    51.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.821        .13426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0482        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5221        .21558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.615        15.802        .30474E-05   -1.4656    
  12  Prefactor     .10038E-03    132.57        .23891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9781        .48702E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.5823        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.787        13.356        .46673E-05   -1.5021    
  16  norm          .82585        17.480        .12395E-03   -1.5526    
  17  Prefactor     .10000E-03    14.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.797        7.6881        .24386E-04   -1.5051    
  20  Prefactor     8.2953        11.038        .55674E-05   -1.5132    
  21  Prefactor     .10000E-03    7.7068        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10010E-03    19.410        .49869E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.7988        12.686        .61553E-05   -1.5186    
  24  Prefactor     60.393        63.814        .10324E-04   -1.4152    
  25  Normalizat    1.0241        .19217        .48623E-04   -.92226    
  26  Prefactor     1.1998        .21485        .52881E-04   -.86337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00109e-08
Minuit parameter uncertainties:
  1  0.00328217
  2  0.000199341
  3  1.04189
  4  4.04279
  5  2.52479e-06
  6  14.2715
  7  0.000417555
  8  4.10838e-05
  9  7.55713e-06
  10  3.42241e-06
  11  15.8041
  12  0.0143054
  13  1.3998e-05
  14  5.05062e-06
  15  13.3589
  16  7.60104
  17  3.81217e-05
  18  6.26311e-05
  19  7.68883
  20  11.0404
  21  2.73736e-05
  22  0.00274683
  23  12.6911
  24  63.8862
  25  0.192297
  26  0.215006
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.200e+00  2.150e-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.024e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.89e-08 +/- 3.94e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.18e-05

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) = 8079.24458846
delta logL = 0.832308335904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8079.22527678
delta logL = 0.851620023033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2383       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3266       1.0000          .0000       10.000    
     3 'Normalizat'    .95792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2564       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=   8079.225     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2007        59.758        .32964E-02    .22110E-03
   2  Index         3.3288        2.3027        .96964E-01    .19100E-03
   3  Normalizat    .95781        .60972E-01    .45637E-01   -.21982E-04
   4  Prefactor     1.2564        .67095E-01    .58643E-01   -.47640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.20074
  Index      = 3.32882
  Normalizat = 0.957808
  Prefactor  = 1.25643
 **********
 **   18 **HESSE 
 **********

 FCN=   8079.225     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2007        49.736        .11512E-03   -1.5101    
   2  Index         3.3288        2.4040        .37844E-02   -.34080    
   3  Normalizat    .95781        .21060        .25018E-03   -.94458    
   4  Prefactor     1.2564        .24130        .25933E-03   -.84612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18188e-07
Minuit parameter uncertainties:
  1  42.8386
  2  2.5228
  3  0.210784
  4  0.241515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338849': 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) = 8079.2252716
delta logL = 0.851625199095

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  9.201e+00  4.284e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.329e+00  2.523e+00  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.256e+00  2.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.578e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.20
Ra Dec: 214.894 38.366
Photon Index (Free Index): 3.33 +/- 2.52
Photon Flux (Free Index): 1.12e-07 +/- 6.20e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.34e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.89e-08', energy_flux2='1.97e-05', photon_flux_error='3.94e-08', dlogl='8.52e-01', energy_flux='2.06e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-09 09:31:35.643406', photon_index_error2='2.52', photon_index2='3.33', ts='5.20', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.02', time_epoch_completed='1631205095.64', return_code='0', job_id='338849', GAL2='1.26', EG2='0.96', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='6.20e-08', ts2='7.20', photon_index='2.47' WHERE bin_id='81' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 338849: <4FGL_J1419.5+3821_daily_bin81> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin81> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:45 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:46 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:15:46 2021
Terminated at Thu Sep  9 09:31:36 2021
Results reported at Thu Sep  9 09:31:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin81 214.894 38.3657 260323201 260582401 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 :                                   796.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

