/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 2 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7460
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin206
RA = 214.894, Dec = 38.3657
tmin = 292723201, tmax = 292982401
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='340077', job_status='RUN', time_executed='2021-09-09 09:20:36.948906', time_epoch_executed='1631204436.95' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340077

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340077/ft1_4FGL_J1419.5+3821_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340077/ft2_4FGL_J1419.5+3821_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340077/ft1_4FGL_J1419.5+3821_daily_bin206.fits outfile=/scratch/kocevski/340077/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin206.fits ra=214.894 dec=38.3657 rad=12.0 tmin=292723201.0 tmax=292982401.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.38
user 4.13
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340077/ft1_filtered_4FGL_J1419.5+3821_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/340077/ft2_4FGL_J1419.5+3821_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/340077/ltcube_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.fits outfile=/scratch/kocevski/340077/expmap_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.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/340077/ltcube_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.fits
.....................!
real 190.20
user 184.99
sys 4.84

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/340077/ft1_filtered_4FGL_J1419.5+3821_daily_bin206.fits scfile=/scratch/kocevski/340077/ft2_4FGL_J1419.5+3821_daily_bin206.fits outfile=/scratch/kocevski/340077/cmap_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.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/340077/ft1_filtered_4FGL_J1419.5+3821_daily_bin206.fits scfile=/scratch/kocevski/340077/ft2_4FGL_J1419.5+3821_daily_bin206.fits outfile=/scratch/kocevski/340077/cmap_HighResolution_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.357       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.141       1.0000         .10000E-03   10000.    
     3 'norm      '    .86744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3192       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5165       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.690       1.0000         .10000E-03   10000.    
    10 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5144       1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.228       1.0000         .10000E-03   10000.    
    16 'norm      '    6.8124       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .91096E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11259E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0446       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74323       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=   5489.413     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3163 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.328        69.144        .27880E-05   -.33557E-04
   2  Prefactor     38.130        55.140        .12448E-05   -.16260E-04
   3  norm          .86737        1.1937       -.94294E-06   -.10564E-02
   4  Prefactor     5.3191        3.6899       -.90691E-07    .21968E-04
   5  norm          .10000E-03    5.0514        .40825E-07** at limit **
   6  Prefactor     8.5171        13.194        .23347E-07   -.41296E-04
   7  Prefactor     .10000E-03    15.495       -.11457E-05** at limit **
   8  Prefactor     .10000E-03    1.6236       -.19657E-07** at limit **
   9  Prefactor     49.683        24.708        .26410E-06    .33199E-04
  10  norm          .10000E-03    4.5779       -.94670E-06** at limit **
  11  Prefactor     .10000E-03    20.018       -.84820E-06** at limit **
  12  Prefactor     26.440        19.277        .65542E-06   -.36185E-03
  13  Prefactor     2.5140        2.4408       -.57178E-07   -.79554E-04
  14  norm          .10000E-03    5.3376       -.31550E-06** at limit **
  15  Prefactor     12.226        18.277       -.14923E-06   -.19493E-04
  16  norm          6.8108        6.2126       -.35688E-07    .41488E-05
  17  Prefactor     .10000E-03    12.591        .23272E-06** at limit **
  18  Prefactor     .10000E-03    27.461       -.50697E-07** at limit **
  19  norm          .10000E-03    2.8538       -.81196E-07** at limit **
  20  Prefactor     .10001E-03    97.417       -.28699E-04** at limit **
  21  Prefactor     .10000E-03    2.0275       -.12111E-06** at limit **
  22  norm          .10000E-03    .58748       -.20721E-06** at limit **
  23  Prefactor     .10000E-03    8.5725       -.19986E-05** at limit **
  24  Prefactor     .10000E-03    36.188       -.19493E-05** at limit **
  25  Normalizat    1.0449        .17636        .15618E-05    .32775E-03
  26  Prefactor     .74285        .19111       -.25223E-06   -.13907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.328
  Prefactor  = 38.1295
  norm       = 0.867369
  Prefactor  = 5.31911
  norm       = 0.0001
  Prefactor  = 8.51705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.6833
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 26.4396
  Prefactor  = 2.51404
  norm       = 0.0001
  Prefactor  = 12.2263
  norm       = 6.81077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.0449
  Prefactor  = 0.742855
 **********
 **   18 **HESSE 
 **********

 FCN=   5489.413     FROM HESSE     STATUS=OK           454 CALLS     3617 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.328        69.131        .54909E-04   -1.4246    
   2  Prefactor     38.130        55.203        .64898E-04   -1.4472    
   3  norm          .86737        1.1611        .96628E-03   -1.5522    
   4  Prefactor     5.3191        3.6924        .11441E-03   -1.5247    
   5  norm          .10000E-03    5.0603        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5171        13.183        .13736E-03   -1.5124    
   7  Prefactor     .10000E-03    15.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6290        .92176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.683        24.797        .56889E-04   -1.4297    
  10  norm          .10000E-03    4.7671        .30989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.440        19.193        .77913E-04   -1.4679    
  13  Prefactor     2.5140        2.4465        .11029E-03   -1.5391    
  14  norm          .10000E-03    5.3419        .16719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.226        18.277        .11456E-03   -1.5009    
  16  norm          6.8108        6.1811        .15372E-03   -1.5186    
  17  Prefactor     .10000E-03    12.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8552        .12223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    96.699        .44499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.0299        .10302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .61033        .11084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    47.915        .41330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0449        .21570        .21277E-03   -.91541    
  26  Prefactor     .74285        .23018        .27878E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90163e-09
Minuit parameter uncertainties:
  1  69.2349
  2  55.2771
  3  1.16111
  4  3.69254
  5  1.71002e-05
  6  13.187
  7  2.2038e-05
  8  6.52158e-06
  9  24.802
  10  1.34138e-05
  11  0.000289265
  12  19.1979
  13  2.4466
  14  7.53233e-06
  15  18.2853
  16  6.18163
  17  1.23118e-05
  18  3.10818e-05
  19  3.12036e-09
  20  0.00167868
  21  2.80605e-06
  22  4.76672e-06
  23  0.000483836
  24  0.000104354
  25  0.215884
  26  0.230478
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.893e-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:  7.429e-01  2.305e-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.045e+00  2.159e-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: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340077/likelihoodResults_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.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) = 5489.41313078
delta logL = -0.000235224546486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5489.41289613
delta logL = -5.68587893213e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5120       1.0000          .0000       10.000    
     3 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74282       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=   5489.411     FROM MIGRAD    STATUS=CONVERGED    200 CALLS      354 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20174        5.1823        .66369E-01   -.36787E-03
   2  Index         3.3824        .92366        .50000        .35498E-05
   3  Normalizat    1.0419        .70504E-02    .21277E-03    .90300E-05
   4  Prefactor     .74487        .79485E-02    .27878E-03   -.23652E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.201745
  Index      = 3.3824
  Normalizat = 1.04187
  Prefactor  = 0.744869
 **********
 **   18 **HESSE 
 **********

 FCN=   5489.411     FROM HESSE     STATUS=OK            31 CALLS      385 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20174        18.687        .18741E-02   -1.5798    
   2  Index         3.3824        6.6456        .80873E-02   -.32945    
   3  Normalizat    1.0419        .20865        .85108E-05   -.91641    
   4  Prefactor     .74487        .23055        .11151E-04   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00851e-11
Minuit parameter uncertainties:
  1  3.88363
  2  4.96775
  3  0.208816
  4  0.230846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340077': 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) = 5489.41141243
delta logL = 0.0014831300241

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.017e-01  3.884e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.382e+00  4.968e+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:  7.449e-01  2.308e-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.042e+00  2.088e-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/340077/cmap_HighResolution_292723201_292982401_4FGL_J1419.5+3821_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-09 09:31:56.055111', job_id='340077', GAL2='0.74', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631205116.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.48e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='206' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 340077: <4FGL_J1419.5+3821_daily_bin206> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin206> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:24 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:20:26 2021
Terminated at Thu Sep  9 09:31:56 2021
Results reported at Thu Sep  9 09:31:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin206 214.894 38.3657 292723201 292982401 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

