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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin24
RA = 214.894, Dec = 38.3657
tmin = 245548801, tmax = 245808001
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='338759', job_status='RUN', time_executed='2021-09-09 09:17:54.820903', time_epoch_executed='1631204274.82' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='24'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338759/ft1_4FGL_J1419.5+3821_daily_bin24.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338759/ft2_4FGL_J1419.5+3821_daily_bin24.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338759/ft1_4FGL_J1419.5+3821_daily_bin24.fits outfile=/scratch/kocevski/338759/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin24.fits ra=214.894 dec=38.3657 rad=12.0 tmin=245548801.0 tmax=245808001.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.43
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338759/ft1_filtered_4FGL_J1419.5+3821_daily_bin24.fits" evtable="EVENTS" scfile=/scratch/kocevski/338759/ft2_4FGL_J1419.5+3821_daily_bin24.fits sctable="SC_DATA" outfile=/scratch/kocevski/338759/ltcube_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.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/338759/ft2_4FGL_J1419.5+3821_daily_bin24.fits
.....................!
real 12.61
user 12.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338759/ft1_filtered_4FGL_J1419.5+3821_daily_bin24.fits evtable="EVENTS" scfile=/scratch/kocevski/338759/ft2_4FGL_J1419.5+3821_daily_bin24.fits sctable="SC_DATA" expcube=/scratch/kocevski/338759/ltcube_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.fits outfile=/scratch/kocevski/338759/expmap_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.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/338759/ltcube_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.fits
.....................!
real 189.20
user 184.92
sys 3.92

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/338759/ft1_filtered_4FGL_J1419.5+3821_daily_bin24.fits scfile=/scratch/kocevski/338759/ft2_4FGL_J1419.5+3821_daily_bin24.fits outfile=/scratch/kocevski/338759/cmap_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338759/ft1_filtered_4FGL_J1419.5+3821_daily_bin24.fits scfile=/scratch/kocevski/338759/ft2_4FGL_J1419.5+3821_daily_bin24.fits outfile=/scratch/kocevski/338759/cmap_HighResolution_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23353E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .94565E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    22.882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.425       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4829       1.0000         .10000E-03   10000.    
    10 'norm      '    .12504E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0039       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.822       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0598       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8147       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2851       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.011       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98860       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94762       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=   6495.505     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3140 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.236       -.42821E-06** at limit **
   2  Prefactor     .10000E-03    152.22       -.11831E-05** at limit **
   3  norm          1.7723        1.1993        .14416E-07   -.13239E-03
   4  Prefactor     .98743E-01    1.7285        .36089E-07   -.70456E-04
   5  norm          22.888        14.641       -.42225E-06   -.52870E-04
   6  Prefactor     2.2374        45.867        .12473E-04    .50821E-04
   7  Prefactor     34.428        63.010        .20568E-05    .23330E-04
   8  Prefactor     5.6132        5.1838        .50340E-06    .74375E-04
   9  Prefactor     3.4835        9.1213       -.27279E-06   -.58393E-04
  10  norm          .10000E-03    1.5465       -.22560E-06** at limit **
  11  Prefactor     .10000E-03    4.1602       -.70205E-07** at limit **
  12  Prefactor     .10000E-03    5.0705       -.28779E-07** at limit **
  13  Prefactor     2.0035        2.5362        .60975E-07   -.86984E-04
  14  norm          .10000E-03    3.2063       -.17215E-07** at limit **
  15  Prefactor     22.822        16.288       -.70129E-07   -.62266E-05
  16  norm          .10000E-03    1.9807       -.16534E-09** at limit **
  17  Prefactor     18.778        32.293        .23486E-05    .35565E-04
  18  Prefactor     8.0532        30.587       -.23030E-05   -.27452E-04
  19  norm          .10000E-03    2.1283        .22496E-08** at limit **
  20  Prefactor     .10000E-03    5.2307       -.31586E-07** at limit **
  21  Prefactor     .10000E-03    2.6954       -.27540E-08** at limit **
  22  norm          1.8149        1.5436        .29197E-06   -.85943E-05
  23  Prefactor     3.2863        5.2976        .11118E-05   -.11939E-02
  24  Prefactor     45.001        72.495       -.83959E-05   -.71568E-04
  25  Normalizat    .98879        .16023       -.65874E-07   -.43460E-04
  26  Prefactor     .94734        .18321       -.63879E-06   -.97752E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77231
  Prefactor  = 0.098743
  norm       = 22.8879
  Prefactor  = 2.23743
  Prefactor  = 34.4279
  Prefactor  = 5.61316
  Prefactor  = 3.48345
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00355
  norm       = 0.0001
  Prefactor  = 22.8217
  norm       = 0.0001
  Prefactor  = 18.7784
  Prefactor  = 8.05316
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81486
  Prefactor  = 3.28625
  Prefactor  = 45.0009
  Normalizat = 0.988789
  Prefactor  = 0.947343
 **********
 **   18 **HESSE 
 **********

 FCN=   6495.505     FROM HESSE     STATUS=OK           466 CALLS     3606 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    153.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7723        1.1905        .70036E-04   -1.5442    
   4  Prefactor     .98743E-01    17.926        .20241E-02   -1.5645    
   5  norm          22.888        14.663        .83736E-04   -1.4751    
   6  Prefactor     2.2374        45.778        .27342E-03   -1.5409    
   7  Prefactor     34.428        62.937        .68299E-04   -1.4534    
   8  Prefactor     5.6132        5.1667        .15877E-03   -1.5234    
   9  Prefactor     3.4835        9.1048        .21667E-03   -1.5335    
  10  norm          .10000E-03    18.534        .19272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1699        .16053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0816        .17722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0035        2.5225        .13858E-03   -1.5425    
  14  norm          .10000E-03    3.2069        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.822        16.291        .83845E-04   -1.4752    
  16  norm          .10000E-03    1.9929        .11074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.778        32.286        .92450E-04   -1.4841    
  18  Prefactor     8.0532        30.713        .14123E-03   -1.5140    
  19  norm          .10000E-03    2.1292        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2461        .17999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7037        .12911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8149        1.5277        .84426E-04   -1.5439    
  23  Prefactor     3.2863        10.495        .11170E-02   -1.5345    
  24  Prefactor     45.001        72.568        .59760E-04   -1.4365    
  25  Normalizat    .98879        .19260        .22006E-03   -.93407    
  26  Prefactor     .94734        .22036        .26223E-03   -.94506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57572e-08
Minuit parameter uncertainties:
  1  1.75132e-05
  2  8.68162e-05
  3  1.19054
  4  2.66035
  5  14.6654
  6  20.2584
  7  63.0586
  8  5.16706
  9  9.10846
  10  0.000163646
  11  2.53078e-05
  12  2.21661e-05
  13  2.52261
  14  4.89726e-06
  15  16.2942
  16  1.94937e-06
  17  32.3163
  18  30.7733
  19  9.90952e-08
  20  3.18301e-06
  21  3.68388e-07
  22  1.5277
  23  10.5006
  24  72.7114
  25  0.192733
  26  0.220569
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.531e-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:  9.473e-01  2.206e-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.888e-01  1.927e-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: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338759/likelihoodResults_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.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) = 6495.50629833
delta logL = -0.0011415922545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6495.5051565
delta logL = 2.40636836679e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4499       1.0000          .0000       10.000    
     3 'Normalizat'    .98879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94734       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6495.505     FROM MIGRAD    STATUS=FAILED        89 CALLS      243 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10797E-03    4.1895        .16376E-01** at limit **
   2  Index         2.1809        7.9561        .50000        .26464E-04
   3  Normalizat    .98879        .33264E-02    .22006E-03    .23868E-04
   4  Prefactor     .94734        .39086E-02    .26223E-03    .61215E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6495.505     FROM SIMPLEX   STATUS=PROGRESS      91 CALLS      334 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10286E-03    4.1895        .37981E-03** at limit **
   2  Index         2.1244        7.9561        .19204E-01    .26464E-04
   3  Normalizat    .98875        .33264E-02    .19685E-04    .23868E-04
   4  Prefactor     .94728        .39086E-02    .28920E-04    .61215E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6495.505     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      379 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10060E-03    9.0142        .17973E-01** at limit **
   2  Index         1.9269        9.0359        .50000        .74877E-05
   3  Normalizat    .98880        .46196E-02    .88022E-05    .19469E-02
   4  Prefactor     .94734        .54283E-02    .10489E-04    .13212E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100602
  Index      = 1.92689
  Normalizat = 0.988795
  Prefactor  = 0.947341
 **********
 **   18 **HESSE 
 **********

 FCN=   6495.505     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      408 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10060E-03    191.56        .18999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9269        5.1777        .50000       -.66191    
   3  Normalizat    .98880        .22075E-01    .17604E-05   -.93407    
   4  Prefactor     .94734        .25939E-01    .20978E-05   -.94506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04959e-08
Minuit parameter uncertainties:
  1  0.0215452
  2  874.154
  3  0.0220753
  4  0.0259393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338759': 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) = 6495.50515336
delta logL = 3.38181052939e-06

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.006e-04  2.155e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.927e+00  8.742e+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:  9.473e-01  2.594e-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:  9.888e-01  2.208e-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/338759/cmap_HighResolution_245548801_245808001_4FGL_J1419.5+3821_daily_bin24.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-09 09:30:04.883706', job_id='338759', GAL2='0.95', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631205004.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='24' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 338759: <4FGL_J1419.5+3821_daily_bin24> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin24> 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) <bullet0074>, 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:30:05 2021
Results reported at Thu Sep  9 09:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin24 214.894 38.3657 245548801 245808001 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

