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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin33
RA = 214.894, Dec = 38.3657
tmin = 247881601, tmax = 248140801
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='338773', job_status='RUN', time_executed='2021-09-09 09:15:54.050742', time_epoch_executed='1631204154.05' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338773/ft1_4FGL_J1419.5+3821_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338773/ft2_4FGL_J1419.5+3821_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338773/ft1_4FGL_J1419.5+3821_daily_bin33.fits outfile=/scratch/kocevski/338773/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin33.fits ra=214.894 dec=38.3657 rad=12.0 tmin=247881601.0 tmax=248140801.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.39
user 1.21
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338773/ft1_filtered_4FGL_J1419.5+3821_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/338773/ft2_4FGL_J1419.5+3821_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/338773/ltcube_247881601_248140801_4FGL_J1419.5+3821_daily_bin33.fits outfile=/scratch/kocevski/338773/expmap_247881601_248140801_4FGL_J1419.5+3821_daily_bin33.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/338773/ltcube_247881601_248140801_4FGL_J1419.5+3821_daily_bin33.fits
.....................!
real 192.22
user 186.30
sys 5.57

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/338773/ft1_filtered_4FGL_J1419.5+3821_daily_bin33.fits scfile=/scratch/kocevski/338773/ft2_4FGL_J1419.5+3821_daily_bin33.fits outfile=/scratch/kocevski/338773/cmap_247881601_248140801_4FGL_J1419.5+3821_daily_bin33.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.894 yref=38.3657 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35909E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4343       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22998E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .64284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29413E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .87904       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88920       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0445       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=   5540.810     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     2745 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0181        77.109        .60792E-05    .19385E-04
   2  Prefactor     .10133E-03    50.904       -.32414E-05** at limit **
   3  norm          .10000E-03    .77812       -.14733E-07** at limit **
   4  Prefactor     6.4342        4.0963       -.30122E-07    .34783E-04
   5  norm          .10000E-03    7.7772        .63243E-05** at limit **
   6  Prefactor     1.2402        2.3743        .32936E-06   -.60282E-03
   7  Prefactor     .10000E-03    14.097        .93382E-05** at limit **
   8  Prefactor     2.5761        2.6761       -.24632E-07   -.54847E-04
   9  Prefactor     .10020E-03    8.2967        .79924E-06** at limit **
  10  norm          .64367        2.6293        .99075E-08    .65607E-04
  11  Prefactor     .10000E-03    28.553        .13665E-05** at limit **
  12  Prefactor     .10132E-03    10.150       -.41247E-05** at limit **
  13  Prefactor     .10000E-03    1.9974       -.28575E-07** at limit **
  14  norm          .10000E-03    28.763        .16214E-05** at limit **
  15  Prefactor     .10000E-03    5.9093       -.11194E-08** at limit **
  16  norm          .10000E-03    2.0143       -.63006E-07** at limit **
  17  Prefactor     .10000E-03    14.507       -.91675E-05** at limit **
  18  Prefactor     .10000E-03    7.6476       -.71773E-05** at limit **
  19  norm          10.694        7.9008        .59181E-08    .18490E-04
  20  Prefactor     .10000E-03    3.3404       -.41712E-07** at limit **
  21  Prefactor     .10000E-03    7.1058        .10316E-05** at limit **
  22  norm          .87867        1.7036       -.11060E-06   -.14998E-03
  23  Prefactor     .10000E-03    10.621       -.10408E-05** at limit **
  24  Prefactor     .10000E-03    34.144       -.24760E-06** at limit **
  25  Normalizat    .88921        .16169        .57994E-06    .55485E-03
  26  Prefactor     1.0446        .18861       -.25606E-06    .41228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.01806
  Prefactor  = 0.000101328
  norm       = 0.0001
  Prefactor  = 6.43424
  norm       = 0.0001
  Prefactor  = 1.24022
  Prefactor  = 0.000100001
  Prefactor  = 2.57613
  Prefactor  = 0.000100201
  norm       = 0.643667
  Prefactor  = 0.000100002
  Prefactor  = 0.000101319
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 10.6944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.878669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.889211
  Prefactor  = 1.04457
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.810     FROM HESSE     STATUS=OK           464 CALLS     3209 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0181        76.907        .15183E-03   -1.5178    
   2  Prefactor     .10133E-03    49.867        .15372       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9128        .12676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4342        4.0900        .11520E-03   -1.5201    
   5  norm          .10000E-03    7.8065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2402        26.910        .20205E-02   -1.5485    
   7  Prefactor     .10000E-03    14.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5761        2.6666        .12086E-03   -1.5387    
   9  Prefactor     .10020E-03    99.456        .41135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .64367        2.5449        .23108E-03   -1.5548    
  11  Prefactor     .10000E-03    29.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10132E-03    64.211        .42160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8299        .20273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    29.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9121        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0248        .10315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.694        7.9019        .61258E-03   -1.5054    
  20  Prefactor     .10000E-03    3.3439        .13286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .87867        1.6787        .12567E-03   -1.5520    
  23  Prefactor     .10000E-03    10.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88921        .18966        .21481E-03   -.96840    
  26  Prefactor     1.0446        .22615        .24019E-03   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71265e-08
Minuit parameter uncertainties:
  1  46.5404
  2  0.0162912
  3  4.89076e-06
  4  4.09021
  5  0.000115424
  6  11.5596
  7  0.000226704
  8  2.66672
  9  0.00894732
  10  2.54537
  11  0.000435618
  12  0.0184229
  13  4.1107e-06
  14  0.000233112
  15  2.24015e-06
  16  2.0131e-06
  17  0.000220729
  18  0.000129424
  19  7.90267
  20  2.43284e-07
  21  1.99831e-05
  22  1.67877
  23  2.27554e-05
  24  7.55022e-06
  25  0.189804
  26  0.22636
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.356e-04  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.045e+00  2.264e-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.892e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/338773/likelihoodResults_247881601_248140801_4FGL_J1419.5+3821_daily_bin33.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) = 5540.81057942
delta logL = -0.000163452814377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5540.81041578
delta logL = 1.86209945241e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5449       1.0000          .0000       10.000    
     3 'Normalizat'    .88930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0445       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=   5540.810     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      222 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    2.6864        .90712E-01** at limit **
   2  Index         2.6473        2.8427        .50000       -.26974E-04
   3  Normalizat    .88921        .26168E-02    .44765E-01    .42237E-04
   4  Prefactor     1.0446        .31616E-02    .40244E-01    .28136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100186
  Index      = 2.64727
  Normalizat = 0.88921
  Prefactor  = 1.04458
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.810     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      257 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    7995.8        .34075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6473        8.4500        .50000       -.48991    
   3  Normalizat    .88921        .49717E-01    .21481E-03   -.96840    
   4  Prefactor     1.0446        .59310E-01    .24019E-03   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.83469e-08
Minuit parameter uncertainties:
  1  0.076346
  2  48.2416
  3  0.0497191
  4  0.0593139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338773': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5540.81041498
delta logL = 9.83872268989e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.002e-04  7.635e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.647e+00  4.824e+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:  1.045e+00  5.931e-02  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  8.892e-01  4.972e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.894 38.366

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/338773/cmap_HighResolution_247881601_248140801_4FGL_J1419.5+3821_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-09 09:26:40.406205', job_id='338773', GAL2='1.04', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631204800.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='9.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='33' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:26:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 338773: <4FGL_J1419.5+3821_daily_bin33> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin33> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:37 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:38 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:38 2021
Terminated at Thu Sep  9 09:26:40 2021
Results reported at Thu Sep  9 09:26:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin33 214.894 38.3657 247881601 248140801 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 :                                   644.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            663 sec.

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

