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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin20
RA = 214.894, Dec = 38.3657
tmin = 244512001, tmax = 244771201
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='338753', job_status='RUN', time_executed='2021-09-09 09:19:10.691928', time_epoch_executed='1631204350.69' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338753/ft1_4FGL_J1419.5+3821_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338753/ft2_4FGL_J1419.5+3821_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338753/ft1_4FGL_J1419.5+3821_daily_bin20.fits outfile=/scratch/kocevski/338753/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin20.fits ra=214.894 dec=38.3657 rad=12.0 tmin=244512001.0 tmax=244771201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.46
user 1.27
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338753/ft1_filtered_4FGL_J1419.5+3821_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/338753/ft2_4FGL_J1419.5+3821_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/338753/ltcube_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.fits outfile=/scratch/kocevski/338753/expmap_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.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/338753/ltcube_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.fits
.....................!
real 190.42
user 185.78
sys 4.15

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/338753/ft1_filtered_4FGL_J1419.5+3821_daily_bin20.fits scfile=/scratch/kocevski/338753/ft2_4FGL_J1419.5+3821_daily_bin20.fits outfile=/scratch/kocevski/338753/cmap_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.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/338753/ft1_filtered_4FGL_J1419.5+3821_daily_bin20.fits scfile=/scratch/kocevski/338753/ft2_4FGL_J1419.5+3821_daily_bin20.fits outfile=/scratch/kocevski/338753/cmap_HighResolution_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.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.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/338753/ft1_filtered_4FGL_J1419.5+3821_daily_bin20.fits', '/scratch/kocevski/338753/ft2_4FGL_J1419.5+3821_daily_bin20.fits', expMap='/scratch/kocevski/338753/expmap_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.fits', expCube='/scratch/kocevski/338753/ltcube_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/338753/Model_4FGL_J1419.5+3821_daily_bin20.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/338753/ft1_filtered_4FGL_J1419.5+3821_daily_bin20.fits
Spacecraft file(s): /scratch/kocevski/338753/ft2_4FGL_J1419.5+3821_daily_bin20.fits
Exposure map: /scratch/kocevski/338753/expmap_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.fits
Exposure cube: /scratch/kocevski/338753/ltcube_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/338753/Model_4FGL_J1419.5+3821_daily_bin20.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    85.616       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8074       1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12260E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .32466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.3883       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77107       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1939       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=   4289.764     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3046 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.387        .10980E-04** at limit **
   2  Prefactor     85.609        92.899       -.64014E-05    .96257E-05
   3  norm          .10000E-03    .74439       -.22051E-07** at limit **
   4  Prefactor     4.8069        5.3133        .29443E-06   -.21299E-03
   5  norm          .10000E-03    15.607       -.30227E-05** at limit **
   6  Prefactor     .10000E-03    18.172        .43816E-05** at limit **
   7  Prefactor     .10000E-03    39.932       -.28411E-05** at limit **
   8  Prefactor     .10000E-03    3.4120       -.42579E-07** at limit **
   9  Prefactor     .10000E-03    7.5374        .46662E-06** at limit **
  10  norm          1.0099        2.7568       -.39596E-06   -.78093E-03
  11  Prefactor     16.099        16.466       -.11260E-05    .73330E-04
  12  Prefactor     .10000E-03    17.528        .18209E-05** at limit **
  13  Prefactor     .10000E-03    2.5266       -.22388E-06** at limit **
  14  norm          .10000E-03    14.321       -.24662E-05** at limit **
  15  Prefactor     .10000E-03    8.9616       -.25970E-05** at limit **
  16  norm          .33632        4.2212       -.17417E-05   -.54959E-04
  17  Prefactor     .10000E-03    15.864       -.28774E-05** at limit **
  18  Prefactor     .10000E-03    11.155        .50689E-05** at limit **
  19  norm          6.3880        6.3119       -.94497E-07    .14726E-03
  20  Prefactor     2.4140        10.612       -.11377E-05   -.18966E-03
  21  Prefactor     .10000E-03    3.9332        .14185E-06** at limit **
  22  norm          2.6301        1.5491       -.15478E-07    .84283E-04
  23  Prefactor     .10000E-03    4.0156       -.16558E-06** at limit **
  24  Prefactor     .10000E-03    40.888       -.91495E-05** at limit **
  25  Normalizat    .77113        .19196        .15870E-05    .12497E-03
  26  Prefactor     1.1936        .21169       -.29657E-06    .17708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 85.6094
  norm       = 0.0001
  Prefactor  = 4.80687
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00992
  Prefactor  = 16.0989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.336316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.38796
  Prefactor  = 2.41398
  Prefactor  = 0.0001
  norm       = 2.63008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.771129
  Prefactor  = 1.19364
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.764     FROM HESSE     STATUS=OK           454 CALLS     3500 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     85.609        93.722        .43417E-04   -1.3855    
   3  norm          .10000E-03    1.2192        .10930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8069        5.3167        .14967E-03   -1.5269    
   5  norm          .10000E-03    15.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4567        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5465        .17560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0099        2.2929        .17469E-02   -1.5507    
  11  Prefactor     16.099        16.349        .99793E-04   -1.4905    
  12  Prefactor     .10000E-03    17.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.363        .19519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33632        9.6028        .25881E-02   -1.5592    
  17  Prefactor     .10000E-03    15.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.3880        6.3144        .15880E-03   -1.5202    
  20  Prefactor     2.4140        10.762        .26358E-03   -1.5397    
  21  Prefactor     .10000E-03    3.9574        .12676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6301        1.5440        .60158E-04   -1.5384    
  23  Prefactor     .10000E-03    4.0195        .12819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    40.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .77113        .22575        .23879E-03   -1.0115    
  26  Prefactor     1.1936        .25418        .23316E-03   -.86527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71944e-08
Minuit parameter uncertainties:
  1  8.49115e-07
  2  93.8843
  3  1.20834e-06
  4  5.31724
  5  2.81887e-05
  6  2.2338e-05
  7  1.36228e-05
  8  2.87169e-06
  9  3.33238e-06
  10  2.29313
  11  16.3537
  12  6.25446e-05
  13  0.000289513
  14  4.29025e-05
  15  1.1917e-06
  16  3.5943
  17  6.31335e-06
  18  2.35907e-06
  19  6.31507
  20  10.1969
  21  1.37704e-06
  22  1.54406
  23  1.45026e-06
  24  7.88858e-07
  25  0.226023
  26  0.254445
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.610e+01  1.635e+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:  1.194e+00  2.544e-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:  7.711e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.02e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.22e-05

TS (Fixed Index): 1.58
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338753/likelihoodResults_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.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) = 4289.4788229
delta logL = 0.285291661908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4289.43582652
delta logL = 0.328288040168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3358       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5040       1.0000          .0000       10.000    
     3 'Normalizat'    .72114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2337       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4289.436     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      244 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3358        68.294        .48363E-02    .93197E-03
   2  Index         3.5041        3.1588        .12176        .99415E-04
   3  Normalizat    .72109        .61997E-01    .42572E-01    .14576E-04
   4  Prefactor     1.2338        .67613E-01    .51998E-01    .25656E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.33578
  Index      = 3.50413
  Normalizat = 0.721093
  Prefactor  = 1.23378
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.436     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3358        118.04        .99734E-04   -1.5291    
   2  Index         3.5041        6.7474        .43465E-02   -.30383    
   3  Normalizat    .72109        .26531        .24622E-03   -1.0307    
   4  Prefactor     1.2338        .29351        .22989E-03   -.85298    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14123e-07
Minuit parameter uncertainties:
  1  45.3442
  2  5.75174
  3  0.265784
  4  0.293903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338753': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4289.43582644
delta logL = 0.328288113997

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.336e+00  4.534e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.504e+00  5.752e+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:  1.234e+00  2.939e-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:  7.211e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 214.894 38.366
Photon Index (Free Index): 3.50 +/- 5.75
Photon Flux (Free Index): 7.49e-08 +/- 9.66e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.18e-05

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/338753/cmap_HighResolution_244512001_244771201_4FGL_J1419.5+3821_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.02e-08', energy_flux2='1.25e-05', photon_flux_error='4.08e-08', dlogl='3.28e-01', energy_flux='1.20e-05', photon_flux2='7.49e-08', job_status='DONE', time_completed='2021-09-09 09:28:53.049912', photon_index_error2='5.75', photon_index2='3.50', ts='1.58', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.18e-05', EG='0.77', time_epoch_completed='1631204933.05', return_code='0', job_id='338753', GAL2='1.23', EG2='0.72', return_code2='102', energy_flux_error='1.22e-05', photon_flux_error2='9.66e-08', ts2='2.35', photon_index='2.47' WHERE bin_id='20' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:28:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 338753: <4FGL_J1419.5+3821_daily_bin20> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin20> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:35 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:15:37 2021
Terminated at Thu Sep  9 09:28:53 2021
Results reported at Thu Sep  9 09:28:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin20 214.894 38.3657 244512001 244771201 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 :                                   582.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

