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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin540
RA = 214.894, Dec = 38.3657
tmin = 379296001, tmax = 379555201
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='341580', job_status='RUN', time_executed='2021-09-09 09:25:36.549041', time_epoch_executed='1631204736.55' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341580/ft1_4FGL_J1419.5+3821_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341580/ft2_4FGL_J1419.5+3821_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341580/ft1_4FGL_J1419.5+3821_daily_bin540.fits outfile=/scratch/kocevski/341580/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin540.fits ra=214.894 dec=38.3657 rad=12.0 tmin=379296001.0 tmax=379555201.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 4.74
user 4.50
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341580/ft1_filtered_4FGL_J1419.5+3821_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/341580/ft2_4FGL_J1419.5+3821_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/341580/ltcube_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.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/341580/ft2_4FGL_J1419.5+3821_daily_bin540.fits
.....................!
real 11.38
user 11.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341580/ft1_filtered_4FGL_J1419.5+3821_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/341580/ft2_4FGL_J1419.5+3821_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/341580/ltcube_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.fits outfile=/scratch/kocevski/341580/expmap_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.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/341580/ltcube_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.fits
.....................!
real 189.37
user 185.18
sys 3.82

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1419.5+3821 @ 214.894 38.3657

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/341580/ft1_filtered_4FGL_J1419.5+3821_daily_bin540.fits scfile=/scratch/kocevski/341580/ft2_4FGL_J1419.5+3821_daily_bin540.fits outfile=/scratch/kocevski/341580/cmap_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341580/ft1_filtered_4FGL_J1419.5+3821_daily_bin540.fits scfile=/scratch/kocevski/341580/ft2_4FGL_J1419.5+3821_daily_bin540.fits outfile=/scratch/kocevski/341580/cmap_HighResolution_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.534       1.0000         .10000E-03   10000.    
     3 'norm      '    12.490       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66718       1.0000         .10000E-03   10000.    
     5 'norm      '    .94644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.042       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15646E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    13.767       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3503       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.753       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.432       1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.803       1.0000         .10000E-03   10000.    
    19 'norm      '    15.692       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5488       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2056       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6649.549     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3101 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.550       -.15600E-05** at limit **
   2  Prefactor     12.513        49.385        .51858E-05   -.24190E-04
   3  norm          12.490        2.3652        .37940E-07    .35233E-03
   4  Prefactor     .65592        4.0983        .24226E-05   -.63707E-04
   5  norm          .94809        15.455        .25050E-05    .62758E-04
   6  Prefactor     8.8907        11.530        .91770E-07    .14644E-05
   7  Prefactor     .10000E-03    57.654       -.58382E-05** at limit **
   8  Prefactor     15.037        6.8842        .20157E-06    .67811E-03
   9  Prefactor     .10073E-03    21.601       -.56962E-05** at limit **
  10  norm          13.767        5.8954       -.14442E-06   -.19914E-04
  11  Prefactor     .10000E-03    5.4987       -.79172E-07** at limit **
  12  Prefactor     .10000E-03    12.669        .43090E-07** at limit **
  13  Prefactor     3.3507        4.0951        .27596E-05    .10413E-02
  14  norm          .10000E-03    9.2275       -.70116E-07** at limit **
  15  Prefactor     21.742        25.839        .65176E-06    .43184E-04
  16  norm          .10000E-03    4.2567        .61279E-07** at limit **
  17  Prefactor     39.434        52.700        .21081E-07    .70019E-05
  18  Prefactor     59.802        34.944        .10024E-06   -.10885E-04
  19  norm          15.692        9.4804        .26371E-07   -.10454E-04
  20  Prefactor     15.707        17.023        .19214E-06   -.14835E-04
  21  Prefactor     .10000E-03    6.0212        .49856E-07** at limit **
  22  norm          1.5482        1.7173        .92936E-07   -.94562E-04
  23  Prefactor     .10000E-03    3.9671        .93699E-08** at limit **
  24  Prefactor     .10000E-03    37.749        .44448E-05** at limit **
  25  Normalizat    1.2057        .18387       -.11080E-05    .29772E-03
  26  Prefactor     .78509        .19203       -.49662E-06    .91210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.5134
  norm       = 12.4896
  Prefactor  = 0.655921
  norm       = 0.948088
  Prefactor  = 8.89067
  Prefactor  = 0.000100002
  Prefactor  = 15.0372
  Prefactor  = 0.000100733
  norm       = 13.767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35068
  norm       = 0.0001
  Prefactor  = 21.7421
  norm       = 0.0001
  Prefactor  = 39.4343
  Prefactor  = 59.8025
  norm       = 15.6917
  Prefactor  = 15.7065
  Prefactor  = 0.0001
  norm       = 1.54816
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.20572
  Prefactor  = 0.785088
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.549     FROM HESSE     STATUS=OK           462 CALLS     3563 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.513        49.617        .11315E-03   -1.5000    
   3  norm          12.490        2.3701        .52103E-04   -1.5001    
   4  Prefactor     .65592        7.0690        .28118E-02   -1.5546    
   5  norm          .94809        15.967        .51900E-03   -1.5513    
   6  Prefactor     8.8907        11.523        .13443E-03   -1.5112    
   7  Prefactor     .10000E-03    58.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.037        6.7510        .10327E-03   -1.4932    
   9  Prefactor     .10073E-03    108.71        .60882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.767        5.9024        .10795E-03   -1.4966    
  11  Prefactor     .10000E-03    5.5117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3507        4.2535        .88599E-03   -1.5342    
  14  norm          .10000E-03    9.2515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.742        25.902        .85880E-04   -1.4775    
  16  norm          .10000E-03    4.2935        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.434        52.689        .63831E-04   -1.4451    
  18  Prefactor     59.802        34.945        .51882E-04   -1.4160    
  19  norm          15.692        9.4788        .10111E-03   -1.4916    
  20  Prefactor     15.707        16.988        .10105E-03   -1.4915    
  21  Prefactor     .10000E-03    6.0442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5482        1.6930        .10521E-03   -1.5459    
  23  Prefactor     .10000E-03    3.9743        .15862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    37.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2057        .21756        .23016E-03   -.86426    
  26  Prefactor     .78509        .22857        .31763E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03861e-08
Minuit parameter uncertainties:
  1  7.43246e-05
  2  49.7812
  3  2.37007
  4  4.30691
  5  7.78369
  6  11.5263
  7  0.000613987
  8  6.75137
  9  0.0178842
  10  5.90268
  11  5.28623e-07
  12  6.48101e-06
  13  4.25384
  14  1.74566e-06
  15  25.9156
  16  2.53897e-06
  17  52.7509
  18  34.9567
  19  9.4797
  20  16.993
  21  1.38649e-06
  22  1.69304
  23  1.30162e-06
  24  0.000295477
  25  0.217721
  26  0.228846
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.286e-07  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:  7.851e-01  2.288e-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.206e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/341580/likelihoodResults_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.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) = 6649.54980189
delta logL = -0.000862828961544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6649.54893934
delta logL = -2.77570507023e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4576       1.0000          .0000       10.000    
     3 'Normalizat'    1.2056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78527       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=   6649.549     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    67.343        .18142E-02** at limit **
   2  Index         2.3959        6.6266        .50000        .19465E-04
   3  Normalizat    1.2057        .14507E-01    .23016E-03    .29044E-04
   4  Prefactor     .78509        .16584E-01    .31763E-03    .15355E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101246
  Index      = 2.39594
  Normalizat = 1.20572
  Prefactor  = 0.785089
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.549     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    285.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3959        8.2462        .50000       -.54780    
   3  Normalizat    1.2057        .31388E-01    .92064E-05   -.86426    
   4  Prefactor     .78509        .35879E-01    .12705E-04   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52737e-08
Minuit parameter uncertainties:
  1  0.0379141
  2  744.787
  3  0.0313884
  4  0.0358801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341580': 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) = 6649.54893879
delta logL = 2.71799763141e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.012e-04  3.791e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.396e+00  7.448e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.851e-01  3.588e-02  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.206e+00  3.139e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/341580/cmap_HighResolution_379296001_379555201_4FGL_J1419.5+3821_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-09-09 09:38:23.113788', job_id='341580', GAL2='0.79', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631205503.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='540' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 341580: <4FGL_J1419.5+3821_daily_bin540> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin540> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:25:26 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:25:27 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:25:27 2021
Terminated at Thu Sep  9 09:38:23 2021
Results reported at Thu Sep  9 09:38:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin540 214.894 38.3657 379296001 379555201 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 :                                   761.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

