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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin787
RA = 214.894, Dec = 38.3657
tmin = 443318401, tmax = 443577601
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='341928', job_status='RUN', time_executed='2021-09-09 09:26:02.587537', time_epoch_executed='1631204762.59' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341928/ft1_4FGL_J1419.5+3821_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341928/ft2_4FGL_J1419.5+3821_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341928/ft1_4FGL_J1419.5+3821_daily_bin787.fits outfile=/scratch/kocevski/341928/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin787.fits ra=214.894 dec=38.3657 rad=12.0 tmin=443318401.0 tmax=443577601.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.58
user 4.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341928/ft1_filtered_4FGL_J1419.5+3821_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/341928/ft2_4FGL_J1419.5+3821_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/341928/ltcube_443318401_443577601_4FGL_J1419.5+3821_daily_bin787.fits outfile=/scratch/kocevski/341928/expmap_443318401_443577601_4FGL_J1419.5+3821_daily_bin787.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/341928/ltcube_443318401_443577601_4FGL_J1419.5+3821_daily_bin787.fits
.....................!
real 189.12
user 184.97
sys 3.79

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/341928/ft1_filtered_4FGL_J1419.5+3821_daily_bin787.fits scfile=/scratch/kocevski/341928/ft2_4FGL_J1419.5+3821_daily_bin787.fits outfile=/scratch/kocevski/341928/cmap_443318401_443577601_4FGL_J1419.5+3821_daily_bin787.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341928/ft1_filtered_4FGL_J1419.5+3821_daily_bin787.fits scfile=/scratch/kocevski/341928/ft2_4FGL_J1419.5+3821_daily_bin787.fits outfile=/scratch/kocevski/341928/cmap_HighResolution_443318401_443577601_4FGL_J1419.5+3821_daily_bin787.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.494       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1209       1.0000         .10000E-03   10000.    
     5 'norm      '    9.6367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.299       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7795       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    47.614       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28741E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    60.447       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78232       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1466       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=   8570.042     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3207 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.496        44.003        .12586E-05   -.47979E-05
   2  Prefactor     .10000E-03    53.274        .16399E-04** at limit **
   3  norm          17.308        2.5762        .35858E-08   -.49762E-04
   4  Prefactor     9.1219        4.6293        .36795E-07   -.22373E-03
   5  norm          9.6374        11.105       -.82526E-06   -.68184E-03
   6  Prefactor     .10000E-03    9.1465       -.59776E-06** at limit **
   7  Prefactor     .10000E-03    50.520        .75350E-05** at limit **
   8  Prefactor     18.611        6.3855       -.48392E-07   -.76578E-04
   9  Prefactor     .10000E-03    7.0013        .17897E-06** at limit **
  10  norm          .10000E-03    1.0205       -.17653E-07** at limit **
  11  Prefactor     56.305        19.018       -.12851E-06    .95987E-04
  12  Prefactor     .10000E-03    14.348       -.17379E-05** at limit **
  13  Prefactor     5.7803        3.7477       -.61417E-07   -.29521E-03
  14  norm          8.7560        10.522       -.11880E-06   -.13928E-03
  15  Prefactor     17.921        23.436       -.21822E-06    .23475E-04
  16  norm          .10000E-03    1.9051       -.10135E-07** at limit **
  17  Prefactor     .10000E-03    44.513       -.19045E-04** at limit **
  18  Prefactor     .10000E-03    22.392        .23871E-05** at limit **
  19  norm          .10000E-03    11.011        .13413E-05** at limit **
  20  Prefactor     .10000E-03    5.6383       -.23199E-06** at limit **
  21  Prefactor     .10000E-03    5.4523        .17054E-06** at limit **
  22  norm          47.612        4.3871       -.16921E-07    .21729E-03
  23  Prefactor     .10005E-03    10.405       -.55242E-06** at limit **
  24  Prefactor     60.449        94.922        .27505E-05    .16488E-05
  25  Normalizat    .78218        .17444        .88023E-07   -.17585E-05
  26  Prefactor     1.1466        .19245        .12301E-07    .30149E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4957
  Prefactor  = 0.0001
  norm       = 17.3085
  Prefactor  = 9.12194
  norm       = 9.63736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6106
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.3053
  Prefactor  = 0.0001
  Prefactor  = 5.78033
  norm       = 8.75599
  Prefactor  = 17.9214
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 47.6124
  Prefactor  = 0.000100055
  Prefactor  = 60.4493
  Normalizat = 0.782182
  Prefactor  = 1.14657
 **********
 **   18 **HESSE 
 **********

 FCN=   8570.042     FROM HESSE     STATUS=OK           454 CALLS     3661 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.496        43.997        .59443E-04   -1.4358    
   2  Prefactor     .10000E-03    52.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.308        2.5787        .54667E-04   -1.4876    
   4  Prefactor     9.1219        4.6353        .13271E-03   -1.5104    
   5  norm          9.6374        11.349        .64545E-03   -1.5087    
   6  Prefactor     .10000E-03    9.1541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.611        6.3851        .92834E-04   -1.4845    
   9  Prefactor     .10000E-03    7.0714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0251        .91302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.305        19.077        .53463E-04   -1.4206    
  12  Prefactor     .10000E-03    14.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7803        3.7502        .13728E-03   -1.5227    
  14  norm          8.7560        10.529        .67730E-03   -1.5116    
  15  Prefactor     17.921        23.456        .94608E-04   -1.4861    
  16  norm          .10000E-03    1.9096        .12477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          47.612        4.3823        .54912E-04   -1.4327    
  23  Prefactor     .10005E-03    95.295        .56990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     60.449        94.945        .51607E-04   -1.4151    
  25  Normalizat    .78218        .20926        .31303E-03   -1.0073    
  26  Prefactor     1.1466        .23186        .30781E-03   -.87992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2456e-09
Minuit parameter uncertainties:
  1  44.0283
  2  2.81173e-05
  3  2.5787
  4  4.63547
  5  11.3511
  6  5.82359e-06
  7  8.19749e-06
  8  6.38537
  9  2.5673e-07
  10  4.84761e-07
  11  19.0795
  12  2.21405e-05
  13  3.75036
  14  10.5314
  15  23.4682
  16  7.81163e-07
  17  6.98158e-05
  18  2.91276e-06
  19  1.61032e-05
  20  3.6636e-07
  21  1.70082e-07
  22  4.38236
  23  0.00457963
  24  95.1843
  25  0.209476
  26  0.232065
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.631e+01  1.908e+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.147e+00  2.321e-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:  7.822e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.95
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 4.76e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 1.43e-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) = 8568.80506047
delta logL = 1.23728625098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8568.80207997
delta logL = 1.24026674746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.325       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0917       1.0000          .0000       10.000    
     3 'Normalizat'    .70178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2122       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=   8568.802     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      311 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.319        23.169        .79601E-04    .23908E-03
   2  Index         3.0920        .52641        .29229E-02    .11103E-03
   3  Normalizat    .70129        .20854        .32849E-03   -.76625E-04
   4  Prefactor     1.2127        .23800        .30054E-03   -.30400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3192
  Index      = 3.092
  Normalizat = 0.701292
  Prefactor  = 1.21267
 **********
 **   18 **HESSE 
 **********

 FCN=   8568.802     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.319        18.912        .31841E-05   -1.4701    
   2  Index         3.0920        .42960        .11692E-03   -.39153    
   3  Normalizat    .70129        .20746        .13139E-04   -1.0384    
   4  Prefactor     1.2127        .23710        .60107E-04   -.85942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9366e-10
Minuit parameter uncertainties:
  1  18.9163
  2  0.430226
  3  0.207691
  4  0.237308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341928': 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) = 8568.80207713
delta logL = 1.24026958497

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.532e+01  1.892e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.092e+00  4.302e-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.213e+00  2.373e-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:  7.013e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.70
Ra Dec: 214.894 38.366
Photon Index (Free Index): 3.09 +/- 0.43
Photon Flux (Free Index): 1.96e-07 +/- 6.32e-08
Energy Flux (Free Index): 3.74e-05 +/- 1.12e-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/341928/cmap_HighResolution_443318401_443577601_4FGL_J1419.5+3821_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='3.74e-05', photon_flux_error='4.76e-08', dlogl='1.24e+00', energy_flux='4.21e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-09 09:40:01.811756', photon_index_error2='0.43', photon_index2='3.09', ts='19.95', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.78', time_epoch_completed='1631205601.81', return_code='0', job_id='341928', GAL2='1.21', EG2='0.70', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.32e-08', ts2='22.70', photon_index='2.47' WHERE bin_id='787' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:40:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 341928: <4FGL_J1419.5+3821_daily_bin787> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin787> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:25:52 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:25:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:25:54 2021
Terminated at Thu Sep  9 09:40:02 2021
Results reported at Thu Sep  9 09:40:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin787 214.894 38.3657 443318401 443577601 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 :                                   823.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

