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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin732
RA = 214.894, Dec = 38.3657
tmin = 429062401, tmax = 429321601
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='341849', job_status='RUN', time_executed='2021-09-09 09:25:59.652390', time_epoch_executed='1631204759.65' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341849/ft1_4FGL_J1419.5+3821_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341849/ft2_4FGL_J1419.5+3821_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341849/ft1_4FGL_J1419.5+3821_daily_bin732.fits outfile=/scratch/kocevski/341849/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin732.fits ra=214.894 dec=38.3657 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.36
user 6.08
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341849/ft1_filtered_4FGL_J1419.5+3821_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/341849/ft2_4FGL_J1419.5+3821_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/341849/ltcube_429062401_429321601_4FGL_J1419.5+3821_daily_bin732.fits outfile=/scratch/kocevski/341849/expmap_429062401_429321601_4FGL_J1419.5+3821_daily_bin732.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/341849/ltcube_429062401_429321601_4FGL_J1419.5+3821_daily_bin732.fits
.....................!
real 189.74
user 185.03
sys 4.32

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/341849/ft1_filtered_4FGL_J1419.5+3821_daily_bin732.fits scfile=/scratch/kocevski/341849/ft2_4FGL_J1419.5+3821_daily_bin732.fits outfile=/scratch/kocevski/341849/cmap_429062401_429321601_4FGL_J1419.5+3821_daily_bin732.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/341849/ft1_filtered_4FGL_J1419.5+3821_daily_bin732.fits scfile=/scratch/kocevski/341849/ft2_4FGL_J1419.5+3821_daily_bin732.fits outfile=/scratch/kocevski/341849/cmap_HighResolution_429062401_429321601_4FGL_J1419.5+3821_daily_bin732.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    218.40       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7991       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.033       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .77792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0749       1.0000         .10000E-03   10000.    
    16 'norm      '    .49304E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.178       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.6228       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0961       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6797       1.0000         .10000E-03   10000.    
    22 'norm      '    10.150       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82845       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0583       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=   7692.130     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3160 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.833        51.464        .30888E-06    .48237E-04
   2  Prefactor     218.38        103.49       -.64479E-06   -.29773E-04
   3  norm          6.7987        2.2430       -.34259E-07   -.98103E-04
   4  Prefactor     .10000E-03    1.3281        .61695E-07** at limit **
   5  norm          .10000E-03    5.5452       -.21070E-06** at limit **
   6  Prefactor     .10000E-03    4.0283       -.19231E-06** at limit **
   7  Prefactor     .10000E-03    39.865       -.14068E-06** at limit **
   8  Prefactor     .89496        2.8525        .14091E-05    .22782E-03
   9  Prefactor     14.034        18.238       -.60689E-06   -.76793E-04
  10  norm          .10000E-03    1.2389       -.17174E-06** at limit **
  11  Prefactor     .10000E-03    6.1029       -.14641E-05** at limit **
  12  Prefactor     38.864        19.859        .18808E-06   -.76188E-04
  13  Prefactor     .10000E-03    1.4441        .46455E-07** at limit **
  14  norm          .77730        9.1369        .13674E-05   -.26160E-03
  15  Prefactor     4.0593        43.674       -.59141E-06   -.20759E-06
  16  norm          .10000E-03    2.6491       -.21880E-06** at limit **
  17  Prefactor     27.272        42.663        .94371E-06    .43880E-04
  18  Prefactor     .10000E-03    15.462        .72144E-07** at limit **
  19  norm          6.6262        5.3261        .11477E-07   -.42190E-04
  20  Prefactor     5.1006        9.9076        .39959E-06    .47088E-04
  21  Prefactor     6.6813        5.7605        .16962E-07    .49537E-04
  22  norm          10.150        2.0500       -.19156E-07    .14809E-03
  23  Prefactor     .10000E-03    8.7855        .15416E-06** at limit **
  24  Prefactor     .10000E-03    15.190        .34490E-07** at limit **
  25  Normalizat    .82863        .17854        .24421E-05   -.14974E-04
  26  Prefactor     1.0582        .18825       -.21465E-05    .12990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.833
  Prefactor  = 218.375
  norm       = 6.79875
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.894959
  Prefactor  = 14.034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8644
  Prefactor  = 0.0001
  norm       = 0.777303
  Prefactor  = 4.05933
  norm       = 0.000100003
  Prefactor  = 27.2718
  Prefactor  = 0.0001
  norm       = 6.62616
  Prefactor  = 5.10061
  Prefactor  = 6.68127
  norm       = 10.1505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828631
  Prefactor  = 1.05818
 **********
 **   18 **HESSE 
 **********

 FCN=   7692.130     FROM HESSE     STATUS=OK           464 CALLS     3624 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.833        51.407        .63555E-04   -1.4445    
   2  Prefactor     218.38        103.63        .13684E-03   -1.2742    
   3  norm          6.7987        2.2433        .72702E-04   -1.5186    
   4  Prefactor     .10000E-03    1.3375        .98638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.5572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0324        .17198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .89496        2.8755        .25766E-03   -1.5519    
   9  Prefactor     14.034        18.268        .10692E-03   -1.4959    
  10  norm          .10000E-03    1.2614        .95375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.864        19.871        .64308E-04   -1.4460    
  13  Prefactor     .10000E-03    2.8845        .20186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77730        24.075        .45370E-02   -1.5532    
  15  Prefactor     4.0593        43.277        .19973E-03   -1.5305    
  16  norm          .10000E-03    32.559        .26759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.272        42.224        .76844E-04   -1.4663    
  18  Prefactor     .10000E-03    15.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.6262        5.3130        .15593E-03   -1.5193    
  20  Prefactor     5.1006        9.8835        .17810E-03   -1.5256    
  21  Prefactor     6.6813        5.7551        .15526E-03   -1.5191    
  22  norm          10.150        2.0507        .51612E-04   -1.5071    
  23  Prefactor     .10000E-03    8.9331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82863        .19492        .26017E-03   -.99015    
  26  Prefactor     1.0582        .20658        .26194E-03   -.90814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39671e-10
Minuit parameter uncertainties:
  1  51.464
  2  103.714
  3  2.24335
  4  2.54902e-07
  5  1.08317e-05
  6  8.78294e-06
  7  8.3019e-05
  8  2.87598
  9  18.275
  10  5.68306e-06
  11  8.14675e-05
  12  19.8739
  13  3.70856e-05
  14  8.65509
  15  26.5327
  16  0.000648906
  17  42.2706
  18  1.58709e-05
  19  5.31335
  20  9.88662
  21  5.7556
  22  2.05073
  23  1.499e-06
  24  8.66858e-06
  25  0.195082
  26  0.206737
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.058e+00  2.067e-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:  8.286e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341849/likelihoodResults_429062401_429321601_4FGL_J1419.5+3821_daily_bin732.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7692.13087719
delta logL = -0.000758397793106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7692.13011885
delta logL = -5.30335455551e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4733       1.0000          .0000       10.000    
     3 'Normalizat'    .82861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0582       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=   7692.130     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4730        .90712E-02** at limit **
   2  Index         2.4744        6.2365        .50000       -.16748E-05
   3  Normalizat    .82863        .14992        .43983E-01    .44353E-04
   4  Prefactor     1.0582        .16943        .59235E-01    .22775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4744
  Normalizat = 0.828633
  Prefactor  = 1.05818
 **********
 **   18 **HESSE 
 **********

 FCN=   7692.130     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1073.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4744        6.1428        .50000       -.52952    
   3  Normalizat    .82863        .70600E-01    .26017E-03   -.99015    
   4  Prefactor     1.0582        .79740E-01    .26194E-03   -.90815    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.54311e-10
Minuit parameter uncertainties:
  1  4.45055e-05
  2  57.5308
  3  0.0706076
  4  0.0797489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341849': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7692.1301188
delta logL = 8.69476934895e-10

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.451e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.474e+00  5.753e+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.058e+00  7.975e-02  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:  8.286e-01  7.061e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-09 09:40:07.111011', job_id='341849', GAL2='1.06', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631205607.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.69e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='732' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:40:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 341849: <4FGL_J1419.5+3821_daily_bin732> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin732> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:25:46 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:25:48 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:48 2021
Terminated at Thu Sep  9 09:40:07 2021
Results reported at Thu Sep  9 09:40:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin732 214.894 38.3657 429062401 429321601 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

