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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin89
RA = 214.894, Dec = 38.3657
tmin = 262396801, tmax = 262656001
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='338861', job_status='RUN', time_executed='2021-09-09 09:18:51.936394', time_epoch_executed='1631204331.94' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338861

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338861/ft1_4FGL_J1419.5+3821_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338861/ft2_4FGL_J1419.5+3821_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338861/ft1_4FGL_J1419.5+3821_daily_bin89.fits outfile=/scratch/kocevski/338861/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin89.fits ra=214.894 dec=38.3657 rad=12.0 tmin=262396801.0 tmax=262656001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.39
user 1.21
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338861/ft1_filtered_4FGL_J1419.5+3821_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/338861/ft2_4FGL_J1419.5+3821_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/338861/ltcube_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.fits outfile=/scratch/kocevski/338861/expmap_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.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/338861/ltcube_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.fits
.....................!
real 190.29
user 185.09
sys 4.87

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/338861/ft1_filtered_4FGL_J1419.5+3821_daily_bin89.fits scfile=/scratch/kocevski/338861/ft2_4FGL_J1419.5+3821_daily_bin89.fits outfile=/scratch/kocevski/338861/cmap_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338861/ft1_filtered_4FGL_J1419.5+3821_daily_bin89.fits scfile=/scratch/kocevski/338861/ft2_4FGL_J1419.5+3821_daily_bin89.fits outfile=/scratch/kocevski/338861/cmap_HighResolution_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.274       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.388       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.167       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .98132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3597       1.0000         .10000E-03   10000.    
    22 'norm      '    .10762E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4192       1.0000         .10000E-03   10000.    
    24 'Prefactor '    53.150       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81331       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1020       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=   4285.493     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3054 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.804       -.11846E-06** at limit **
   2  Prefactor     34.194        68.990       -.21590E-05   -.74838E-04
   3  norm          .10000E-03    .39801       -.12309E-07** at limit **
   4  Prefactor     .10000E-03    .83602        .49251E-07** at limit **
   5  norm          .10000E-03    17.309       -.46670E-06** at limit **
   6  Prefactor     .10000E-03    6.3087       -.49069E-07** at limit **
   7  Prefactor     61.411        60.867        .39731E-07    .18531E-04
   8  Prefactor     .10000E-03    1.8723       -.83797E-07** at limit **
   9  Prefactor     32.142        26.162       -.10177E-05   -.99298E-04
  10  norm          2.2939        5.0058        .65104E-06    .12641E-03
  11  Prefactor     .10000E-03    25.791       -.19048E-07** at limit **
  12  Prefactor     .98761        17.176       -.26937E-06   -.28865E-04
  13  Prefactor     .10000E-03    2.4998        .43306E-06** at limit **
  14  norm          .10000E-03    9.5309        .81945E-07** at limit **
  15  Prefactor     .10000E-03    12.249       -.60142E-07** at limit **
  16  norm          11.328        8.1360       -.32795E-06   -.17298E-03
  17  Prefactor     .10000E-03    25.959        .16238E-06** at limit **
  18  Prefactor     .10000E-03    12.393        .23613E-06** at limit **
  19  norm          .10000E-03    4.0240        .61346E-07** at limit **
  20  Prefactor     .10000E-03    5.4137        .21827E-06** at limit **
  21  Prefactor     8.3748        7.7219       -.65414E-06   -.56700E-03
  22  norm          .10000E-03    1.5712        .89778E-06** at limit **
  23  Prefactor     1.4080        33.939        .36727E-05    .52187E-04
  24  Prefactor     53.162        82.177       -.10402E-05   -.58703E-04
  25  Normalizat    .81434        .23295        .61483E-05   -.42289E-03
  26  Prefactor     1.1010        .25752       -.71898E-05   -.24556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.1937
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4111
  Prefactor  = 0.0001
  Prefactor  = 32.1425
  norm       = 2.2939
  Prefactor  = 0.0001
  Prefactor  = 0.987608
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.37478
  norm       = 0.0001
  Prefactor  = 1.40802
  Prefactor  = 53.1615
  Normalizat = 0.814342
  Prefactor  = 1.10103
 **********
 **   18 **HESSE 
 **********

 FCN=   4285.493     FROM HESSE     STATUS=OK           446 CALLS     3500 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.194        69.292        .68449E-04   -1.4538    
   3  norm          .10000E-03    .40166        .40314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .83674        .58460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3099        .16058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.411        60.908        .25606E-03   -1.4139    
   8  Prefactor     .10000E-03    1.8739        .87461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.142        26.165        .70649E-04   -1.4573    
  10  norm          2.2939        4.9898        .20331E-03   -1.5405    
  11  Prefactor     .10000E-03    25.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .98761        63.792        .48913E-02   -1.5509    
  13  Prefactor     .10000E-03    2.5503        .10114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.5451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.328        8.1081        .11901E-03   -1.5035    
  17  Prefactor     .10000E-03    25.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0372        .12826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4243        .14880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3748        7.6373        .13865E-03   -1.5129    
  22  norm          .10000E-03    3.6899        .14956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4080        35.445        .36322E-03   -1.5471    
  24  Prefactor     53.162        81.975        .55015E-04   -1.4248    
  25  Normalizat    .81434        .23743        .23061E-03   -.99539    
  26  Prefactor     1.1010        .26264        .23856E-03   -.89434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6187e-08
Minuit parameter uncertainties:
  1  1.27887e-05
  2  69.4562
  3  1.71467e-07
  4  1.05341e-06
  5  2.84029e-05
  6  8.77197e-06
  7  60.9695
  8  1.90174e-06
  9  26.1741
  10  4.99074
  11  3.13041e-05
  12  15.8916
  13  1.52282e-05
  14  1.56692e-05
  15  1.61703e-05
  16  8.10885
  17  2.30655e-05
  18  9.55932e-06
  19  5.12885e-06
  20  1.52324e-05
  21  7.63822
  22  8.28862e-05
  23  14.1378
  24  82.1501
  25  0.237735
  26  0.262945
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.130e-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.101e+00  2.629e-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.143e-01  2.377e-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: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338861/likelihoodResults_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.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) = 4285.49298088
delta logL = -0.000184052942132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4285.4927954
delta logL = 1.42899898492e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12457E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8849       1.0000          .0000       10.000    
     3 'Normalizat'    .81434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1010       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=   4285.491     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      315 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19286        3.1497        .54881E-01    .34583E-03
   2  Index         3.4742        .70092        .50000        .15419E-05
   3  Normalizat    .81024        .61395E-02    .43797E-01    .11313E-05
   4  Prefactor     1.1038        .73146E-02    .53899E-01   -.13709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.192862
  Index      = 3.47422
  Normalizat = 0.810243
  Prefactor  = 1.10377
 **********
 **   18 **HESSE 
 **********

 FCN=   4285.491     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      350 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19286        2018.4        .16227E-02   -1.5620    
   2  Index         3.4742        6.4092        .67537E-02   -.31010    
   3  Normalizat    .81024        .31177        .23113E-03   -.99690    
   4  Prefactor     1.1038        .23443        .23831E-03   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44874e-06
Minuit parameter uncertainties:
  1  40.9142
  2  68.3039
  3  0.312465
  4  0.234652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338861': 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) = 4285.49069486
delta logL = 0.00210196433909

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.929e-01  4.091e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.474e+00  6.830e+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.104e+00  2.347e-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.102e-01  3.125e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/338861/cmap_HighResolution_262396801_262656001_4FGL_J1419.5+3821_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-09 09:28:37.365305', job_id='338861', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631204917.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.10e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='89' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:28:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 338861: <4FGL_J1419.5+3821_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin89 214.894 38.3657 262396801 262656001 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 :                                   585.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

