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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin135
RA = 214.894, Dec = 38.3657
tmin = 274320001, tmax = 274579201
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='339973', job_status='RUN', time_executed='2021-09-09 09:20:35.000049', time_epoch_executed='1631204435.0' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339973

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339973/ft1_4FGL_J1419.5+3821_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339973/ft2_4FGL_J1419.5+3821_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339973/ft1_4FGL_J1419.5+3821_daily_bin135.fits outfile=/scratch/kocevski/339973/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin135.fits ra=214.894 dec=38.3657 rad=12.0 tmin=274320001.0 tmax=274579201.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.92
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339973/ft1_filtered_4FGL_J1419.5+3821_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/339973/ft2_4FGL_J1419.5+3821_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/339973/ltcube_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.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/339973/ft2_4FGL_J1419.5+3821_daily_bin135.fits
.....................!
real 12.11
user 11.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339973/ft1_filtered_4FGL_J1419.5+3821_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/339973/ft2_4FGL_J1419.5+3821_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/339973/ltcube_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.fits outfile=/scratch/kocevski/339973/expmap_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.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/339973/ltcube_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.fits
.....................!
real 191.02
user 186.04
sys 4.61

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/339973/ft1_filtered_4FGL_J1419.5+3821_daily_bin135.fits scfile=/scratch/kocevski/339973/ft2_4FGL_J1419.5+3821_daily_bin135.fits outfile=/scratch/kocevski/339973/cmap_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.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/339973/ft1_filtered_4FGL_J1419.5+3821_daily_bin135.fits scfile=/scratch/kocevski/339973/ft2_4FGL_J1419.5+3821_daily_bin135.fits outfile=/scratch/kocevski/339973/cmap_HighResolution_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39407E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    8.5744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1254       1.0000         .10000E-03   10000.    
    10 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5740       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10685E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.9626       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9976       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5235       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9045       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2239       1.0000         .10000E-03   10000.    
    24 'Prefactor '    103.60       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1575       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=   6791.334     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3078 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.863        .73940E-06** at limit **
   2  Prefactor     .10000E-03    420.06        .36002E-05** at limit **
   3  norm          8.5746        2.2367        .44613E-08    .98290E-04
   4  Prefactor     .10000E-03    3.1541       -.33252E-06** at limit **
   5  norm          .10000E-03    11.473       -.70557E-06** at limit **
   6  Prefactor     .10000E-03    10.573        .43896E-06** at limit **
   7  Prefactor     .10000E-03    23.063       -.58756E-06** at limit **
   8  Prefactor     .10000E-03    2.9937       -.15805E-06** at limit **
   9  Prefactor     1.1399        109.50       -.13000E-04    .15555E-04
  10  norm          .10000E-03    3.8347        .24839E-06** at limit **
  11  Prefactor     35.946        17.553        .68790E-06    .32810E-04
  12  Prefactor     .10000E-03    14.094        .14244E-05** at limit **
  13  Prefactor     3.5739        4.6054       -.10829E-05    .10920E-03
  14  norm          .10000E-03    4.7903        .13850E-06** at limit **
  15  Prefactor     .10000E-03    39.755       -.46333E-06** at limit **
  16  norm          9.9624        7.4653       -.29019E-06    .22640E-04
  17  Prefactor     .10000E-03    18.276       -.96773E-06** at limit **
  18  Prefactor     .10000E-03    17.337        .20142E-06** at limit **
  19  norm          3.9975        5.2375       -.10482E-05   -.14633E-03
  20  Prefactor     16.026        15.348       -.21572E-06    .18314E-04
  21  Prefactor     7.5234        9.5345       -.39499E-07    .38414E-04
  22  norm          1.9043        1.9874       -.40017E-06    .96349E-04
  23  Prefactor     8.2232        12.858       -.39152E-06    .26122E-04
  24  Prefactor     103.60        81.741        .24822E-06    .94876E-05
  25  Normalizat    1.0980        .18806        .91735E-06    .20001E-03
  26  Prefactor     1.1578        .20788        .15288E-05    .21140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.5746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.13992
  norm       = 0.0001
  Prefactor  = 35.9459
  Prefactor  = 0.0001
  Prefactor  = 3.57393
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.96237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99754
  Prefactor  = 16.0256
  Prefactor  = 7.5234
  norm       = 1.90427
  Prefactor  = 8.22325
  Prefactor  = 103.598
  Normalizat = 1.09802
  Prefactor  = 1.15778
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.334     FROM HESSE     STATUS=OK           456 CALLS     3534 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    426.36        .19513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5746        2.2408        .60238E-04   -1.5122    
   4  Prefactor     .10000E-03    3.2084        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0206        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1399        110.87        .66361E-02   -1.5494    
  10  norm          .10000E-03    3.9514        .31434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.946        17.568        .66848E-04   -1.4508    
  12  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5739        4.6787        .19039E-03   -1.5330    
  14  norm          .10000E-03    4.7891        .17611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.9624        7.4622        .12695E-03   -1.5077    
  17  Prefactor     .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9975        5.3128        .20171E-03   -1.5308    
  20  Prefactor     16.026        15.336        .10005E-03   -1.4907    
  21  Prefactor     7.5234        9.4754        .14621E-03   -1.5159    
  22  norm          1.9043        1.9666        .10086E-03   -1.5432    
  23  Prefactor     8.2232        12.871        .13980E-03   -1.5134    
  24  Prefactor     103.60        81.580        .39505E-04   -1.3669    
  25  Normalizat    1.0980        .22868        .25822E-03   -.89815    
  26  Prefactor     1.1578        .24953        .28792E-03   -.87641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93451e-10
Minuit parameter uncertainties:
  1  3.10351e-05
  2  0.000540643
  3  2.24085
  4  9.2612e-06
  5  4.92836e-05
  6  2.47921e-05
  7  3.28964e-05
  8  6.45167e-06
  9  22.5264
  10  2.19809e-05
  11  17.5705
  12  7.40232e-05
  13  4.67919
  14  7.86809e-06
  15  0.000118946
  16  7.46288
  17  4.6033e-05
  18  5.64678e-06
  19  5.31342
  20  15.3401
  21  9.47732
  22  1.96663
  23  12.8749
  24  81.6687
  25  0.228882
  26  0.24978
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  3.595e+01  1.757e+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.158e+00  2.498e-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.098e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.99
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.97e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.31e-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) = 6791.04658306
delta logL = 0.287407170267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6790.99076221
delta logL = 0.343228012019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.186       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0929       1.0000          .0000       10.000    
     3 'Normalizat'    1.1338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1334       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=   6790.991     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      291 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.195        24.051        .60312E-04    .29028E-04
   2  Index         2.0929        .46691        .73601E-02    .23599E-04
   3  Normalizat    1.1340        .22132        .25474E-03    .16851E-03
   4  Prefactor     1.1333        .24845        .29070E-03   -.44271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.1952
  Index      = 2.09292
  Normalizat = 1.13399
  Prefactor  = 1.13325
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.991     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.195        23.926        .12062E-04   -1.4377    
   2  Index         2.0929        .46390        .29441E-03   -.62047    
   3  Normalizat    1.1340        .22146        .10190E-04   -.88668    
   4  Prefactor     1.1333        .24867        .11628E-04   -.88411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1741e-10
Minuit parameter uncertainties:
  1  23.9316
  2  0.464916
  3  0.221644
  4  0.248923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339973': 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) = 6790.99076186
delta logL = 0.343228365326

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.420e+01  2.393e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.093e+00  4.649e-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:  1.133e+00  2.489e-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.134e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.60
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.09 +/- 0.46
Photon Flux (Free Index): 6.00e-08 +/- 4.91e-08
Energy Flux (Free Index): 3.34e-05 +/- 2.22e-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/339973/cmap_HighResolution_274320001_274579201_4FGL_J1419.5+3821_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.97e-08', energy_flux2='3.34e-05', photon_flux_error='4.38e-08', dlogl='3.43e-01', energy_flux='2.69e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-09 09:31:48.063671', photon_index_error2='0.46', photon_index2='2.09', ts='10.99', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.10', time_epoch_completed='1631205108.06', return_code='0', job_id='339973', GAL2='1.13', EG2='1.13', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.91e-08', ts2='11.60', photon_index='2.47' WHERE bin_id='135' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 339973: <4FGL_J1419.5+3821_daily_bin135> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin135> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:16 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:18 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:20:18 2021
Terminated at Thu Sep  9 09:31:48 2021
Results reported at Thu Sep  9 09:31:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin135 214.894 38.3657 274320001 274579201 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 :                                   670.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

