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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin37
RA = 214.894, Dec = 38.3657
tmin = 248918401, tmax = 249177601
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='338779', job_status='RUN', time_executed='2021-09-09 09:18:12.327997', time_epoch_executed='1631204292.33' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338779

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338779/ft1_4FGL_J1419.5+3821_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338779/ft2_4FGL_J1419.5+3821_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338779/ft1_4FGL_J1419.5+3821_daily_bin37.fits outfile=/scratch/kocevski/338779/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin37.fits ra=214.894 dec=38.3657 rad=12.0 tmin=248918401.0 tmax=249177601.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.92
user 1.74
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338779/ft1_filtered_4FGL_J1419.5+3821_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/338779/ft2_4FGL_J1419.5+3821_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/338779/ltcube_248918401_249177601_4FGL_J1419.5+3821_daily_bin37.fits outfile=/scratch/kocevski/338779/expmap_248918401_249177601_4FGL_J1419.5+3821_daily_bin37.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/338779/ltcube_248918401_249177601_4FGL_J1419.5+3821_daily_bin37.fits
.....................!
real 190.25
user 185.08
sys 4.75

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/338779/ft1_filtered_4FGL_J1419.5+3821_daily_bin37.fits scfile=/scratch/kocevski/338779/ft2_4FGL_J1419.5+3821_daily_bin37.fits outfile=/scratch/kocevski/338779/cmap_248918401_249177601_4FGL_J1419.5+3821_daily_bin37.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338779/ft1_filtered_4FGL_J1419.5+3821_daily_bin37.fits scfile=/scratch/kocevski/338779/ft2_4FGL_J1419.5+3821_daily_bin37.fits outfile=/scratch/kocevski/338779/cmap_HighResolution_248918401_249177601_4FGL_J1419.5+3821_daily_bin37.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.346       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.311       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5609       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.336       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4502       1.0000         .10000E-03   10000.    
    22 'norm      '    .10737E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6172       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .30338       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=   4325.320     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3076 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.386       -.34032E-05** at limit **
   2  Prefactor     .10000E-03    22.508        .14085E-04** at limit **
   3  norm          .10000E-03    .90615        .15969E-06** at limit **
   4  Prefactor     .10000E-03    1.4303       -.70804E-08** at limit **
   5  norm          11.356        20.108       -.16672E-05   -.59971E-03
   6  Prefactor     .10000E-03    8.5455        .35675E-05** at limit **
   7  Prefactor     .10000E-03    92.115       -.53924E-04** at limit **
   8  Prefactor     7.1220        6.2744        .14222E-08   -.78172E-03
   9  Prefactor     10.302        31.420       -.77526E-05   -.27880E-04
  10  norm          .10000E-03    2.4423       -.27362E-07** at limit **
  11  Prefactor     17.993        13.406        .17720E-06   -.29600E-04
  12  Prefactor     .10000E-03    6.3304        .28638E-07** at limit **
  13  Prefactor     .10000E-03    2.0191       -.63705E-07** at limit **
  14  norm          .10000E-03    8.1949       -.29864E-05** at limit **
  15  Prefactor     .10000E-03    57.098        .55186E-04** at limit **
  16  norm          3.5656        8.0064       -.61792E-06   -.23931E-03
  17  Prefactor     .10000E-03    31.901       -.26665E-04** at limit **
  18  Prefactor     61.347        45.220        .84337E-05    .10092E-04
  19  norm          .10000E-03    3.4876       -.35747E-07** at limit **
  20  Prefactor     6.5503        15.990       -.14727E-05   -.50600E-04
  21  Prefactor     7.4534        6.9333        .14588E-07    .62829E-06
  22  norm          .10000E-03    1.3442        .55988E-09** at limit **
  23  Prefactor     .10000E-03    12.556       -.20835E-05** at limit **
  24  Prefactor     .10000E-03    80.527        .13919E-05** at limit **
  25  Normalizat    1.6162        .23490        .67861E-06   -.23479E-03
  26  Prefactor     .30442        .24684       -.20817E-05   -.11108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.12202
  Prefactor  = 10.3021
  norm       = 0.0001
  Prefactor  = 17.9934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56561
  Prefactor  = 0.0001
  Prefactor  = 61.3468
  norm       = 0.0001
  Prefactor  = 6.55027
  Prefactor  = 7.45339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.61623
  Prefactor  = 0.304422
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.320     FROM HESSE     STATUS=OK           452 CALLS     3528 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4737        .12050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4391        .76803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.356        20.296        .59468E-03   -1.5034    
   6  Prefactor     .10000E-03    8.5570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    91.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1220        6.2639        .73703E-03   -1.5174    
   9  Prefactor     10.302        31.818        .12478E-03   -1.5066    
  10  norm          .10000E-03    2.4719        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.993        13.417        .94440E-04   -1.4859    
  12  Prefactor     .10000E-03    6.3345        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0459        .91220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    57.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5656        8.0014        .21418E-03   -1.5330    
  17  Prefactor     .10000E-03    31.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.347        45.332        .51234E-04   -1.4140    
  19  norm          .10000E-03    3.4882        .11994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5503        15.933        .15683E-03   -1.5196    
  21  Prefactor     7.4534        6.7444        .14694E-03   -1.5162    
  22  norm          .10000E-03    2.7487        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    80.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6162        .25074        .18511E-03   -.74563    
  26  Prefactor     .30442        .25574        .43475E-03   -1.2200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73822e-09
Minuit parameter uncertainties:
  1  5.98963e-07
  2  3.74374e-06
  3  2.06889e-05
  4  1.2947e-08
  5  20.3081
  6  3.06092e-06
  7  0.000320895
  8  6.26447
  9  31.8704
  10  4.25458e-10
  11  13.4194
  12  1.5637e-06
  13  7.06511e-06
  14  1.76624e-06
  15  0.000176064
  16  8.00385
  17  2.50705e-05
  18  45.3578
  19  2.0021e-06
  20  15.9429
  21  6.74505
  22  4.89845e-06
  23  8.44132e-06
  24  5.28577e-07
  25  0.250931
  26  0.25669
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.799e+01  1.342e+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:  3.044e-01  2.567e-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.616e+00  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.39
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.00e-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) = 4325.05033129
delta logL = 0.269718926312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4325.04864047
delta logL = 0.271409744253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.787       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9699       1.0000          .0000       10.000    
     3 'Normalizat'    1.6375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28817       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=   4325.049     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      295 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.790        21.287        .39443E-03   -.10641E-02
   2  Index         1.9698        .65355        .85267E-02   -.33812E-03
   3  Normalizat    1.6373        .23146        .18420E-03    .24840E-03
   4  Prefactor     .28830        .25127        .44612E-03    .12015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7896
  Index      = 1.96983
  Normalizat = 1.63735
  Prefactor  = 0.288304
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.049     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.790        21.096        .78886E-04   -1.4692    
   2  Index         1.9698        .64760        .34107E-03   -.65107    
   3  Normalizat    1.6373        .23133        .36840E-04   -.73989    
   4  Prefactor     .28830        .25116        .17845E-04   -1.2296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22914e-09
Minuit parameter uncertainties:
  1  21.1026
  2  0.650501
  3  0.23148
  4  0.25211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338779': 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) = 4325.04864032
delta logL = 0.271409891356

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.579e+01  2.110e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.970e+00  6.505e-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:  2.883e-01  2.521e-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.637e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.93
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.97 +/- 0.65
Photon Flux (Free Index): 2.94e-08 +/- 3.15e-08
Energy Flux (Free Index): 2.19e-05 +/- 2.71e-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/338779/cmap_HighResolution_248918401_249177601_4FGL_J1419.5+3821_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='2.19e-05', photon_flux_error='3.35e-08', dlogl='2.71e-01', energy_flux='1.35e-05', photon_flux2='2.94e-08', job_status='DONE', time_completed='2021-09-09 09:27:10.162304', photon_index_error2='0.65', photon_index2='1.97', ts='6.39', fit_tolerance='1e-08', GAL='0.30', photon_index_error='0.00', energy_flux_error2='2.71e-05', EG='1.62', time_epoch_completed='1631204830.16', return_code='0', job_id='338779', GAL2='0.29', EG2='1.64', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.15e-08', ts2='6.93', photon_index='2.47' WHERE bin_id='37' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:27:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 338779: <4FGL_J1419.5+3821_daily_bin37> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin37 214.894 38.3657 248918401 249177601 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 :                                   537.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

