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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin712
RA = 214.894, Dec = 38.3657
tmin = 423878401, tmax = 424137601
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='341821', job_status='RUN', time_executed='2021-09-09 09:26:00.768974', time_epoch_executed='1631204760.77' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341821/ft1_4FGL_J1419.5+3821_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341821/ft1_4FGL_J1419.5+3821_daily_bin712.fits outfile=/scratch/kocevski/341821/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin712.fits ra=214.894 dec=38.3657 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.34
user 5.04
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341821/ft1_filtered_4FGL_J1419.5+3821_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/341821/ltcube_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.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/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits
.....................!
real 11.60
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341821/ft1_filtered_4FGL_J1419.5+3821_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/341821/ltcube_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.fits outfile=/scratch/kocevski/341821/expmap_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.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/341821/ltcube_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.fits
.....................!
real 192.11
user 186.48
sys 5.27

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/341821/ft1_filtered_4FGL_J1419.5+3821_daily_bin712.fits scfile=/scratch/kocevski/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits outfile=/scratch/kocevski/341821/cmap_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341821/ft1_filtered_4FGL_J1419.5+3821_daily_bin712.fits scfile=/scratch/kocevski/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits outfile=/scratch/kocevski/341821/cmap_HighResolution_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.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/341821/ft1_filtered_4FGL_J1419.5+3821_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/341821/ft2_4FGL_J1419.5+3821_daily_bin712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341821/Model_4FGL_J1419.5+3821_daily_bin712.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/341821/ft1_filtered_4FGL_J1419.5+3821_daily_bin712.fits.........................!
real 19.22
user 17.92
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23721E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    198.30       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.432       1.0000         .10000E-03   10000.    
     5 'norm      '    .24623E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27244E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46182E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    139.06       1.0000         .10000E-03   10000.    
    10 'norm      '    9.5956       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45302E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3881       1.0000         .10000E-03   10000.    
    14 'norm      '    .12383E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .87831       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    188.57       1.0000         .10000E-03   10000.    
    18 'Prefactor '    174.58       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.064       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.164       1.0000         .10000E-03   10000.    
    22 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.107       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28578E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .54342       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3156       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1080.670     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     2401 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.19        .11514E-05** at limit **
   2  Prefactor     261.50        310.32       -.12659E-03   -.33349E-04
   3  norm          3.8161        5.0081       -.10093E-04   -.19391E-03
   4  Prefactor     11.552        11.920        .32283E-04    .15143E-03
   5  norm          .10000E-03    30.499        .76450E-04** at limit **
   6  Prefactor     .10000E-03    27.891        .10015E-03** at limit **
   7  Prefactor     .10000E-03    230.48       -.47435E-04** at limit **
   8  Prefactor     .10000E-03    31.190        .75038E-06** at limit **
   9  Prefactor     141.99        106.63        .20654E-04   -.23866E-04
  10  norm          9.5093        11.984        .55159E-05    .20728E-04
  11  Prefactor     .10000E-03    23.461        .21619E-05** at limit **
  12  Prefactor     .10001E-03    167.38       -.57511E-04** at limit **
  13  Prefactor     8.8291        16.499        .59164E-04    .97200E-04
  14  norm          .10000E-03    40.899       -.10837E-03** at limit **
  15  Prefactor     12.981        195.94        .75250E-04   -.14436E-03
  16  norm          .10000E-03    11.323       -.18149E-04** at limit **
  17  Prefactor     187.98        241.85        .16316E-03   -.11283E-03
  18  Prefactor     189.69        136.58       -.95952E-04   -.47397E-04
  19  norm          .10000E-03    14.094       -.56853E-05** at limit **
  20  Prefactor     20.632        50.748        .98714E-04    .20334E-04
  21  Prefactor     14.741        24.775       -.37023E-05   -.74958E-05
  22  norm          .10000E-03    1.8197        .26653E-05** at limit **
  23  Prefactor     35.517        26.606       -.21867E-05   -.25742E-04
  24  Prefactor     .10000E-03    57.046       -.14600E-03** at limit **
  25  Normalizat    .48951        .56063        .32285E-03   -.10163E-03
  26  Prefactor     1.3300        .56549       -.18477E-03   -.12363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 261.497
  norm       = 3.8161
  Prefactor  = 11.5524
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.986
  norm       = 9.50928
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 8.82915
  norm       = 0.000100002
  Prefactor  = 12.9811
  norm       = 0.0001
  Prefactor  = 187.983
  Prefactor  = 189.69
  norm       = 0.0001
  Prefactor  = 20.6316
  Prefactor  = 14.7406
  norm       = 0.0001
  Prefactor  = 35.5166
  Prefactor  = 0.000100002
  Normalizat = 0.489514
  Prefactor  = 1.33003
 **********
 **   18 **HESSE 
 **********

 FCN=   1080.670     FROM HESSE     STATUS=OK           510 CALLS     2911 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.94        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     261.50        307.45        .71729E-03   -1.2460    
   3  norm          3.8161        4.9869        .52334E-02   -1.5317    
   4  Prefactor     11.552        11.916        .29621E-02   -1.5028    
   5  norm          .10000E-03    30.164        .91455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.761        .91584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    233.55        .90731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.597        .96549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     141.99        106.71        .85396E-03   -1.3319    
  10  norm          9.5093        11.957        .32342E-02   -1.5091    
  11  Prefactor     .10000E-03    23.521        .10603E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    161.93        .95713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.8291        16.534        .34604E-02   -1.5114    
  14  norm          .10000E-03    40.725        .10308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.981        203.76        .12729E-01   -1.4987    
  16  norm          .10000E-03    11.370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     187.98        243.39        .73518E-03   -1.2957    
  18  Prefactor     189.69        136.59        .76354E-03   -1.2945    
  19  norm          .10000E-03    13.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.632        50.573        .21818E-02   -1.4799    
  21  Prefactor     14.741        24.749        .26607E-02   -1.4940    
  22  norm          .10000E-03    1.8227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.517        26.610        .16674E-02   -1.4515    
  24  Prefactor     .10000E-03    56.918        .91650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .48951        .51100        .79795E-01   -1.1290    
  26  Prefactor     1.3300        .50405        .59197E-01   -.82418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71034e-09
Minuit parameter uncertainties:
  1  1.23098e-05
  2  309.382
  3  4.98745
  4  11.9181
  5  0.000128178
  6  0.000309507
  7  0.00043906
  8  1.17528e-06
  9  106.856
  10  11.9601
  11  1.98211e-05
  12  0.0020158
  13  16.5421
  14  0.000600771
  15  103.281
  16  5.64295e-05
  17  244.713
  18  136.818
  19  2.41051e-06
  20  50.6783
  21  24.7663
  22  1.62314e-06
  23  26.6188
  24  0.000658251
  25  0.516005
  26  0.505915
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.982e-05  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:  1.330e+00  5.059e-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:  4.895e-01  5.160e-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: 2.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341821/likelihoodResults_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.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) = 1080.66972927
delta logL = -0.000177035237812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1080.669555
delta logL = -2.76580885838e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7600       1.0000          .0000       10.000    
     3 'Normalizat'    .48932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3299       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=   1080.670     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      285 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10700E-03    18.694        .12620E-01** at limit **
   2  Index         2.6390        6.3627        .50000        .23474E-04
   3  Normalizat    .48952        .10774E-01    .35337E-03    .49609E-04
   4  Prefactor     1.3300        .12716E-01    .26175E-03    .51828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106998
  Index      = 2.63902
  Normalizat = 0.489518
  Prefactor  = 1.33003
 **********
 **   18 **HESSE 
 **********

 FCN=   1080.670     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10700E-03    163.87        .13514E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6390        6.3003        .50000       -.49178    
   3  Normalizat    .48952        .32232E-01    .14135E-04   -1.1290    
   4  Prefactor     1.3300        .38043E-01    .52349E-04   -.82418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16582e-09
Minuit parameter uncertainties:
  1  0.0679136
  2  364.218
  3  0.0322333
  4  0.0380435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341821': 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) = 1080.66955312
delta logL = -8.94530103324e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.070e-04  6.791e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.639e+00  3.642e+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:  1.330e+00  3.804e-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:  4.895e-01  3.223e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/341821/cmap_HighResolution_423878401_424137601_4FGL_J1419.5+3821_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-02', job_status='DONE', photon_flux_upper_limit='2.78e-07', time_completed='2021-09-09 09:33:19.724362', job_id='341821', GAL2='1.33', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1631205199.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='-8.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='712' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:33:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 341821: <4FGL_J1419.5+3821_daily_bin712> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin712 214.894 38.3657 423878401 424137601 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 :                                   391.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   453 sec.
    Turnaround time :                            456 sec.

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

