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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1325
RA = 214.894, Dec = 38.3657
tmin = 582768001, tmax = 583027201
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='344686', job_status='RUN', time_executed='2021-09-09 09:35:58.255061', time_epoch_executed='1631205358.26' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344686/ft1_4FGL_J1419.5+3821_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344686/ft2_4FGL_J1419.5+3821_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344686/ft1_4FGL_J1419.5+3821_daily_bin1325.fits outfile=/scratch/kocevski/344686/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1325.fits ra=214.894 dec=38.3657 rad=12.0 tmin=582768001.0 tmax=583027201.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.57
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344686/ft2_4FGL_J1419.5+3821_daily_bin1325.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/344686/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1325.fits evtable="EVENTS" outfile="/scratch/kocevski/344686/ft1_filtered_4FGL_J1419.5+3821_daily_bin1325.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344686/ft1_filtered_4FGL_J1419.5+3821_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/344686/ft2_4FGL_J1419.5+3821_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/344686/ltcube_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.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/344686/ft2_4FGL_J1419.5+3821_daily_bin1325.fits
.....................!
real 11.82
user 11.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344686/ft1_filtered_4FGL_J1419.5+3821_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/344686/ft2_4FGL_J1419.5+3821_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/344686/ltcube_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.fits outfile=/scratch/kocevski/344686/expmap_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.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/344686/ltcube_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.fits
.....................!
real 190.15
user 184.98
sys 4.82

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/344686/ft1_filtered_4FGL_J1419.5+3821_daily_bin1325.fits scfile=/scratch/kocevski/344686/ft2_4FGL_J1419.5+3821_daily_bin1325.fits outfile=/scratch/kocevski/344686/cmap_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5928       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0087       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1264       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    81.369       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.648       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.884       1.0000         .10000E-03   10000.    
    19 'norm      '    16.289       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13336E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3013       1.0000         .10000E-03   10000.    
    22 'norm      '    .73510       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.770       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89676       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=   7487.196     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3097 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.537       -.25145E-06** at limit **
   2  Prefactor     .10000E-03    46.276        .33055E-06** at limit **
   3  norm          21.805        2.9120        .72863E-08    .32661E-03
   4  Prefactor     .10000E-03    1.0790        .72179E-07** at limit **
   5  norm          3.5915        11.400       -.31734E-06   -.10733E-05
   6  Prefactor     .10000E-03    7.2581        .83771E-07** at limit **
   7  Prefactor     8.0616        89.543        .89216E-05   -.68376E-04
   8  Prefactor     .15337        18.108       -.70023E-05    .37037E-03
   9  Prefactor     3.0154        23.350       -.35664E-05    .36563E-04
  10  norm          1.1277        2.4955        .14187E-05    .10184E-02
  11  Prefactor     .10000E-03    5.7469        .67275E-07** at limit **
  12  Prefactor     .10000E-03    7.9349        .10087E-06** at limit **
  13  Prefactor     81.367        9.2373       -.10187E-06   -.15646E-03
  14  norm          .10000E-03    6.6365       -.62308E-11** at limit **
  15  Prefactor     41.644        25.783       -.69096E-07    .51273E-04
  16  norm          5.1621        4.8181       -.17312E-07    .16481E-03
  17  Prefactor     .10000E-03    18.388        .37069E-06** at limit **
  18  Prefactor     57.950        39.592       -.80446E-06   -.35876E-03
  19  norm          16.294        9.8490        .90903E-07    .35372E-04
  20  Prefactor     .10001E-03    42.188        .10830E-04** at limit **
  21  Prefactor     3.3085        12.076       -.29874E-05   -.89798E-04
  22  norm          .73487        2.1436        .10816E-05    .50137E-03
  23  Prefactor     19.771        12.261       -.12937E-06    .19965E-04
  24  Prefactor     .10000E-03    34.904        .26816E-06** at limit **
  25  Normalizat    1.0293        .19306        .40679E-06   -.22041E-03
  26  Prefactor     .89700        .20639       -.13172E-06    .28703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 21.8055
  Prefactor  = 0.0001
  norm       = 3.59145
  Prefactor  = 0.0001
  Prefactor  = 8.0616
  Prefactor  = 0.153368
  Prefactor  = 3.01543
  norm       = 1.12767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.3667
  norm       = 0.0001
  Prefactor  = 41.6436
  norm       = 5.16214
  Prefactor  = 0.0001
  Prefactor  = 57.9502
  norm       = 16.294
  Prefactor  = 0.000100011
  Prefactor  = 3.30847
  norm       = 0.734866
  Prefactor  = 19.7707
  Prefactor  = 0.000100001
  Normalizat = 1.02931
  Prefactor  = 0.897002
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.196     FROM HESSE     STATUS=OK           466 CALLS     3563 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.805        2.9176        .51674E-04   -1.4774    
   4  Prefactor     .10000E-03    1.0817        .87756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5915        11.384        .21319E-03   -1.5329    
   6  Prefactor     .10000E-03    7.2634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0616        92.883        .14185E-03   -1.5140    
   8  Prefactor     .15337        38.928        .32905E-02   -1.5630    
   9  Prefactor     3.0154        23.880        .11700E-02   -1.5361    
  10  norm          1.1277        2.2897        .21632E-02   -1.5496    
  11  Prefactor     .10000E-03    5.7615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     81.367        9.2392        .44526E-04   -1.3901    
  14  norm          .10000E-03    6.6530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.644        25.873        .62115E-04   -1.4416    
  16  norm          5.1621        4.8114        .17696E-03   -1.5254    
  17  Prefactor     .10000E-03    18.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     57.950        39.768        .26365E-03   -1.4184    
  19  norm          16.294        9.7357        .99236E-04   -1.4900    
  20  Prefactor     .10001E-03    63.026        .56974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3085        11.091        .22282E-03   -1.5344    
  22  norm          .73487        1.9860        .15061E-03   -1.5537    
  23  Prefactor     19.771        12.267        .90080E-04   -1.4818    
  24  Prefactor     .10000E-03    34.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0293        .22628        .26839E-03   -.92055    
  26  Prefactor     .89700        .24277        .32686E-03   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82434e-09
Minuit parameter uncertainties:
  1  0.000234054
  2  6.75524e-05
  3  2.91757
  4  2.16378e-06
  5  11.391
  6  4.51738e-06
  7  54.8348
  8  4.88847
  9  16.9807
  10  2.28988
  11  1.60954e-05
  12  2.91243e-05
  13  9.23935
  14  1.90049e-05
  15  25.8804
  16  4.81173
  17  0.000131082
  18  39.7858
  19  9.73666
  20  0.00164088
  21  11.0975
  22  1.98614
  23  12.2683
  24  0.000285012
  25  0.22649
  26  0.243066
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.610e-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:  8.970e-01  2.431e-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.029e+00  2.265e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344686/likelihoodResults_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.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) = 7487.19704706
delta logL = -0.000826203319775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7487.19622083
delta logL = 2.64853952103e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4600       1.0000          .0000       10.000    
     3 'Normalizat'    1.0293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89699       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=   7487.196     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      230 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    369.40        .18142E-01** at limit **
   2  Index         1.9889        8.9492        .47358E-01    .98905E-07
   3  Normalizat    1.0293        .34570E-01    .26840E-03    .56124E-04
   4  Prefactor     .89699        .39745E-01    .32686E-03    .71789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9889
  Normalizat = 1.02932
  Prefactor  = 0.896993
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.196     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6201        .21677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9889        5.9653        .18943E-02   -.64628    
   3  Normalizat    1.0293        .20809        .10736E-04   -.92055    
   4  Prefactor     .89699        .23922        .13074E-04   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9734e-11
Minuit parameter uncertainties:
  1  5.06872e-05
  2  310.054
  3  0.208259
  4  0.239502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344686': 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) = 7487.19621975
delta logL = 1.10166456579e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.069e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.989e+00  3.101e+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:  8.970e-01  2.395e-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.029e+00  2.083e-01  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/344686/cmap_HighResolution_582768001_583027201_4FGL_J1419.5+3821_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-09 09:49:50.883557', job_id='344686', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631206190.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1325' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:49:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 344686: <4FGL_J1419.5+3821_daily_bin1325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1325 214.894 38.3657 582768001 583027201 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 :                                   828.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

