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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin8
RA = 214.894, Dec = 38.3657
tmin = 241401601, tmax = 241660801
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='338735', job_status='RUN', time_executed='2021-09-09 09:16:12.454052', time_epoch_executed='1631204172.45' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338735/ft1_4FGL_J1419.5+3821_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338735/ft2_4FGL_J1419.5+3821_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338735/ft1_4FGL_J1419.5+3821_daily_bin8.fits outfile=/scratch/kocevski/338735/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin8.fits ra=214.894 dec=38.3657 rad=12.0 tmin=241401601.0 tmax=241660801.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.44
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338735/ft1_filtered_4FGL_J1419.5+3821_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/338735/ft2_4FGL_J1419.5+3821_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/338735/ltcube_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.fits outfile=/scratch/kocevski/338735/expmap_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.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/338735/ltcube_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.fits
.....................!
real 189.60
user 184.86
sys 4.38

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/338735/ft1_filtered_4FGL_J1419.5+3821_daily_bin8.fits scfile=/scratch/kocevski/338735/ft2_4FGL_J1419.5+3821_daily_bin8.fits outfile=/scratch/kocevski/338735/cmap_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338735/ft1_filtered_4FGL_J1419.5+3821_daily_bin8.fits scfile=/scratch/kocevski/338735/ft2_4FGL_J1419.5+3821_daily_bin8.fits outfile=/scratch/kocevski/338735/cmap_HighResolution_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.025       1.0000         .10000E-03   10000.    
     2 'Prefactor '    95.580       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.578       1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10680E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.327       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36463E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.677       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.386       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9098       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1911       1.0000         .10000E-03   10000.    
    22 'norm      '    .69684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96217       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2639       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=   8241.864     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3107 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.027        46.912       -.71733E-06   -.17167E-04
   2  Prefactor     95.576        69.312        .17098E-05    .71442E-04
   3  norm          .10000E-03    .47240       -.16403E-06** at limit **
   4  Prefactor     10.578        4.5313        .51078E-06    .64293E-03
   5  norm          .10000E-03    15.235       -.90850E-06** at limit **
   6  Prefactor     .10000E-03    9.4532        .98830E-06** at limit **
   7  Prefactor     .10001E-03    96.362        .96306E-05** at limit **
   8  Prefactor     .10000E-03    1.9778       -.74232E-07** at limit **
   9  Prefactor     38.299        22.343        .42660E-06    .59504E-05
  10  norm          2.8895        3.9964       -.50089E-06    .24135E-03
  11  Prefactor     .10000E-03    9.2418       -.18452E-05** at limit **
  12  Prefactor     .10001E-03    46.999       -.11487E-04** at limit **
  13  Prefactor     .10000E-03    1.2437       -.10528E-06** at limit **
  14  norm          2.3259        8.3647       -.83683E-06    .79882E-04
  15  Prefactor     27.680        24.499       -.88567E-06   -.98381E-04
  16  norm          1.6143        5.1732       -.14103E-05    .47336E-03
  17  Prefactor     28.390        26.547       -.29495E-06   -.44922E-04
  18  Prefactor     .10000E-03    9.3929        .16235E-06** at limit **
  19  norm          5.9099        4.8367        .64932E-07   -.27178E-04
  20  Prefactor     .10000E-03    3.5451        .60302E-07** at limit **
  21  Prefactor     4.1921        5.3331        .64273E-06    .37164E-03
  22  norm          .69632        1.1899       -.79197E-06   -.14290E-04
  23  Prefactor     .10000E-03    4.4501       -.83452E-07** at limit **
  24  Prefactor     .10001E-03    57.599       -.88895E-05** at limit **
  25  Normalizat    .96219        .16658       -.69261E-06    .21143E-03
  26  Prefactor     1.2638        .18352        .11706E-05   -.53574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0268
  Prefactor  = 95.576
  norm       = 0.0001
  Prefactor  = 10.5781
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 38.2987
  norm       = 2.88947
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 2.32586
  Prefactor  = 27.6803
  norm       = 1.61435
  Prefactor  = 28.3901
  Prefactor  = 0.0001
  norm       = 5.90989
  Prefactor  = 0.0001
  Prefactor  = 4.19212
  norm       = 0.696325
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 0.962195
  Prefactor  = 1.26381
 **********
 **   18 **HESSE 
 **********

 FCN=   8241.864     FROM HESSE     STATUS=OK           460 CALLS     3567 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.027        46.929        .64996E-04   -1.4474    
   2  Prefactor     95.576        69.763        .41112E-04   -1.3750    
   3  norm          .10000E-03    .76907        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.578        4.5665        .12141E-03   -1.5057    
   5  norm          .10000E-03    15.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    98.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9862        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.299        22.448        .64741E-04   -1.4469    
  10  norm          2.8895        3.9674        .20119E-03   -1.5368    
  11  Prefactor     .10000E-03    9.2968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    47.384        .53613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2606        .98817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3259        8.2771        .26900E-03   -1.5403    
  15  Prefactor     27.680        24.454        .76150E-04   -1.4655    
  16  norm          1.6143        5.2215        .33315E-03   -1.5454    
  17  Prefactor     28.390        26.539        .75196E-04   -1.4642    
  18  Prefactor     .10000E-03    9.4064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9099        4.8385        .16519E-03   -1.5222    
  20  Prefactor     .10000E-03    3.5511        .16692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1921        5.2721        .19686E-03   -1.5298    
  22  norm          .69632        1.1434        .12218E-02   -1.5541    
  23  Prefactor     .10000E-03    4.4629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    58.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96219        .19809        .25333E-03   -.94308    
  26  Prefactor     1.2638        .22121        .26352E-03   -.84390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.79284e-09
Minuit parameter uncertainties:
  1  46.9742
  2  69.8226
  3  9.61492e-06
  4  4.56668
  5  5.57268e-05
  6  6.99734e-05
  7  0.00177479
  8  4.97141e-06
  9  22.4533
  10  3.96775
  11  7.63819e-05
  12  0.00108619
  13  1.35738e-06
  14  8.28115
  15  24.4625
  16  5.22301
  17  26.5496
  18  1.79941e-05
  19  4.83887
  20  8.5336e-06
  21  5.27266
  22  1.14344
  23  1.98238e-06
  24  0.00122266
  25  0.198243
  26  0.221377
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.638e-05  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.264e+00  2.214e-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.622e-01  1.982e-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: 6.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338735/likelihoodResults_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.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) = 8241.86441422
delta logL = -0.000512666498253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8241.86390154
delta logL = 1.45118974615e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4842       1.0000          .0000       10.000    
     3 'Normalizat'    .96220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2638       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8241.864     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10575E-03    .85900E-01    .73868E-01** at limit **
   2  Index         2.6599        8.5792        .50000       -.15046E-04
   3  Normalizat    .96219        .47339E-03    .25333E-03    .13194E-04
   4  Prefactor     1.2638        .55766E-03    .26352E-03    .18120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105754
  Index      = 2.65992
  Normalizat = 0.962192
  Prefactor  = 1.26381
 **********
 **   18 **HESSE 
 **********

 FCN=   8241.864     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      280 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10575E-03    29.739        .41090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6599        8.4912        .50000       -.48704    
   3  Normalizat    .96219        .63777E-02    .10133E-04   -.94308    
   4  Prefactor     1.2638        .75130E-02    .10541E-04   -.84390    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29315e-07
Minuit parameter uncertainties:
  1  0.026176
  2  266.855
  3  0.0063777
  4  0.00751298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338735': 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) = 8241.86390129
delta logL = 2.65801645583e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.058e-04  2.618e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.660e+00  2.669e+02  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.264e+00  7.513e-03  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.622e-01  6.378e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/338735/cmap_HighResolution_241401601_241660801_4FGL_J1419.5+3821_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-09 09:30:06.786181', job_id='338735', GAL2='1.26', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631205006.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='8' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 338735: <4FGL_J1419.5+3821_daily_bin8> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin8> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 09:15:33 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:15:34 2021
Terminated at Thu Sep  9 09:30:07 2021
Results reported at Thu Sep  9 09:30:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin8 214.894 38.3657 241401601 241660801 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 :                                   832.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

