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


Performing analysis on: 4FGL_J1419.8+5423_daily_bin661
RA = 214.955, Dec = 54.3937
tmin = 410659201, tmax = 410918401
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='351174', job_status='RUN', time_executed='2021-09-09 09:55:37.489207', time_epoch_executed='1631206537.49' WHERE source_name='4FGL J1419.8+5423' and cadence='daily' and bin_id='661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351174/ft1_4FGL_J1419.8+5423_daily_bin661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351174/ft1_4FGL_J1419.8+5423_daily_bin661.fits outfile=/scratch/kocevski/351174/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin661.fits ra=214.955 dec=54.3937 rad=12.0 tmin=410659201.0 tmax=410918401.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 6.93
user 6.65
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.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/351174/ft1_filteredMKT_4FGL_J1419.8+5423_daily_bin661.fits evtable="EVENTS" outfile="/scratch/kocevski/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.fits" evtable="EVENTS" scfile=/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits sctable="SC_DATA" outfile=/scratch/kocevski/351174/ltcube_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.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/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits
.....................!
real 12.84
user 12.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.fits evtable="EVENTS" scfile=/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits sctable="SC_DATA" expcube=/scratch/kocevski/351174/ltcube_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.fits outfile=/scratch/kocevski/351174/expmap_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.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/351174/ltcube_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.fits
.....................!
real 190.90
user 185.29
sys 5.19

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/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.fits scfile=/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits outfile=/scratch/kocevski/351174/cmap_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.fits scfile=/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits outfile=/scratch/kocevski/351174/cmap_HighResolution_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.fits', '/scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits', expMap='/scratch/kocevski/351174/expmap_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.fits', expCube='/scratch/kocevski/351174/ltcube_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351174/Model_4FGL_J1419.8+5423_daily_bin661.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/351174/ft1_filtered_4FGL_J1419.8+5423_daily_bin661.fits
Spacecraft file(s): /scratch/kocevski/351174/ft2_4FGL_J1419.8+5423_daily_bin661.fits
Exposure map: /scratch/kocevski/351174/expmap_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.fits
Exposure cube: /scratch/kocevski/351174/ltcube_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351174/Model_4FGL_J1419.8+5423_daily_bin661.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) = 3804.91084988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6504       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.542       1.0000         .10000E-03   10000.    
    10 'norm      '    23.866       1.0000         .10000E-03   10000.    
    11 'norm      '    17.898       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    489.42       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3426       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2737       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.831       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62250E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .42436E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.905       1.0000         .10000E-03   10000.    
    26 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49152       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0467       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.2115       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .61287       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3804.591     FROM MIGRAD    STATUS=FAILED      1494 CALLS     5168 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.112        .18142E-02** at limit **
   2  norm          .10000E-03    2.8120        .10100E-02** at limit **
   3  Prefactor     .10000E-03    15.302        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.8713        .15791E-02** at limit **
   5  Prefactor     5.6471        63.858        .16899E-03    .21191E-05
   6  norm          .10000E-03    2.1187        .87590E-03** at limit **
   7  Prefactor     .10000E-03    42.797        .18142E-02** at limit **
   8  Prefactor     .10000E-03    264.93        .18142E-02** at limit **
   9  norm          17.540        3.6552        .51084E-04    .60088E-05
  10  norm          23.842        206.09        .81995E-04    .49914E-06
  11  norm          17.893        9.7316        .94670E-04    .30744E-03
  12  Prefactor     .10000E-03    53.075        .18142E-02** at limit **
  13  Prefactor     489.41        765.81        .92702E-04    .19622E-05
  14  Prefactor     .10000E-03    37.080        .18142E-02** at limit **
  15  Prefactor     .10000E-03    30.871        .18142E-02** at limit **
  16  Prefactor     4.3431        4.1236        .11784E-03    .46549E-04
  17  Prefactor     9.6590        21.525        .12883E-03   -.52111E-04
  18  Prefactor     .10000E-03    1.9166        .83112E-03** at limit **
  19  Prefactor     7.2380        51.301        .14872E-03    .49496E-04
  20  Prefactor     21.896        47.132        .85725E-04    .15421E-03
  21  Prefactor     .11636E-03    118.95        .16019    ** at limit **
  22  Prefactor     .10000E-03    30.185        .18142E-02** at limit **
  23  Prefactor     .10079E-03    46.432        .77602E-01** at limit **
  24  Prefactor     .10000E-03    38.600        .18142E-02** at limit **
  25  Prefactor     26.948        23.153        .77233E-04   -.20364E-03
  26  norm          .10000E-03    .83767        .10879E-03** at limit **
  27  Prefactor     .31208        923.41        .42827E-02    .48033E-03
  28  Prefactor     4.0443        5.5585        .15890E-03   -.77911E-04
  29  Prefactor     3.2753        49.433        .22607E-03    .25561E-03
  30  Normalizat    1.1214        .30006        .22675E-03    .24137E-03
  31  Prefactor     .61260        .27910        .31601E-03    .85749E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3804.591     FROM SIMPLEX   STATUS=UNCHANGED   1953 CALLS     7121 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.112        .69819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8120        .10181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.302        .22327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8713        .31052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.6471        63.858        .14082E-05   -1.5233    
   6  norm          .10000E-03    2.1187        .81200E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.797        .14467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    264.93        .21657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.540        3.6552        .13741E-05   -1.4870    
  10  norm          23.842        206.09        .13609E-05   -1.4731    
  11  norm          17.893        9.7316        .13733E-05   -1.4862    
  12  Prefactor     .10000E-03    53.075        .41735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     489.41        765.81        .10383E-05   -1.1247    
  14  Prefactor     .10000E-03    37.080        .54010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.871        .40430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3431        4.1236        .14130E-05   -1.5291    
  17  Prefactor     9.6590        21.525        .13948E-05   -1.5086    
  18  Prefactor     .10000E-03    1.9166        .15639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2380        51.301        .14043E-05   -1.5170    
  20  Prefactor     21.896        47.132        .13691E-05   -1.4772    
  21  Prefactor     .11636E-03    118.95        .10440E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.185        .63205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10079E-03    46.432        .94291E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.600        .88473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.948        23.153        .13560E-05   -1.4669    
  26  norm          .10000E-03    .83767        .49521E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .31208        923.41        .14530E-05   -1.5596    
  28  Prefactor     4.0443        5.5585        .14144E-05   -1.5306    
  29  Prefactor     3.2753        49.433        .14178E-05   -1.5346    
  30  Normalizat    1.1214        .30006        .82301E-06   -.89067    
  31  Prefactor     .61260        .27910        .98932E-06   -1.0706    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3804.591     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     7739 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.113        .36285E-03** at limit **
   2  norm          .10000E-03    2.8120        .20200E-03** at limit **
   3  Prefactor     .10000E-03    15.302        .36285E-03** at limit **
   4  Prefactor     .10000E-03    6.8713        .31582E-03** at limit **
   5  Prefactor     5.6469        63.816        .67597E-05    .18500E-05
   6  norm          .10000E-03    2.1187        .17518E-03** at limit **
   7  Prefactor     .10000E-03    42.797        .36285E-03** at limit **
   8  Prefactor     .10000E-03    265.04        .36285E-03** at limit **
   9  norm          17.540        3.6544        .20434E-05    .43397E-04
  10  norm          23.842        206.05        .16399E-04    .34663E-06
  11  norm          17.893        9.7291        .18934E-04    .20829E-03
  12  Prefactor     .10000E-03    53.076        .36285E-03** at limit **
  13  Prefactor     489.41        765.74        .18540E-04    .20235E-05
  14  Prefactor     .10000E-03    37.082        .36285E-03** at limit **
  15  Prefactor     .10000E-03    30.872        .36285E-03** at limit **
  16  Prefactor     4.3431        4.1234        .47136E-05    .67774E-04
  17  Prefactor     9.6589        21.516        .51530E-05    .24268E-05
  18  Prefactor     .10000E-03    1.9166        .16622E-03** at limit **
  19  Prefactor     7.2383        51.234        .59489E-05    .91349E-04
  20  Prefactor     21.896        46.937        .17145E-04    .21265E-03
  21  Prefactor     .11599E-03    126.74        .15323    ** at limit **
  22  Prefactor     .10000E-03    30.186        .36285E-03** at limit **
  23  Prefactor     .10074E-03    39.008        .86027E-01** at limit **
  24  Prefactor     .10000E-03    38.606        .36285E-03** at limit **
  25  Prefactor     26.949        23.131        .15447E-04    .12703E-03
  26  norm          .10000E-03    .83768        .21757E-04** at limit **
  27  Prefactor     .30705        668.23        .17131E-02    .13474E-03
  28  Prefactor     4.0443        5.5570        .63562E-05    .54552E-04
  29  Prefactor     3.2783        35.505        .90429E-05    .66983E-03
  30  Normalizat    1.1214        .29997        .45351E-04    .73405E-03
  31  Prefactor     .61260        .27933        .12640E-04    .39187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64692
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5402
  norm       = 23.842
  norm       = 17.8926
  Prefactor  = 0.0001
  Prefactor  = 489.407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34313
  Prefactor  = 9.65894
  Prefactor  = 0.0001
  Prefactor  = 7.23831
  Prefactor  = 21.8964
  Prefactor  = 0.000115987
  Prefactor  = 0.0001
  Prefactor  = 0.000100744
  Prefactor  = 0.0001
  Prefactor  = 26.9486
  norm       = 0.0001
  Prefactor  = 0.307054
  Prefactor  = 4.04429
  Prefactor  = 3.27826
  Normalizat = 1.12141
  Prefactor  = 0.6126
 **********
 **   18 **HESSE 
 **********

 FCN=   3804.591     FROM HESSE     STATUS=OK           610 CALLS     8349 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.113        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8120        .40401E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.302        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8713        .63164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.6469        63.449        .13519E-05   -1.5233    
   6  norm          .10000E-03    2.1187        .35036E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.797        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    265.04        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.540        3.6535        .40867E-06   -1.4870    
  10  norm          23.842        204.67        .32798E-05   -1.4731    
  11  norm          17.893        9.7269        .37868E-05   -1.4862    
  12  Prefactor     .10000E-03    53.076        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     489.41        765.59        .37081E-05   -1.1247    
  14  Prefactor     .10000E-03    37.082        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.872        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3431        4.1234        .94272E-06   -1.5291    
  17  Prefactor     9.6589        21.539        .10306E-05   -1.5086    
  18  Prefactor     .10000E-03    1.9166        .33245E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2383        50.688        .11898E-05   -1.5170    
  20  Prefactor     21.896        46.790        .34290E-05   -1.4772    
  21  Prefactor     .11599E-03    123.91        .15572       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.186        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10074E-03    41.837        .82537E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.606        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.949        23.138        .30893E-05   -1.4669    
  26  norm          .10000E-03    .83767        .43514E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .30705        554.52        .68522E-04   -1.5597    
  28  Prefactor     4.0443        5.5556        .12712E-05   -1.5306    
  29  Prefactor     3.2783        30.189        .18086E-05   -1.5346    
  30  Normalizat    1.1214        .30023        .90701E-05   -.89067    
  31  Prefactor     .61260        .27941        .25281E-05   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64547e-09
Minuit parameter uncertainties:
  1  7.42248e-07
  2  4.09692e-07
  3  3.82638e-06
  4  9.03696e-07
  5  37.9078
  6  8.30663e-07
  7  6.84048e-05
  8  0.000440198
  9  3.65355
  10  140.361
  11  9.72777
  12  6.33436e-05
  13  782.643
  14  2.12711e-05
  15  4.06374e-05
  16  4.12366
  17  21.5567
  18  4.29982e-06
  19  38.3552
  20  46.8688
  21  0.0892003
  22  4.40442e-06
  23  0.0111678
  24  1.60046e-05
  25  23.1454
  26  2.07616e-07
  27  26.3409
  28  5.55632
  29  19.9095
  30  0.300689
  31  0.280041
Done.

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

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  4.300e-06  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.126e-01  2.800e-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.121e+00  3.007e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351174/likelihoodResults_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.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) = 3804.59332629
delta logL = -0.00244848213788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3804.5908778
delta logL = 5.39785105502e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3720       1.0000          .0000       10.000    
     3 'Normalizat'    1.1214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61262       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3804.591     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      269 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18122E-01    .15627E-01** at limit **
   2  Index         4.4071        7.1671        .50000        .37798E-05
   3  Normalizat    1.1214        .17010E-02    .22675E-03    .16812E-02
   4  Prefactor     .61260        .18061E-02    .31601E-03    .31592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 4.40708
  Normalizat = 1.1214
  Prefactor  = 0.612599
 **********
 **   18 **HESSE 
 **********

 FCN=   3804.591     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      308 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .71236E-01    .80498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4071        6.9146        .50000       -.11886    
   3  Normalizat    1.1214        .20309E-02    .45350E-04   -.89068    
   4  Prefactor     .61260        .21563E-02    .12640E-04   -1.0706    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.6681e-11
Minuit parameter uncertainties:
  1  1.59649e-06
  2  9.61888
  3  0.00203089
  4  0.00215631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351174': 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) = 3804.59085913
delta logL = 1.86792781278e-05

Extracting fit parameters...

4FGL J1419.8+5423
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.596e-06  1.000e-04  1.000e+04 ( 1.000e-12)
333        Index:  4.407e+00  9.619e+00  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.126e-01  2.156e-03  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.121e+00  2.031e-03  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/351174/cmap_HighResolution_410659201_410918401_4FGL_J1419.8+5423_daily_bin661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-09 10:11:18.077312', job_id='351174', GAL2='0.61', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1631207478.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.87e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='661' AND source_name='4FGL J1419.8+5423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 10:11:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 351174: <4FGL_J1419.8+5423_daily_bin661> in cluster <slac> Done

Job <4FGL_J1419.8+5423_daily_bin661> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 09:55:24 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:55:26 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:55:26 2021
Terminated at Thu Sep  9 10:11:18 2021
Results reported at Thu Sep  9 10:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.8+5423_daily_bin661 214.955 54.3937 410659201 410918401 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 :                                   932.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

