/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 4 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 = 7674
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin163
RA = 214.894, Dec = 38.3657
tmin = 281577601, tmax = 281836801
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='340015', job_status='RUN', time_executed='2021-09-09 09:20:33.897895', time_epoch_executed='1631204433.9' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340015

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340015/ft1_4FGL_J1419.5+3821_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340015/ft2_4FGL_J1419.5+3821_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340015/ft1_4FGL_J1419.5+3821_daily_bin163.fits outfile=/scratch/kocevski/340015/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin163.fits ra=214.894 dec=38.3657 rad=12.0 tmin=281577601.0 tmax=281836801.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 3.70
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/340015/ft2_4FGL_J1419.5+3821_daily_bin163.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/340015/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/340015/ft1_filtered_4FGL_J1419.5+3821_daily_bin163.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340015/ft1_filtered_4FGL_J1419.5+3821_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/340015/ft2_4FGL_J1419.5+3821_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/340015/ltcube_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.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/340015/ft2_4FGL_J1419.5+3821_daily_bin163.fits
.....................!
real 13.19
user 11.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340015/ft1_filtered_4FGL_J1419.5+3821_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/340015/ft2_4FGL_J1419.5+3821_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/340015/ltcube_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.fits outfile=/scratch/kocevski/340015/expmap_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.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/340015/ltcube_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.fits
.....................!
real 190.29
user 185.02
sys 4.90

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/340015/ft1_filtered_4FGL_J1419.5+3821_daily_bin163.fits scfile=/scratch/kocevski/340015/ft2_4FGL_J1419.5+3821_daily_bin163.fits outfile=/scratch/kocevski/340015/cmap_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.933       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1573       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4054       1.0000         .10000E-03   10000.    
     5 'norm      '    16.511       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4548       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24609       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6798       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.651       1.0000         .10000E-03   10000.    
    19 'norm      '    7.6732       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.540       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36260E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .90076       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97814       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95071       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=   5733.888     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3123 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.565        .25846E-05** at limit **
   2  Prefactor     58.928        79.557       -.44123E-06   -.59969E-05
   3  norm          1.1575        1.0761        .26506E-07    .32735E-05
   4  Prefactor     2.4055        2.6187        .44400E-07   -.20212E-04
   5  norm          16.512        12.452        .32726E-07   -.31361E-05
   6  Prefactor     9.4552        9.3898       -.79537E-06    .12159E-03
   7  Prefactor     .10000E-03    39.811       -.23253E-05** at limit **
   8  Prefactor     .10000E-03    2.0275        .13567E-07** at limit **
   9  Prefactor     .10000E-03    10.856        .13602E-06** at limit **
  10  norm          .10000E-03    1.8874        .10762E-06** at limit **
  11  Prefactor     5.1656        22.107       -.50698E-05   -.21340E-04
  12  Prefactor     3.0590        40.214        .73732E-05   -.13558E-04
  13  Prefactor     .24075        2.0223        .36779E-06   -.27445E-03
  14  norm          5.6347        12.293        .10016E-05   -.22447E-04
  15  Prefactor     .10000E-03    15.583       -.39902E-06** at limit **
  16  norm          1.6796        3.0451        .93661E-07   -.30914E-04
  17  Prefactor     .10000E-03    35.027       -.57963E-05** at limit **
  18  Prefactor     40.654        33.576        .10377E-06   -.60113E-05
  19  norm          7.6738        7.5504       -.18282E-07    .87439E-05
  20  Prefactor     17.545        12.975        .98558E-08    .17711E-05
  21  Prefactor     .10000E-03    4.2868       -.18656E-06** at limit **
  22  norm          .90146        1.2154        .15270E-06    .14189E-03
  23  Prefactor     .10000E-03    6.2518        .33072E-07** at limit **
  24  Prefactor     .10000E-03    47.325        .74458E-05** at limit **
  25  Normalizat    .97780        .16680       -.20253E-06   -.40852E-04
  26  Prefactor     .95118        .18857       -.38412E-06   -.37478E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 58.9285
  norm       = 1.15752
  Prefactor  = 2.40546
  norm       = 16.512
  Prefactor  = 9.45516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.16564
  Prefactor  = 3.059
  Prefactor  = 0.240751
  norm       = 5.63466
  Prefactor  = 0.0001
  norm       = 1.67961
  Prefactor  = 0.0001
  Prefactor  = 40.6537
  norm       = 7.67382
  Prefactor  = 17.5454
  Prefactor  = 0.0001
  norm       = 0.901458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.977802
  Prefactor  = 0.951177
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.888     FROM HESSE     STATUS=OK           466 CALLS     3589 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.928        80.568        .52261E-04   -1.4171    
   3  norm          1.1575        1.0743        .72903E-04   -1.5493    
   4  Prefactor     2.4055        2.6153        .12390E-03   -1.5398    
   5  norm          16.512        12.452        .98568E-04   -1.4895    
   6  Prefactor     9.4552        9.3733        .65166E-03   -1.5093    
   7  Prefactor     .10000E-03    39.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0489        .10528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.9172        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1656        21.826        .17778E-03   -1.5253    
  12  Prefactor     3.0590        40.311        .22954E-03   -1.5358    
  13  Prefactor     .24075        4.3023        .20506E-02   -1.5610    
  14  norm          5.6347        12.275        .16901E-03   -1.5233    
  15  Prefactor     .10000E-03    15.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6796        3.0085        .17236E-03   -1.5449    
  17  Prefactor     .10000E-03    35.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.654        33.610        .62870E-04   -1.4432    
  19  norm          7.6738        7.5465        .14477E-03   -1.5154    
  20  Prefactor     17.545        12.922        .95634E-04   -1.4870    
  21  Prefactor     .10000E-03    11.733        .29741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .90146        1.0823        .91247E-03   -1.5518    
  23  Prefactor     .10000E-03    6.2762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    47.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97780        .20017        .21621E-03   -.93778    
  26  Prefactor     .95118        .22600        .25937E-03   -.94375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06664e-08
Minuit parameter uncertainties:
  1  5.88368e-05
  2  80.7175
  3  1.07435
  4  2.61547
  5  12.4535
  6  9.37479
  7  4.44587e-05
  8  9.42174e-07
  9  5.16565e-06
  10  1.5314e-06
  11  21.2492
  12  22.2271
  13  2.03522
  14  12.2805
  15  1.57981e-06
  16  3.00879
  17  6.81171e-05
  18  33.6255
  19  7.54742
  20  12.9245
  21  8.71512e-05
  22  1.08232
  23  1.46896e-06
  24  0.000190512
  25  0.200319
  26  0.226222
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.166e+00  2.125e+01  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:  9.512e-01  2.262e-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:  9.778e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/340015/likelihoodResults_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.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): 0
logL (Free Index) = 5733.8841296
delta logL = 0.0038037635386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5733.88150515
delta logL = 0.00642820833764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1217       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3337       1.0000          .0000       10.000    
     3 'Normalizat'    .97954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94944       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=   5733.882     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      233 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1244        14.787        .16226E-03   -.22154E-03
   2  Index         2.3326        1.2466        .11041E-01   -.65775E-04
   3  Normalizat    .97942        .18803        .21605E-03    .70098E-03
   4  Prefactor     .94961        .22281        .25955E-03    .59559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.12437
  Index      = 2.33261
  Normalizat = 0.979417
  Prefactor  = 0.949611
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.882     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1244        13.823        .64906E-05   -1.5213    
   2  Index         2.3326        1.1675        .44163E-03   -.56271    
   3  Normalizat    .97942        .18815        .43211E-04   -.93723    
   4  Prefactor     .94961        .22292        .51910E-04   -.94428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51288e-10
Minuit parameter uncertainties:
  1  13.83
  2  1.18289
  3  0.188272
  4  0.223136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340015': 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): 0
logL (Free Index) = 5733.88150433
delta logL = 0.00642903528478

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  6.124e+00  1.383e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.333e+00  1.183e+00  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:  9.496e-01  2.231e-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:  9.794e-01  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/340015/cmap_HighResolution_281577601_281836801_4FGL_J1419.5+3821_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-09 09:32:10.582135', job_id='340015', GAL2='0.95', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631205130.58', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.43e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='163' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:32:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 340015: <4FGL_J1419.5+3821_daily_bin163> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin163> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:19 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:21 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:20:21 2021
Terminated at Thu Sep  9 09:32:11 2021
Results reported at Thu Sep  9 09:32:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin163 214.894 38.3657 281577601 281836801 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

