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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1339
RA = 214.894, Dec = 38.3657
tmin = 586396801, tmax = 586656001
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='344706', job_status='RUN', time_executed='2021-09-09 09:38:06.568412', time_epoch_executed='1631205486.57' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344706

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344706/ft1_4FGL_J1419.5+3821_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344706/ft2_4FGL_J1419.5+3821_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344706/ft1_4FGL_J1419.5+3821_daily_bin1339.fits outfile=/scratch/kocevski/344706/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1339.fits ra=214.894 dec=38.3657 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.57
user 2.38
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344706/ft2_4FGL_J1419.5+3821_daily_bin1339.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/344706/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/344706/ft1_filtered_4FGL_J1419.5+3821_daily_bin1339.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.47
user 0.33
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344706/ft1_filtered_4FGL_J1419.5+3821_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/344706/ft2_4FGL_J1419.5+3821_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/344706/ltcube_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.fits outfile=/scratch/kocevski/344706/expmap_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.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/344706/ltcube_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.fits
.....................!
real 191.44
user 186.95
sys 4.17

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/344706/ft1_filtered_4FGL_J1419.5+3821_daily_bin1339.fits scfile=/scratch/kocevski/344706/ft2_4FGL_J1419.5+3821_daily_bin1339.fits outfile=/scratch/kocevski/344706/cmap_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344706/ft1_filtered_4FGL_J1419.5+3821_daily_bin1339.fits scfile=/scratch/kocevski/344706/ft2_4FGL_J1419.5+3821_daily_bin1339.fits outfile=/scratch/kocevski/344706/cmap_HighResolution_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9094       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.893       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6133       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.511       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.684       1.0000         .10000E-03   10000.    
    14 'norm      '    .10931E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.588       1.0000         .10000E-03   10000.    
    16 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.974       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.338       1.0000         .10000E-03   10000.    
    19 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9607       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6239       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84456       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1047       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=   3879.276     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     3026 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.919        .44609E-06** at limit **
   2  Prefactor     .10000E-03    46.709        .60712E-06** at limit **
   3  norm          3.4226        1.9600       -.14349E-06   -.12287E-03
   4  Prefactor     7.9090        7.1097       -.10626E-06    .13687E-04
   5  norm          .10000E-03    6.1850        .20857E-06** at limit **
   6  Prefactor     .10000E-03    7.7888        .11134E-06** at limit **
   7  Prefactor     20.694        70.610       -.28697E-05   -.46381E-04
   8  Prefactor     4.6165        5.7589       -.51267E-06   -.28095E-03
   9  Prefactor     18.516        27.310       -.89281E-06   -.53505E-04
  10  norm          .10000E-03    1.1694        .43324E-07** at limit **
  11  Prefactor     .10000E-03    7.0374        .10376E-06** at limit **
  12  Prefactor     .10000E-03    7.5797        .92697E-07** at limit **
  13  Prefactor     19.684        7.0089       -.12900E-06   -.59944E-04
  14  norm          .10000E-03    29.401       -.56763E-06** at limit **
  15  Prefactor     25.581        30.230       -.63537E-06   -.22306E-04
  16  norm          .10000E-03    6.0058       -.82774E-07** at limit **
  17  Prefactor     42.954        70.994       -.83902E-06   -.19585E-04
  18  Prefactor     33.335        43.660       -.31875E-06   -.12480E-04
  19  norm          .10000E-03    7.8191       -.41629E-07** at limit **
  20  Prefactor     4.9582        13.563        .18548E-06    .10927E-04
  21  Prefactor     2.6224        7.4052        .10024E-05    .12213E-03
  22  norm          .10000E-03    .55671        .83374E-07** at limit **
  23  Prefactor     .10000E-03    21.610        .99123E-06** at limit **
  24  Prefactor     .10000E-03    43.752        .20180E-06** at limit **
  25  Normalizat    .84426        .26492        .94791E-05   -.10444E-03
  26  Prefactor     1.1051        .28939       -.94213E-05   -.45237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42255
  Prefactor  = 7.90898
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6945
  Prefactor  = 4.61652
  Prefactor  = 18.5165
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6837
  norm       = 0.0001
  Prefactor  = 25.5805
  norm       = 0.0001
  Prefactor  = 42.9543
  Prefactor  = 33.335
  norm       = 0.0001
  Prefactor  = 4.95817
  Prefactor  = 2.62239
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.844262
  Prefactor  = 1.1051
 **********
 **   18 **HESSE 
 **********

 FCN=   3879.276     FROM HESSE     STATUS=OK           452 CALLS     3478 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4226        1.9597        .62949E-04   -1.5338    
   4  Prefactor     7.9090        7.1115        .14257E-03   -1.5145    
   5  norm          .10000E-03    6.1911        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7918        .16978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.694        70.950        .87628E-04   -1.4798    
   8  Prefactor     4.6165        5.7679        .15611E-03   -1.5278    
   9  Prefactor     18.516        27.269        .93090E-04   -1.4847    
  10  norm          .10000E-03    1.1701        .65777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.0506        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5862        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.684        7.0096        .90277E-04   -1.4820    
  14  norm          .10000E-03    30.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.581        30.228        .79193E-04   -1.4696    
  16  norm          .10000E-03    6.0665        .14897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.954        71.008        .61153E-04   -1.4396    
  18  Prefactor     33.335        43.668        .69400E-04   -1.4553    
  19  norm          .10000E-03    7.8578        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9582        13.517        .18057E-03   -1.5263    
  21  Prefactor     2.6224        7.3975        .25177E-03   -1.5384    
  22  norm          .10000E-03    .55964        .45353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84426        .26448        .25463E-03   -.98447    
  26  Prefactor     1.1051        .28967        .25917E-03   -.89304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52283e-10
Minuit parameter uncertainties:
  1  8.22036e-05
  2  9.7618e-05
  3  1.95976
  4  7.11227
  5  9.43639e-06
  6  6.63323e-06
  7  71.2418
  8  5.76859
  9  27.2868
  10  1.00155e-06
  11  3.93283e-06
  12  2.8079e-07
  13  7.00985
  14  8.79408e-05
  15  30.2458
  16  1.3317e-05
  17  71.1485
  18  43.7101
  19  2.05689e-07
  20  13.5252
  21  7.40013
  22  9.76239e-07
  23  0.00011531
  24  4.99669e-05
  25  0.264884
  26  0.290086
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.933e-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.105e+00  2.901e-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.443e-01  2.649e-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: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344706/likelihoodResults_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.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) = 3879.27649773
delta logL = -0.000673480366913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3879.27582427
delta logL = -1.82490111911e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4515       1.0000          .0000       10.000    
     3 'Normalizat'    .84425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1051       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=   3879.276     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10181E-03    79.045        .16417E-02** at limit **
   2  Index         2.3833        5.9443        .50000        .21332E-04
   3  Normalizat    .84426        .16890E-01    .25462E-03   -.13975E-04
   4  Prefactor     1.1051        .19498E-01    .25918E-03   -.96063E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010181
  Index      = 2.38335
  Normalizat = 0.844263
  Prefactor  = 1.1051
 **********
 **   18 **HESSE 
 **********

 FCN=   3879.276     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10181E-03    325.59        .32833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3833        8.7862        .50000       -.55075    
   3  Normalizat    .84426        .35761E-01    .10185E-04   -.98447    
   4  Prefactor     1.1051        .41284E-01    .10367E-04   -.89304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.97424e-08
Minuit parameter uncertainties:
  1  0.0488166
  2  659.654
  3  0.0357616
  4  0.0412849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344706': 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) = 3879.27582388
delta logL = 3.69063855032e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.018e-04  4.882e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.383e+00  6.597e+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.105e+00  4.128e-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.443e-01  3.576e-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/344706/cmap_HighResolution_586396801_586656001_4FGL_J1419.5+3821_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-09 09:47:18.265768', job_id='344706', GAL2='1.11', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631206038.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1339' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 344706: <4FGL_J1419.5+3821_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1339 214.894 38.3657 586396801 586656001 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 :                                   548.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.96 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.

