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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin38
RA = 214.894, Dec = 38.3657
tmin = 249177601, tmax = 249436801
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='338780', job_status='RUN', time_executed='2021-09-09 09:18:56.627177', time_epoch_executed='1631204336.63' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338780/ft1_4FGL_J1419.5+3821_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338780/ft2_4FGL_J1419.5+3821_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338780/ft1_4FGL_J1419.5+3821_daily_bin38.fits outfile=/scratch/kocevski/338780/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin38.fits ra=214.894 dec=38.3657 rad=12.0 tmin=249177601.0 tmax=249436801.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.43
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338780/ft1_filtered_4FGL_J1419.5+3821_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/338780/ft2_4FGL_J1419.5+3821_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/338780/ltcube_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.fits outfile=/scratch/kocevski/338780/expmap_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.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/338780/ltcube_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.fits
.....................!
real 189.73
user 184.94
sys 4.41

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/338780/ft1_filtered_4FGL_J1419.5+3821_daily_bin38.fits scfile=/scratch/kocevski/338780/ft2_4FGL_J1419.5+3821_daily_bin38.fits outfile=/scratch/kocevski/338780/cmap_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338780/ft1_filtered_4FGL_J1419.5+3821_daily_bin38.fits scfile=/scratch/kocevski/338780/ft2_4FGL_J1419.5+3821_daily_bin38.fits outfile=/scratch/kocevski/338780/cmap_HighResolution_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    138.53       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9765       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11800E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73698E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.858       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1638       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47944       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4289.103     FROM MIGRAD    STATUS=CONVERGED   1081 CALLS     4064 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     138.54        82.520        .17112E-03    .17290E-03
   2  Prefactor     .10000E-03    37.981        .18142E-02** at limit **
   3  norm          .10000E-03    .83120        .10010E-02** at limit **
   4  Prefactor     2.9774        3.9366        .14328E-03    .23169E-04
   5  norm          8.9959        13.078        .66820E-03   -.34412E-03
   6  Prefactor     13.360        18.676        .10959E-03    .19140E-03
   7  Prefactor     .10000E-03    30.125        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.9909        .25208E-03** at limit **
   9  Prefactor     .10000E-03    5.1151        .14458E-02** at limit **
  10  norm          .10000E-03    3.9502        .19182E-02** at limit **
  11  Prefactor     .10000E-03    36.002        .60580E-01** at limit **
  12  Prefactor     8.9029        20.005        .13411E-03    .17675E-03
  13  Prefactor     .10000E-03    2.9385        .21632E-03** at limit **
  14  norm          10.855        10.912        .12159E-03    .91819E-04
  15  Prefactor     .10000E-03    9.1427        .18142E-02** at limit **
  16  norm          1.4690        5.1584        .26712E-03   -.13909E-03
  17  Prefactor     .10000E-03    23.626        .18142E-02** at limit **
  18  Prefactor     26.908        29.538        .77226E-04   -.85060E-04
  19  norm          .10000E-03    26.408        .34804E-02** at limit **
  20  Prefactor     .10000E-03    13.810        .18142E-02** at limit **
  21  Prefactor     .10000E-03    3.3921        .11759E-02** at limit **
  22  norm          2.5201        1.8331        .71699E-04   -.31015E-03
  23  Prefactor     .10000E-03    6.8986        .16766E-02** at limit **
  24  Prefactor     .10000E-03    32.505        .18142E-02** at limit **
  25  Normalizat    1.1637        .20108        .18294E-03    .17419E-03
  26  Prefactor     .47945        .21495        .30692E-03    .81490E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 138.544
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.97744
  norm       = 8.99589
  Prefactor  = 13.3602
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 8.90288
  Prefactor  = 0.0001
  norm       = 10.8549
  Prefactor  = 0.0001
  norm       = 1.46902
  Prefactor  = 0.000100002
  Prefactor  = 26.9079
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.16366
  Prefactor  = 0.479451
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.103     FROM HESSE     STATUS=OK           440 CALLS     4504 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     138.54        82.520        .34223E-04   -1.3348    
   2  Prefactor     .10000E-03    37.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .83173        .20020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9774        3.9365        .57313E-05   -1.5363    
   5  norm          8.9959        13.077        .26728E-04   -1.5108    
   6  Prefactor     13.360        18.671        .43836E-05   -1.4977    
   7  Prefactor     .10000E-03    30.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9909        .50417E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1153        .28916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9601        .38364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.283        .70627E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9029        19.174        .53642E-05   -1.5111    
  13  Prefactor     .10000E-03    2.9386        .43264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.855        10.907        .48635E-05   -1.5049    
  15  Prefactor     .10000E-03    9.1432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4690        5.1570        .10685E-04   -1.5466    
  17  Prefactor     .10000E-03    23.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.908        29.538        .15445E-04   -1.4670    
  19  norm          .10000E-03    26.645        .69607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3922        .23518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5201        1.8331        .28680E-05   -1.5390    
  23  Prefactor     .10000E-03    6.8995        .33533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1637        .20124        .36588E-04   -.87733    
  26  Prefactor     .47945        .21509        .12277E-04   -1.1293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3107e-09
Minuit parameter uncertainties:
  1  82.5888
  2  7.59528e-05
  3  3.74686e-06
  4  3.93682
  5  13.0809
  6  18.6791
  7  0.000399089
  8  1.9715e-05
  9  1.65577e-05
  10  0.000115617
  11  0.000417921
  12  19.1867
  13  2.35157e-05
  14  10.9092
  15  1.58313e-05
  16  5.15859
  17  0.000442998
  18  29.5543
  19  0.000413994
  20  6.8516e-05
  21  1.92606e-06
  22  1.83314
  23  2.81862e-06
  24  0.000432607
  25  0.201378
  26  0.215454
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.179e-04  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:  4.795e-01  2.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.164e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338780/likelihoodResults_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.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) = 4289.10301108
delta logL = -1.58816701514e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4289.10301107
delta logL = -1.58712909979e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4722       1.0000          .0000       10.000    
     3 'Normalizat'    1.1636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47946       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=   4289.083     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      328 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50923        21.345        .32115E-01    .82723E-03
   2  Index         3.5455        3.1106        .23634        .34714E-04
   3  Normalizat    1.1526        .14278E-01    .35852E-01    .90100E-03
   4  Prefactor     .48664        .16032E-01    .68839E-01    .85099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.509228
  Index      = 3.54545
  Normalizat = 1.15261
  Prefactor  = 0.486643
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.083     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      359 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50923        550.58        .17106E-02   -1.5565    
   2  Index         3.5455        6.2959        .13100E-01   -.29518    
   3  Normalizat    1.1526        .10345        .18365E-03   -.88080    
   4  Prefactor     .48664        .11536        .30474E-03   -1.1259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1297e-09
Minuit parameter uncertainties:
  1  33.8013
  2  33.1559
  3  0.103466
  4  0.115413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338780': 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) = 4289.08297382
delta logL = 0.0200213756643

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.092e-01  3.380e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.545e+00  3.316e+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:  4.866e-01  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.153e+00  1.035e-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/338780/cmap_HighResolution_249177601_249436801_4FGL_J1419.5+3821_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-09 09:29:39.219469', job_id='338780', GAL2='0.49', fit_tolerance='1e-08', EG2='1.15', EG='1.16', time_epoch_completed='1631204979.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='2.00e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='38' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:29:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 338780: <4FGL_J1419.5+3821_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin38 214.894 38.3657 249177601 249436801 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 :                                   642.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             237.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

