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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin411
RA = 214.894, Dec = 38.3657
tmin = 345859201, tmax = 346118401
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='340375', job_status='RUN', time_executed='2021-09-09 09:21:08.048252', time_epoch_executed='1631204468.05' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340375/ft1_4FGL_J1419.5+3821_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340375/ft2_4FGL_J1419.5+3821_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340375/ft1_4FGL_J1419.5+3821_daily_bin411.fits outfile=/scratch/kocevski/340375/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin411.fits ra=214.894 dec=38.3657 rad=12.0 tmin=345859201.0 tmax=346118401.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.39
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340375/ft1_filtered_4FGL_J1419.5+3821_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/340375/ft2_4FGL_J1419.5+3821_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/340375/ltcube_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.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/340375/ft2_4FGL_J1419.5+3821_daily_bin411.fits
.....................!
real 12.38
user 11.83
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340375/ft1_filtered_4FGL_J1419.5+3821_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/340375/ft2_4FGL_J1419.5+3821_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/340375/ltcube_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.fits outfile=/scratch/kocevski/340375/expmap_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.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/340375/ltcube_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.fits
.....................!
real 190.80
user 185.20
sys 4.90

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/340375/ft1_filtered_4FGL_J1419.5+3821_daily_bin411.fits scfile=/scratch/kocevski/340375/ft2_4FGL_J1419.5+3821_daily_bin411.fits outfile=/scratch/kocevski/340375/cmap_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.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/340375/ft1_filtered_4FGL_J1419.5+3821_daily_bin411.fits scfile=/scratch/kocevski/340375/ft2_4FGL_J1419.5+3821_daily_bin411.fits outfile=/scratch/kocevski/340375/cmap_HighResolution_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.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.60
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0326       1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.331       1.0000         .10000E-03   10000.    
    10 'norm      '    .67929E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5823       1.0000         .10000E-03   10000.    
    14 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.115       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7617       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1590       1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.832       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60677       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4684       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=   6014.077     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3163 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.585       -.13394E-05** at limit **
   2  Prefactor     .10000E-03    96.993        .73243E-06** at limit **
   3  norm          21.057        3.1795        .28476E-07    .24778E-03
   4  Prefactor     1.0321        3.2526       -.45356E-06   -.14094E-04
   5  norm          .10000E-03    26.736        .61386E-06** at limit **
   6  Prefactor     .69142        11.496       -.95914E-06   -.91567E-04
   7  Prefactor     33.598        66.568        .44346E-06    .45590E-04
   8  Prefactor     1.6791        5.0732        .10761E-05    .10745E-02
   9  Prefactor     26.333        24.625       -.31085E-06    .33199E-04
  10  norm          .10194E-03    4.7585        .17160E-05** at limit **
  11  Prefactor     11.426        13.710        .26368E-05    .20836E-03
  12  Prefactor     .10000E-03    15.927        .15160E-06** at limit **
  13  Prefactor     4.5834        3.5128       -.10067E-07    .68417E-05
  14  norm          .10000E-03    13.549       -.36641E-06** at limit **
  15  Prefactor     48.112        28.307        .21343E-06    .58701E-04
  16  norm          .10000E-03    1.9273       -.10486E-06** at limit **
  17  Prefactor     .10000E-03    26.422        .47217E-06** at limit **
  18  Prefactor     4.7614        33.426       -.95469E-06    .10642E-05
  19  norm          .10000E-03    2.8747       -.46119E-07** at limit **
  20  Prefactor     .10000E-03    13.313       -.95786E-06** at limit **
  21  Prefactor     4.1590        4.3412       -.83655E-07    .48873E-05
  22  norm          .10000E-03    .42414        .29361E-07** at limit **
  23  Prefactor     5.2975        14.221       -.48579E-06    .57781E-05
  24  Prefactor     21.826        53.198       -.35342E-07    .10993E-04
  25  Normalizat    .60657        .18599        .12830E-05    .16917E-03
  26  Prefactor     1.4687        .21233        .40723E-06    .19703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.0569
  Prefactor  = 1.03209
  norm       = 0.0001
  Prefactor  = 0.691424
  Prefactor  = 33.5982
  Prefactor  = 1.6791
  Prefactor  = 26.3335
  norm       = 0.000101939
  Prefactor  = 11.4263
  Prefactor  = 0.0001
  Prefactor  = 4.58337
  norm       = 0.0001
  Prefactor  = 48.1123
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76136
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15905
  norm       = 0.0001
  Prefactor  = 5.29747
  Prefactor  = 21.8257
  Normalizat = 0.606569
  Prefactor  = 1.46865
 **********
 **   18 **HESSE 
 **********

 FCN=   6014.077     FROM HESSE     STATUS=OK           466 CALLS     3629 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    97.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.057        3.1808        .51229E-04   -1.4790    
   4  Prefactor     1.0321        3.2461        .23692E-03   -1.5505    
   5  norm          .10000E-03    27.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69142        64.029        .49184E-02   -1.5542    
   7  Prefactor     33.598        66.881        .69100E-04   -1.4548    
   8  Prefactor     1.6791        5.1978        .14241E-02   -1.5449    
   9  Prefactor     26.333        24.664        .78068E-04   -1.4681    
  10  norm          .10194E-03    3.4705        .39056E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.426        14.218        .11844E-03   -1.5032    
  12  Prefactor     .10000E-03    16.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5834        3.5108        .12109E-03   -1.5280    
  14  norm          .10000E-03    13.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.112        28.294        .57808E-04   -1.4320    
  16  norm          .10000E-03    1.9364        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7614        33.430        .18438E-03   -1.5272    
  19  norm          .10000E-03    2.8770        .12842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1590        4.3391        .16019E-03   -1.5300    
  22  norm          .10000E-03    .43035        .49235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.2975        14.232        .17460E-03   -1.5248    
  24  Prefactor     21.826        53.199        .85723E-04   -1.4773    
  25  Normalizat    .60657        .22218        .30050E-03   -1.0771    
  26  Prefactor     1.4687        .25631        .24514E-03   -.78421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60606e-09
Minuit parameter uncertainties:
  1  0.000159834
  2  0.000129137
  3  3.18079
  4  3.24667
  5  4.22811e-05
  6  13.3211
  7  67.0313
  8  5.19921
  9  24.6737
  10  0.00518846
  11  14.2222
  12  0.000141118
  13  3.51097
  14  0.000134892
  15  28.3018
  16  6.93905e-06
  17  4.26114e-05
  18  25.2527
  19  2.17378e-06
  20  7.76102e-05
  21  4.33939
  22  8.5645e-07
  23  14.2416
  24  53.3151
  25  0.222504
  26  0.256537
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.143e+01  1.422e+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.469e+00  2.565e-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:  6.066e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 8.54e-06 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/340375/likelihoodResults_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.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) = 6013.92132328
delta logL = 0.155345550833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6013.91102877
delta logL = 0.165640059514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9480       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0967       1.0000          .0000       10.000    
     3 'Normalizat'    .57687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4931       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=   6013.911     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      258 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9344        149.51        .41162E-02    .31896E-03
   2  Index         3.0977        3.8474        .11822        .14574E-03
   3  Normalizat    .57700        .61950E-01    .69508E-01    .31111E-04
   4  Prefactor     1.4928        .68894E-01    .55077E-01   -.30628E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9344
  Index      = 3.09773
  Normalizat = 0.577002
  Prefactor  = 1.49283
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.911     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9344        23.628        .16465E-03   -1.5221    
   2  Index         3.0977        2.1789        .67573E-02   -.39029    
   3  Normalizat    .57700        .22263        .30766E-03   -1.0897    
   4  Prefactor     1.4928        .26394        .24350E-03   -.77741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29815e-10
Minuit parameter uncertainties:
  1  23.6652
  2  2.26882
  3  0.22298
  4  0.264186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340375': 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) = 6013.91102742
delta logL = 0.165641415962

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  5.934e+00  2.367e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.098e+00  2.269e+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.493e+00  2.642e-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:  5.770e-01  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 214.894 38.366
Photon Index (Free Index): 3.10 +/- 2.27
Photon Flux (Free Index): 4.63e-08 +/- 4.95e-08
Energy Flux (Free Index): 8.84e-06 +/- 9.63e-06

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/340375/cmap_HighResolution_345859201_346118401_4FGL_J1419.5+3821_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='8.84e-06', photon_flux_error='3.55e-08', dlogl='1.66e-01', energy_flux='8.54e-06', photon_flux2='4.63e-08', job_status='DONE', time_completed='2021-09-09 09:33:15.761063', photon_index_error2='2.27', photon_index2='3.10', ts='1.12', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.63e-06', EG='0.61', time_epoch_completed='1631205195.76', return_code='0', job_id='340375', GAL2='1.49', EG2='0.58', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.95e-08', ts2='1.49', photon_index='2.47' WHERE bin_id='411' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:33:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 340375: <4FGL_J1419.5+3821_daily_bin411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin411 214.894 38.3657 345859201 346118401 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 :                                   721.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

