/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 127 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin265
RA = 214.894, Dec = 38.3657
tmin = 308016001, tmax = 308275201
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='340161', job_status='RUN', time_executed='2021-09-09 09:22:48.834677', time_epoch_executed='1631204568.83' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340161/ft1_4FGL_J1419.5+3821_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340161/ft2_4FGL_J1419.5+3821_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340161/ft1_4FGL_J1419.5+3821_daily_bin265.fits outfile=/scratch/kocevski/340161/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin265.fits ra=214.894 dec=38.3657 rad=12.0 tmin=308016001.0 tmax=308275201.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.45
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340161/ft1_filtered_4FGL_J1419.5+3821_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/340161/ft2_4FGL_J1419.5+3821_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/340161/ltcube_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.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/340161/ft2_4FGL_J1419.5+3821_daily_bin265.fits
.....................!
real 12.08
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340161/ft1_filtered_4FGL_J1419.5+3821_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/340161/ft2_4FGL_J1419.5+3821_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/340161/ltcube_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.fits outfile=/scratch/kocevski/340161/expmap_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.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/340161/ltcube_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.fits
.....................!
real 192.83
user 185.43
sys 5.18

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/340161/ft1_filtered_4FGL_J1419.5+3821_daily_bin265.fits scfile=/scratch/kocevski/340161/ft2_4FGL_J1419.5+3821_daily_bin265.fits outfile=/scratch/kocevski/340161/cmap_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340161/ft1_filtered_4FGL_J1419.5+3821_daily_bin265.fits scfile=/scratch/kocevski/340161/ft2_4FGL_J1419.5+3821_daily_bin265.fits outfile=/scratch/kocevski/340161/cmap_HighResolution_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .65250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.117       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0199       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.318       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8249       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2338       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6626       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89078       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2189       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=   6073.586     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3033 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.877       -.37842E-05** at limit **
   2  Prefactor     .10000E-03    15.355       -.58033E-05** at limit **
   3  norm          .10000E-03    .41004       -.55961E-07** at limit **
   4  Prefactor     .10000E-03    3.3338        .68182E-06** at limit **
   5  norm          .10000E-03    4.4799       -.23717E-06** at limit **
   6  Prefactor     .10000E-03    12.146        .13629E-05** at limit **
   7  Prefactor     .10000E-03    10.786        .55610E-05** at limit **
   8  Prefactor     .10000E-03    1.1463       -.11521E-07** at limit **
   9  Prefactor     .10000E-03    8.4452       -.23876E-05** at limit **
  10  norm          .65202        3.5713       -.17617E-05   -.13758E-02
  11  Prefactor     15.268        16.434        .89186E-06    .97654E-05
  12  Prefactor     10.115        17.592       -.11749E-05    .29530E-05
  13  Prefactor     .10000E-03    1.8528       -.62229E-08** at limit **
  14  norm          .10000E-03    4.6222        .51744E-06** at limit **
  15  Prefactor     9.0189        12.784       -.17808E-06   -.11026E-04
  16  norm          .10000E-03    4.3683       -.86618E-06** at limit **
  17  Prefactor     .10000E-03    23.826        .10732E-04** at limit **
  18  Prefactor     19.312        34.993       -.10041E-04    .15891E-03
  19  norm          .10000E-03    3.3639       -.59756E-06** at limit **
  20  Prefactor     2.8263        12.699       -.23190E-06   -.12235E-03
  21  Prefactor     .10000E-03    4.6848        .67437E-06** at limit **
  22  norm          1.2339        1.3394       -.11581E-06   -.59983E-03
  23  Prefactor     7.6626        7.4676        .16946E-06    .34155E-03
  24  Prefactor     .10000E-03    33.099       -.66377E-05** at limit **
  25  Normalizat    .89077        .16164        .11907E-05    .44206E-04
  26  Prefactor     1.2190        .19080        .87521E-07    .97982E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.652018
  Prefactor  = 15.2683
  Prefactor  = 10.1153
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.01892
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 19.3117
  norm       = 0.0001
  Prefactor  = 2.82634
  Prefactor  = 0.0001
  norm       = 1.2339
  Prefactor  = 7.66261
  Prefactor  = 0.000100001
  Normalizat = 0.890767
  Prefactor  = 1.21895
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.586     FROM HESSE     STATUS=OK           448 CALLS     3481 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .71563        .96855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4243        .27740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4869        .16109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1504        .81483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .65202        4.1579        .29876E-03   -1.5546    
  11  Prefactor     15.268        16.369        .10250E-03   -1.4926    
  12  Prefactor     10.115        17.540        .12597E-03   -1.5072    
  13  Prefactor     .10000E-03    1.9152        .20703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6223        .16361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0189        12.782        .13345E-03   -1.5107    
  16  norm          .10000E-03    4.4081        .15888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.312        34.572        .91126E-04   -1.4829    
  19  norm          .10000E-03    3.3650        .13949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8263        12.637        .24198E-03   -1.5372    
  21  Prefactor     .10000E-03    4.7174        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2339        1.3128        .89745E-04   -1.5486    
  23  Prefactor     7.6626        7.4801        .72434E-03   -1.5154    
  24  Prefactor     .10000E-03    32.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89077        .19705        .23109E-03   -.96785    
  26  Prefactor     1.2190        .23348        .24364E-03   -.85750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91052e-09
Minuit parameter uncertainties:
  1  0.000133603
  2  0.000214054
  3  4.07284e-06
  4  2.68282e-05
  5  1.37668e-06
  6  5.24272e-05
  7  0.000177979
  8  8.18609e-07
  9  5.82315e-05
  10  3.29314
  11  16.374
  12  17.5486
  13  6.77146e-06
  14  1.00365e-05
  15  12.7858
  16  2.12453e-05
  17  0.000511982
  18  34.6083
  19  1.1682e-05
  20  11.9564
  21  1.19796e-05
  22  1.31286
  23  7.48097
  24  0.000369233
  25  0.197206
  26  0.233684
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.527e+01  1.637e+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.219e+00  2.337e-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:  8.908e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.22e-05

TS (Fixed Index): 2.28
Ra Dec: 214.894 38.366
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340161/likelihoodResults_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.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) = 6073.52012919
delta logL = 0.0660826439971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6073.51394197
delta logL = 0.0722698585187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.306       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0708       1.0000          .0000       10.000    
     3 'Normalizat'    .91269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2028       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=   6073.514     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.312        17.257        .65504E-06    .14857E-04
   2  Index         2.0718        1.1077        .19049E-04    .43941E-05
   3  Normalizat    .91265        .16700       -.13887E-05    .44917E-05
   4  Prefactor     1.2027        .19443        .81451E-06   -.10696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3122
  Index      = 2.07178
  Normalizat = 0.912654
  Prefactor  = 1.20273
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.514     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.312        17.233        .96277E-04   -1.4876    
   2  Index         2.0718        1.1066        .10159E-02   -.62567    
   3  Normalizat    .91265        .19896        .22868E-03   -.96017    
   4  Prefactor     1.2027        .23465        .24507E-03   -.86247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22137e-11
Minuit parameter uncertainties:
  1  17.238
  2  1.12083
  3  0.199121
  4  0.234854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340161': 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) = 6073.51394137
delta logL = 0.0722704609479

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.731e+01  1.724e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.072e+00  1.121e+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.203e+00  2.349e-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.127e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.07 +/- 1.12
Photon Flux (Free Index): 2.28e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.58e-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/340161/cmap_HighResolution_308016001_308275201_4FGL_J1419.5+3821_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='1.33e-05', photon_flux_error='4.08e-08', dlogl='7.23e-02', energy_flux='1.14e-05', photon_flux2='2.28e-08', job_status='DONE', time_completed='2021-09-09 09:34:48.453938', photon_index_error2='1.12', photon_index2='2.07', ts='2.28', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.58e-05', EG='0.89', time_epoch_completed='1631205288.45', return_code='0', job_id='340161', GAL2='1.20', EG2='0.91', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.72e-08', ts2='2.44', photon_index='2.47' WHERE bin_id='265' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 340161: <4FGL_J1419.5+3821_daily_bin265> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin265> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:31 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:32 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:32 2021
Terminated at Thu Sep  9 09:34:51 2021
Results reported at Thu Sep  9 09:34:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin265 214.894 38.3657 308016001 308275201 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 :                                   711.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            860 sec.

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

