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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin3
RA = 214.955, Dec = 54.3937
tmin = 240105601, tmax = 240364801
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='346446', job_status='RUN', time_executed='2021-09-09 09:41:34.199381', time_epoch_executed='1631205694.2' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346446/ft1_4FGL_J1419.8+5423_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346446/ft1_4FGL_J1419.8+5423_daily_bin3.fits outfile=/scratch/kocevski/346446/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin3.fits ra=214.955 dec=54.3937 rad=12.0 tmin=240105601.0 tmax=240364801.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.45
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.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/346446/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin3.fits evtable="EVENTS" outfile="/scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.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/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/346446/ltcube_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.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/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits
.....................!
real 12.93
user 12.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/346446/ltcube_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.fits outfile=/scratch/kocevski/346446/expmap_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.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/346446/ltcube_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.fits
.....................!
real 191.45
user 185.77
sys 5.20

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 214 point sources and 0 extended sources

Setting source of interest to:
4FGL J1419.8+5423 @ 214.955 54.3937

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits scfile=/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits outfile=/scratch/kocevski/346446/cmap_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.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.955 yref=54.3937 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.62
user 0.38
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits scfile=/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits outfile=/scratch/kocevski/346446/cmap_HighResolution_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.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.955 yref=54.3937 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/346446/Model_4FGL_J1419.8+5423_daily_bin3.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/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits.....................!
real 43.23
user 41.83
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits', '/scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits', expMap='/scratch/kocevski/346446/expmap_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.fits', expCube='/scratch/kocevski/346446/ltcube_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346446/Model_4FGL_J1419.8+5423_daily_bin3.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.8+5423'

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  2.306e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/346446/ft1_filtered_4FGL_J1419.8+5423_daily_bin3.fits
Spacecraft file(s): /scratch/kocevski/346446/ft2_4FGL_J1419.8+5423_daily_bin3.fits
Exposure map: /scratch/kocevski/346446/expmap_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.fits
Exposure cube: /scratch/kocevski/346446/ltcube_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346446/Model_4FGL_J1419.8+5423_daily_bin3.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) = 4975.95674861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .43380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.045       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.124       1.0000         .10000E-03   10000.    
     6 'norm      '    .32042E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.009       1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.053       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8993       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8586       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.258       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.209       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.8098       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0667       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4975.921     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4929 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2365       -.58292E-07** at limit **
   2  norm          .10000E-03    6.5243       -.17421E-06** at limit **
   3  Prefactor     .10000E-03    19.832       -.36573E-06** at limit **
   4  Prefactor     50.132        26.858        .21123E-05    .82714E-04
   5  Prefactor     30.093        41.483        .71979E-06    .63592E-05
   6  norm          .10164E-03    3.4183       -.60112E-06** at limit **
   7  Prefactor     64.913        71.507       -.62892E-06   -.48693E-04
   8  Prefactor     41.074        43.135       -.17372E-06    .16498E-04
   9  norm          2.8995        1.7635        .79423E-08    .20918E-04
  10  norm          .10000E-03    38.913       -.22496E-06** at limit **
  11  norm          .10000E-03    2.6691       -.48809E-06** at limit **
  12  Prefactor     .10000E-03    17.914        .38968E-07** at limit **
  13  Prefactor     .10000E-03    222.38       -.25480E-06** at limit **
  14  Prefactor     .10000E-03    14.675        .69840E-09** at limit **
  15  Prefactor     39.093        49.338       -.85924E-06   -.10910E-04
  16  Prefactor     1.8581        5.4693        .98628E-06   -.39946E-04
  17  Prefactor     17.040        26.831       -.72013E-06   -.43822E-06
  18  Prefactor     .10000E-03    1.6940        .56823E-06** at limit **
  19  Prefactor     12.256        18.922       -.43026E-07   -.23234E-04
  20  Prefactor     2.1018        88.629       -.23288E-05   -.57302E-04
  21  Prefactor     .10000E-03    128.07        .53048E-06** at limit **
  22  Prefactor     33.208        30.126       -.21581E-07   -.10878E-04
  23  Prefactor     .10000E-03    11.559        .16428E-06** at limit **
  24  Prefactor     8.8082        14.229        .42134E-07   -.32242E-05
  25  Prefactor     .10000E-03    9.8171        .16142E-06** at limit **
  26  norm          .10000E-03    1.0156        .29610E-06** at limit **
  27  Prefactor     4.0669        6.8813        .11498E-06   -.36393E-04
  28  Prefactor     .10000E-03    1.2576        .28364E-07** at limit **
  29  Prefactor     .10000E-03    4.4440        .11732E-06** at limit **
  30  Normalizat    1.2674        .19993        .15928E-05   -.18274E-03
  31  Prefactor     .61338        .21307       -.25882E-05    .24028E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 50.1322
  Prefactor  = 30.093
  norm       = 0.000101638
  Prefactor  = 64.9126
  Prefactor  = 41.074
  norm       = 2.89952
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0931
  Prefactor  = 1.85811
  Prefactor  = 17.0403
  Prefactor  = 0.0001
  Prefactor  = 12.2561
  Prefactor  = 2.1018
  Prefactor  = 0.0001
  Prefactor  = 33.2079
  Prefactor  = 0.0001
  Prefactor  = 8.8082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.06687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26736
  Prefactor  = 0.613382
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.921     FROM HESSE     STATUS=OK           630 CALLS     5559 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2371        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    27.798        .34805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.132        31.882        .56688E-04   -1.4291    
   5  Prefactor     30.093        41.479        .72999E-04   -1.4610    
   6  norm          .10164E-03    10.035        .40092E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.913        71.397        .24887E-03   -1.4095    
   8  Prefactor     41.074        43.223        .62562E-04   -1.4425    
   9  norm          2.8995        1.7582        .70126E-04   -1.5367    
  10  norm          .10000E-03    38.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7111        .11211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    222.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.093        48.954        .64114E-04   -1.4457    
  16  Prefactor     1.8581        5.3396        .25453E-03   -1.5435    
  17  Prefactor     17.040        26.829        .97053E-04   -1.4882    
  18  Prefactor     .10000E-03    2.1974        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.256        18.865        .11441E-03   -1.5008    
  20  Prefactor     2.1018        76.880        .28852E-03   -1.5418    
  21  Prefactor     .10000E-03    128.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.208        30.101        .69535E-04   -1.4555    
  23  Prefactor     .10000E-03    11.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.8082        14.222        .13504E-03   -1.5114    
  25  Prefactor     .10000E-03    9.8643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.5904        .13561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.0669        6.8683        .19994E-03   -1.5305    
  28  Prefactor     .10000E-03    1.2586        .77250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.4950        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2674        .22402        .20361E-03   -.84546    
  31  Prefactor     .61338        .23535        .31654E-03   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11836e-09
Minuit parameter uncertainties:
  1  2.83541e-07
  2  0.000300354
  3  6.00764e-06
  4  31.8928
  5  41.5192
  6  0.00810918
  7  71.4911
  8  43.256
  9  1.75823
  10  1.18392e-05
  11  7.47683e-06
  12  1.02849e-06
  13  0.000455323
  14  2.27372e-06
  15  49.0044
  16  5.34094
  17  26.8476
  18  2.61882e-05
  19  18.874
  20  25.4581
  21  0.000232462
  22  30.1148
  23  1.21556e-05
  24  14.2272
  25  1.30211e-05
  26  2.90279e-05
  27  6.86965
  28  6.92426e-07
  29  5.26151e-06
  30  0.224191
  31  0.23573
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  2.619e-05  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  2.365e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  6.134e-01  2.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.267e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.955 54.394
Photon Flux Upper Limit: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346446/likelihoodResults_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.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) = 4975.92352384
delta logL = -0.00216679381265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4975.92136397
delta logL = -6.9264206104e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13852E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3243       1.0000          .0000       10.000    
     3 'Normalizat'    1.2673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61353       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4975.921     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      236 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .94332        .37692E-01** at limit **
   2  Index         1.8884        8.7896        .50000       -.44856E-06
   3  Normalizat    1.2674        .30119E-02    .33418E-01    .15682E-03
   4  Prefactor     .61338        .33908E-02    .71512E-01    .19182E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88844
  Normalizat = 1.26736
  Prefactor  = 0.613382
 **********
 **   18 **HESSE 
 **********

 FCN=   4975.921     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.968        .19455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8884        5.4838        .50000       -.67169    
   3  Normalizat    1.2674        .18197E-01    .20361E-03   -.84546    
   4  Prefactor     .61338        .20443E-01    .31655E-03   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28192e-09
Minuit parameter uncertainties:
  1  7.2084e-05
  2  229.255
  3  0.0181968
  4  0.020443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346446': 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) = 4975.9213475
delta logL = 9.54244933382e-06

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  7.208e-05  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  1.888e+00  2.293e+02  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  8.561e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  6.134e-01  2.044e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.267e+00  1.820e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.955 54.394

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/346446/cmap_HighResolution_240105601_240364801_4FGL_J1419.8+5423_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-09 09:56:48.184475', job_id='346446', GAL2='0.61', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631206608.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='9.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='3' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 346446: <4FGL_J1419.8+5423_daily_bin3> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin3> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:40:50 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:40:52 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:40:52 2021
Terminated at Thu Sep  9 09:56:48 2021
Results reported at Thu Sep  9 09:56:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin3 214.955 54.3937 240105601 240364801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.8+5423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   912.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

