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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1225
RA = 214.894, Dec = 38.3657
tmin = 556848001, tmax = 557107201
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='344539', job_status='RUN', time_executed='2021-09-09 09:37:42.168887', time_epoch_executed='1631205462.17' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344539/ft1_4FGL_J1419.5+3821_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits


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

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

Done.
real 3.60
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344539/ft1_filtered_4FGL_J1419.5+3821_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/344539/ltcube_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.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/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits
.....................!
real 12.16
user 11.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344539/ft1_filtered_4FGL_J1419.5+3821_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/344539/ltcube_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.fits outfile=/scratch/kocevski/344539/expmap_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.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/344539/ltcube_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.fits
.....................!
real 189.10
user 184.90
sys 3.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/344539/ft1_filtered_4FGL_J1419.5+3821_daily_bin1225.fits scfile=/scratch/kocevski/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits outfile=/scratch/kocevski/344539/cmap_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344539/ft1_filtered_4FGL_J1419.5+3821_daily_bin1225.fits scfile=/scratch/kocevski/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits outfile=/scratch/kocevski/344539/cmap_HighResolution_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.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/344539/ft1_filtered_4FGL_J1419.5+3821_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/344539/ft2_4FGL_J1419.5+3821_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344539/Model_4FGL_J1419.5+3821_daily_bin1225.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/344539/ft1_filtered_4FGL_J1419.5+3821_daily_bin1225.fits.....................!
real 44.85
user 43.48
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    160.11       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1671       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8859       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.918       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.442       1.0000         .10000E-03   10000.    
    19 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5504       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .84176       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1487       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73041       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=   5616.342     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3073 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.257        .12987E-04** at limit **
   2  Prefactor     160.10        113.15       -.39573E-05    .10139E-04
   3  norm          1.8538        1.5826       -.91187E-07   -.31754E-03
   4  Prefactor     .10000E-03    1.7797        .96270E-08** at limit **
   5  norm          .10000E-03    9.3532       -.18764E-05** at limit **
   6  Prefactor     .10000E-03    27.747       -.17019E-04** at limit **
   7  Prefactor     .10000E-03    39.406        .22132E-04** at limit **
   8  Prefactor     3.4541        4.5044       -.38356E-06   -.52896E-03
   9  Prefactor     .10000E-03    11.772        .24346E-05** at limit **
  10  norm          4.1673        3.6767       -.88529E-06   -.64059E-04
  11  Prefactor     4.8966        6.6624       -.10049E-06   -.33040E-05
  12  Prefactor     .10000E-03    4.3070        .14570E-05** at limit **
  13  Prefactor     4.8857        3.2364        .35473E-06   -.16451E-04
  14  norm          .10000E-03    5.2574        .44895E-05** at limit **
  15  Prefactor     23.920        23.063        .65863E-06    .62643E-04
  16  norm          .10000E-03    2.0258       -.96443E-07** at limit **
  17  Prefactor     .10000E-03    56.172       -.21892E-04** at limit **
  18  Prefactor     37.435        27.051       -.42749E-05    .87421E-05
  19  norm          .10000E-03    4.9220       -.49927E-05** at limit **
  20  Prefactor     .10000E-03    3.9933       -.65956E-06** at limit **
  21  Prefactor     1.5503        2.4635       -.14199E-06   -.19899E-03
  22  norm          .10000E-03    .21527        .91202E-08** at limit **
  23  Prefactor     .82050        5.2534       -.96220E-06   -.59318E-04
  24  Prefactor     .10000E-03    13.603        .12387E-06** at limit **
  25  Normalizat    1.1486        .17073        .85376E-06    .19871E-03
  26  Prefactor     .73058        .18513        .39874E-06    .20514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 160.101
  norm       = 1.85383
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.45406
  Prefactor  = 0.0001
  norm       = 4.16734
  Prefactor  = 4.89656
  Prefactor  = 0.0001
  Prefactor  = 4.88572
  norm       = 0.0001
  Prefactor  = 23.9201
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4346
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55033
  norm       = 0.0001
  Prefactor  = 0.820498
  Prefactor  = 0.0001
  Normalizat = 1.14864
  Prefactor  = 0.730579
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.342     FROM HESSE     STATUS=OK           452 CALLS     3525 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     160.10        114.39        .31869E-04   -1.3171    
   3  norm          1.8538        1.5733        .83599E-04   -1.5436    
   4  Prefactor     .10000E-03    1.7928        .97615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.3837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4541        4.5024        .17549E-03   -1.5336    
   9  Prefactor     .10000E-03    11.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1673        3.6783        .13000E-03   -1.5300    
  11  Prefactor     4.8966        6.6545        .18179E-03   -1.5265    
  12  Prefactor     .10000E-03    4.3103        .15187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8857        3.2379        .10535E-03   -1.5266    
  14  norm          .10000E-03    5.2649        .16786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.920        23.129        .81905E-04   -1.4729    
  16  norm          .10000E-03    2.0415        .10415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.435        27.095        .65499E-04   -1.4484    
  19  norm          .10000E-03    5.0368        .32400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0043        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5503        2.4331        .14442E-03   -1.5459    
  22  norm          .10000E-03    .21639        .33947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .82050        21.751        .32845E-02   -1.5527    
  24  Prefactor     .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1486        .20231        .20456E-03   -.88205    
  26  Prefactor     .73058        .21784        .28417E-03   -1.0234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39873e-08
Minuit parameter uncertainties:
  1  3.84799e-06
  2  114.544
  3  1.57332
  4  1.95735e-06
  5  9.92926e-06
  6  0.000277461
  7  1.74151e-05
  8  4.50286
  9  1.86088e-05
  10  3.67852
  11  6.65548
  12  1.18075e-06
  13  3.23805
  14  2.70135e-06
  15  23.1378
  16  1.08352e-06
  17  6.06e-05
  18  27.1042
  19  2.95084e-05
  20  2.54081e-06
  21  2.43323
  22  1.30143e-07
  23  8.45197
  24  1.46103e-06
  25  0.202444
  26  0.218097
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.897e+00  6.655e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  7.306e-01  2.181e-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.149e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 3.66e-06 +/- 4.97e-06

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

Saving results to:
/scratch/kocevski/344539/likelihoodResults_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.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) = 5615.86483665
delta logL = 0.477530306291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5615.78660403
delta logL = 0.555762924965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2770       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5733       1.0000          .0000       10.000    
     3 'Normalizat'    1.1587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72164       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=   5615.787     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2950        13.258        .34837E-02   -.50877E-03
   2  Index         1.5760        .77905        .29023       -.29259E-04
   3  Normalizat    1.1585        .16242        .35993E-01   -.26805E-04
   4  Prefactor     .72208        .18433        .64542E-01    .18196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.29505
  Index      = 1.57597
  Normalizat = 1.1585
  Prefactor  = 0.722077
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.787     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2950        9.8294        .69674E-03   -1.5132    
   2  Index         1.5760        .71284        .11372E-01   -.75434    
   3  Normalizat    1.1585        .18902        .20377E-03   -.87895    
   4  Prefactor     .72208        .21465        .28553E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0181e-12
Minuit parameter uncertainties:
  1  9.83131
  2  0.71747
  3  0.189131
  4  0.214898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344539': 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) = 5615.78659412
delta logL = 0.555772832458

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  8.295e+00  9.831e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.576e+00  7.175e-01  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.221e-01  2.149e-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.159e+00  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.58 +/- 0.72
Photon Flux (Free Index): 6.10e-09 +/- 8.64e-09
Energy Flux (Free Index): 1.49e-05 +/- 2.92e-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/344539/cmap_HighResolution_556848001_557107201_4FGL_J1419.5+3821_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='1.49e-05', photon_flux_error='1.66e-08', dlogl='5.56e-01', energy_flux='3.66e-06', photon_flux2='6.10e-09', job_status='DONE', time_completed='2021-09-09 09:50:56.095085', photon_index_error2='0.72', photon_index2='1.58', ts='1.11', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='6.59e-08', energy_flux_error2='2.92e-05', EG='1.15', time_epoch_completed='1631206256.1', return_code='0', job_id='344539', GAL2='0.72', EG2='1.16', return_code2='0', energy_flux_error='4.97e-06', photon_flux_error2='8.64e-09', ts2='2.22', photon_index='2.47' WHERE bin_id='1225' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 344539: <4FGL_J1419.5+3821_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1225 214.894 38.3657 556848001 557107201 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 :                                   678.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

