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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin23
RA = 214.894, Dec = 38.3657
tmin = 245289601, tmax = 245548801
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='338757', job_status='RUN', time_executed='2021-09-09 09:19:38.655086', time_epoch_executed='1631204378.66' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338757

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338757/ft1_4FGL_J1419.5+3821_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338757/ft2_4FGL_J1419.5+3821_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338757/ft1_4FGL_J1419.5+3821_daily_bin23.fits outfile=/scratch/kocevski/338757/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin23.fits ra=214.894 dec=38.3657 rad=12.0 tmin=245289601.0 tmax=245548801.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.45
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338757/ft1_filtered_4FGL_J1419.5+3821_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/338757/ft2_4FGL_J1419.5+3821_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/338757/ltcube_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.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/338757/ft2_4FGL_J1419.5+3821_daily_bin23.fits
.....................!
real 12.68
user 12.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338757/ft1_filtered_4FGL_J1419.5+3821_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/338757/ft2_4FGL_J1419.5+3821_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/338757/ltcube_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.fits outfile=/scratch/kocevski/338757/expmap_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.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/338757/ltcube_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.fits
.....................!
real 190.92
user 185.91
sys 4.66

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/338757/ft1_filtered_4FGL_J1419.5+3821_daily_bin23.fits scfile=/scratch/kocevski/338757/ft2_4FGL_J1419.5+3821_daily_bin23.fits outfile=/scratch/kocevski/338757/cmap_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338757/ft1_filtered_4FGL_J1419.5+3821_daily_bin23.fits scfile=/scratch/kocevski/338757/ft2_4FGL_J1419.5+3821_daily_bin23.fits outfile=/scratch/kocevski/338757/cmap_HighResolution_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .77770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8960       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20156E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.003       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7490       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3835       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3712       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.147       1.0000         .10000E-03   10000.    
    19 'norm      '    4.9221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9693       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86561E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3130       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88178       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92959       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=   5683.951     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3083 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.246       -.18486E-05** at limit **
   2  Prefactor     .10000E-03    28.114       -.11683E-05** at limit **
   3  norm          .77767        1.2477       -.37375E-06   -.13215E-02
   4  Prefactor     4.8963        4.3606       -.48225E-06   -.22689E-03
   5  norm          .10000E-03    9.7713        .22510E-06** at limit **
   6  Prefactor     .10000E-03    4.6815        .20368E-06** at limit **
   7  Prefactor     .10001E-03    144.14       -.44241E-05** at limit **
   8  Prefactor     3.7536        6.0664       -.35573E-05    .71365E-04
   9  Prefactor     31.997        22.584        .97865E-06    .38168E-04
  10  norm          .10000E-03    1.3314        .17401E-06** at limit **
  11  Prefactor     8.7487        8.8396       -.19688E-06   -.45260E-04
  12  Prefactor     .10000E-03    6.3263        .42973E-07** at limit **
  13  Prefactor     4.3835        3.0849       -.12490E-06   -.17432E-03
  14  norm          6.7686        7.2402        .12762E-06    .23767E-04
  15  Prefactor     2.3750        31.891       -.55633E-05   -.50612E-04
  16  norm          .10000E-03    2.0753        .28490E-06** at limit **
  17  Prefactor     .10000E-03    11.944       -.17410E-05** at limit **
  18  Prefactor     28.144        24.404        .20699E-06   -.36903E-05
  19  norm          4.9226        6.1344        .14938E-05   -.34775E-03
  20  Prefactor     6.9975        16.218       -.12211E-04   -.11352E-03
  21  Prefactor     .10005E-03    7.2192        .48748E-05** at limit **
  22  norm          2.3180        1.5878       -.13873E-06   -.40944E-02
  23  Prefactor     .10000E-03    8.9802        .26085E-06** at limit **
  24  Prefactor     .10000E-03    27.010        .20594E-05** at limit **
  25  Normalizat    .88164        .16276        .18952E-05   -.47143E-03
  26  Prefactor     .92979        .17960        .37104E-06   -.30043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.777669
  Prefactor  = 4.89629
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 3.75364
  Prefactor  = 31.9974
  norm       = 0.0001
  Prefactor  = 8.74872
  Prefactor  = 0.0001
  Prefactor  = 4.38354
  norm       = 6.76865
  Prefactor  = 2.37503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.1435
  norm       = 4.92264
  Prefactor  = 6.99753
  Prefactor  = 0.000100054
  norm       = 2.31803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.881635
  Prefactor  = 0.929786
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.951     FROM HESSE     STATUS=OK           458 CALLS     3541 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .77767        1.1401        .10191E-02   -1.5532    
   4  Prefactor     4.8963        4.3763        .14087E-03   -1.5265    
   5  norm          .10000E-03    9.8274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6826        .15931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    144.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7536        6.1124        .20823E-03   -1.5320    
   9  Prefactor     31.997        22.669        .70830E-04   -1.4576    
  10  norm          .10000E-03    1.3459        .84918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7487        8.8462        .13551E-03   -1.5116    
  12  Prefactor     .10000E-03    6.3421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3835        3.0824        .10665E-03   -1.5289    
  14  norm          6.7686        7.2420        .15422E-03   -1.5188    
  15  Prefactor     2.3750        32.373        .26608E-03   -1.5400    
  16  norm          .10000E-03    2.0842        .10606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.144        24.403        .75513E-04   -1.4646    
  19  norm          4.9226        6.1061        .18129E-03   -1.5264    
  20  Prefactor     6.9975        16.329        .15197E-03   -1.5179    
  21  Prefactor     .10005E-03    17.814        .35143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3180        1.5007        .70306E-04   -1.5403    
  23  Prefactor     .10000E-03    9.1272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88164        .19084        .22048E-03   -.97108    
  26  Prefactor     .92979        .21135        .25144E-03   -.95108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77026e-09
Minuit parameter uncertainties:
  1  0.000121614
  2  6.04088e-05
  3  1.14008
  4  4.37655
  5  3.53472e-05
  6  8.32587e-06
  7  0.00235957
  8  6.1134
  9  22.6749
  10  5.14333e-06
  11  8.84754
  12  2.6168e-06
  13  3.08255
  14  7.2429
  15  17.5483
  16  1.30463e-06
  17  8.78333e-05
  18  24.4112
  19  6.10684
  20  16.3389
  21  0.0019595
  22  1.50068
  23  3.41745e-05
  24  0.000148016
  25  0.190986
  26  0.211542
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  8.749e+00  8.848e+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:  9.298e-01  2.115e-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.816e-01  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 6.54e-06 +/- 6.61e-06

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

Saving results to:
/scratch/kocevski/338757/likelihoodResults_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.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) = 5683.88787092
delta logL = 0.0635466275808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.88533392
delta logL = 0.0660836205461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.576       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1063       1.0000          .0000       10.000    
     3 'Normalizat'    .89179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92278       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=   5683.885     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      252 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.609        385.56        .30801E-02   -.36746E-03
   2  Index         2.1108        5.4087        .25211       -.65846E-04
   3  Normalizat    .89130        .81871E-01    .44797E-01   -.79550E-03
   4  Prefactor     .92303        .67189E-01    .45295E-01   -.66606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6091
  Index      = 2.11082
  Normalizat = 0.891296
  Prefactor  = 0.923032
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.885     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.609        11.564        .12320E-03   -1.5056    
   2  Index         2.1108        .97781        .10707E-01   -.61607    
   3  Normalizat    .89130        .18014        .21939E-03   -.96767    
   4  Prefactor     .92303        .20967        .25224E-03   -.95341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89267e-10
Minuit parameter uncertainties:
  1  11.5662
  2  0.987413
  3  0.180257
  4  0.209859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338757': 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) = 5683.88531197
delta logL = 0.0661055703022

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.061e+01  1.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.111e+00  9.874e-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:  9.230e-01  2.099e-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.913e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.11 +/- 0.99
Photon Flux (Free Index): 1.48e-08 +/- 2.37e-08
Energy Flux (Free Index): 7.93e-06 +/- 1.09e-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/338757/cmap_HighResolution_245289601_245548801_4FGL_J1419.5+3821_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='7.93e-06', photon_flux_error='2.21e-08', dlogl='6.61e-02', energy_flux='6.54e-06', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-09 09:31:00.401801', photon_index_error2='0.99', photon_index2='2.11', ts='2.11', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.87e-08', energy_flux_error2='1.09e-05', EG='0.88', time_epoch_completed='1631205060.4', return_code='0', job_id='338757', GAL2='0.92', EG2='0.89', return_code2='0', energy_flux_error='6.61e-06', photon_flux_error2='2.37e-08', ts2='2.24', photon_index='2.47' WHERE bin_id='23' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 338757: <4FGL_J1419.5+3821_daily_bin23> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin23> 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) <bullet0066>, 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:31:00 2021
Results reported at Thu Sep  9 09:31:00 2021

Your job looked like:

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

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

