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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin907
RA = 214.894, Dec = 38.3657
tmin = 474422401, tmax = 474681601
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='342942', job_status='RUN', time_executed='2021-09-09 09:30:38.659397', time_epoch_executed='1631205038.66' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342942/ft1_4FGL_J1419.5+3821_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342942/ft2_4FGL_J1419.5+3821_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342942/ft1_4FGL_J1419.5+3821_daily_bin907.fits outfile=/scratch/kocevski/342942/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin907.fits ra=214.894 dec=38.3657 rad=12.0 tmin=474422401.0 tmax=474681601.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.43
user 3.23
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342942/ft1_filtered_4FGL_J1419.5+3821_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/342942/ft2_4FGL_J1419.5+3821_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/342942/ltcube_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.fits outfile=/scratch/kocevski/342942/expmap_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.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/342942/ltcube_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.fits
.....................!
real 190.30
user 185.08
sys 4.84

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/342942/ft1_filtered_4FGL_J1419.5+3821_daily_bin907.fits scfile=/scratch/kocevski/342942/ft2_4FGL_J1419.5+3821_daily_bin907.fits outfile=/scratch/kocevski/342942/cmap_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342942/ft1_filtered_4FGL_J1419.5+3821_daily_bin907.fits scfile=/scratch/kocevski/342942/ft2_4FGL_J1419.5+3821_daily_bin907.fits outfile=/scratch/kocevski/342942/cmap_HighResolution_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.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/342942/ft1_filtered_4FGL_J1419.5+3821_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/342942/ft2_4FGL_J1419.5+3821_daily_bin907.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342942/Model_4FGL_J1419.5+3821_daily_bin907.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/342942/ft1_filtered_4FGL_J1419.5+3821_daily_bin907.fits.....................!
real 42.30
user 40.95
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.176       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16268E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.8156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0881       1.0000         .10000E-03   10000.    
     5 'norm      '    .33407E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   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      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.333       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.906       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7455       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.2196       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.0771       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .58018       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2258       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=   5168.887     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3047 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.142        54.382       -.55104E-04    .47137E-05
   2  Prefactor     .10000E-03    115.06       -.10637E-05** at limit **
   3  norm          3.8157        1.7816       -.20414E-06   -.75332E-04
   4  Prefactor     3.0882        3.1206       -.76001E-08   -.16307E-03
   5  norm          .10002E-03    6.8104        .16187E-06** at limit **
   6  Prefactor     .10000E-03    4.7101       -.92847E-06** at limit **
   7  Prefactor     .10000E-03    50.190        .25489E-05** at limit **
   8  Prefactor     .10000E-03    1.6755       -.11376E-07** at limit **
   9  Prefactor     .10000E-03    3.8401        .12373E-06** at limit **
  10  norm          5.1893        3.3689       -.56799E-06   -.15761E-04
  11  Prefactor     .10000E-03    2.9633        .48566E-06** at limit **
  12  Prefactor     .10000E-03    5.6435       -.46656E-05** at limit **
  13  Prefactor     .10000E-03    1.2734       -.31713E-07** at limit **
  14  norm          .10000E-03    5.4241        .50542E-05** at limit **
  15  Prefactor     .10000E-03    6.7456        .55087E-06** at limit **
  16  norm          16.377        7.7348       -.19748E-05    .50219E-05
  17  Prefactor     25.321        44.517       -.13253E-04    .81269E-05
  18  Prefactor     34.908        31.634       -.14765E-06    .14329E-04
  19  norm          5.1917        5.1425        .25396E-06    .17366E-03
  20  Prefactor     9.7461        9.4958       -.10080E-05    .27130E-04
  21  Prefactor     .10000E-03    2.9794       -.42766E-06** at limit **
  22  norm          4.2197        1.7866       -.27296E-06   -.27503E-02
  23  Prefactor     9.0785        12.928        .31362E-07   -.36273E-04
  24  Prefactor     .10000E-03    23.381       -.14258E-05** at limit **
  25  Normalizat    .57997        .16289        .21094E-05    .77775E-04
  26  Prefactor     1.2260        .19581        .26213E-05   -.30495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1422
  Prefactor  = 0.0001
  norm       = 3.81575
  Prefactor  = 3.08816
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3766
  Prefactor  = 25.3211
  Prefactor  = 34.908
  norm       = 5.19167
  Prefactor  = 9.74611
  Prefactor  = 0.0001
  norm       = 4.21974
  Prefactor  = 9.07852
  Prefactor  = 0.0001
  Normalizat = 0.57997
  Prefactor  = 1.22598
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.887     FROM HESSE     STATUS=OK           458 CALLS     3505 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.142        54.371        .96640E-04   -1.4880    
   2  Prefactor     .10000E-03    115.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8157        1.7813        .62447E-04   -1.5317    
   4  Prefactor     3.0882        3.1133        .12308E-03   -1.5356    
   5  norm          .10002E-03    27.292        .36222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7118        .15239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6817        .90881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8418        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1893        3.3678        .10303E-03   -1.5252    
  11  Prefactor     .10000E-03    2.9655        .12087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6680        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2883        .79199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.4336        .16355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.377        7.7320        .98974E-04   -1.4898    
  17  Prefactor     25.321        44.566        .79589E-04   -1.4701    
  18  Prefactor     34.908        31.634        .67829E-04   -1.4526    
  19  norm          5.1917        5.1491        .15836E-03   -1.5252    
  20  Prefactor     9.7461        9.4905        .12836E-03   -1.5083    
  21  Prefactor     .10000E-03    2.9854        .12112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2197        1.7921        .30018E-03   -1.5297    
  23  Prefactor     9.0785        12.928        .13303E-03   -1.5105    
  24  Prefactor     .10000E-03    23.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .57997        .19341        .26226E-03   -1.0884    
  26  Prefactor     1.2260        .23439        .22809E-03   -.85536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27797e-09
Minuit parameter uncertainties:
  1  54.5283
  2  0.000149609
  3  1.78128
  4  3.11351
  5  0.00129731
  6  1.56119e-06
  7  0.000107412
  8  4.80602e-06
  9  4.52686e-06
  10  3.36795
  11  1.77664e-06
  12  4.55399e-06
  13  4.58884e-06
  14  6.69761e-06
  15  3.07309e-06
  16  7.73244
  17  44.6246
  18  31.6491
  19  5.14954
  20  9.49196
  21  7.44552e-06
  22  1.79211
  23  12.9315
  24  2.39337e-06
  25  0.193637
  26  0.234586
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.777e-06  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.226e+00  2.346e-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:  5.800e-01  1.936e-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: 4.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342942/likelihoodResults_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.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) = 5168.88810614
delta logL = -0.0015648621893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5168.88654156
delta logL = -2.74872036243e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4424       1.0000          .0000       10.000    
     3 'Normalizat'    .58016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2258       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=   5168.887     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      264 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.172        .12535E-01** at limit **
   2  Index         1.6973        8.9920        .50000       -.77989E-08
   3  Normalizat    .57997        .70544E-02    .26226E-03    .46384E-04
   4  Prefactor     1.2260        .86949E-02    .22809E-03    .58525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69732
  Normalizat = 0.579969
  Prefactor  = 1.22598
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.887     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      293 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.98        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6973        5.8481        .50000       -.72153    
   3  Normalizat    .57997        .20066E-01    .10490E-04   -1.0884    
   4  Prefactor     1.2260        .24732E-01    .45619E-04   -.85535    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11669e-12
Minuit parameter uncertainties:
  1  7.88697e-06
  2  569.354
  3  0.0200661
  4  0.0247325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342942': 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) = 5168.88653407
delta logL = 7.21080687072e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.887e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.697e+00  5.694e+02  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.226e+00  2.473e-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:  5.800e-01  2.007e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/342942/cmap_HighResolution_474422401_474681601_4FGL_J1419.5+3821_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-09 09:41:30.980791', job_id='342942', GAL2='1.23', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1631205690.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='7.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='907' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 342942: <4FGL_J1419.5+3821_daily_bin907> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin907> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 09:30:27 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:30:28 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:30:28 2021
Terminated at Thu Sep  9 09:41:31 2021
Results reported at Thu Sep  9 09:41:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin907 214.894 38.3657 474422401 474681601 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 :                                   645.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            664 sec.

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

