/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 164 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 = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1283
RA = 214.894, Dec = 38.3657
tmin = 571881601, tmax = 572140801
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='344620', job_status='RUN', time_executed='2021-09-09 09:38:35.145869', time_epoch_executed='1631205515.15' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344620/ft1_4FGL_J1419.5+3821_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344620/ft2_4FGL_J1419.5+3821_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344620/ft1_4FGL_J1419.5+3821_daily_bin1283.fits outfile=/scratch/kocevski/344620/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1283.fits ra=214.894 dec=38.3657 rad=12.0 tmin=571881601.0 tmax=572140801.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 2.61
user 2.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344620/ft2_4FGL_J1419.5+3821_daily_bin1283.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/344620/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/344620/ft1_filtered_4FGL_J1419.5+3821_daily_bin1283.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344620/ft1_filtered_4FGL_J1419.5+3821_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/344620/ft2_4FGL_J1419.5+3821_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/344620/ltcube_571881601_572140801_4FGL_J1419.5+3821_daily_bin1283.fits outfile=/scratch/kocevski/344620/expmap_571881601_572140801_4FGL_J1419.5+3821_daily_bin1283.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/344620/ltcube_571881601_572140801_4FGL_J1419.5+3821_daily_bin1283.fits
.....................!
real 190.86
user 185.76
sys 4.69

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/344620/ft1_filtered_4FGL_J1419.5+3821_daily_bin1283.fits scfile=/scratch/kocevski/344620/ft2_4FGL_J1419.5+3821_daily_bin1283.fits outfile=/scratch/kocevski/344620/cmap_571881601_572140801_4FGL_J1419.5+3821_daily_bin1283.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.57
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.955       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8894       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.479       1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.7787       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3413       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9452       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0813       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=   6183.084     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3056 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    122.33       -.11202E-04** at limit **
   2  Prefactor     .10000E-03    38.540        .18318E-05** at limit **
   3  norm          26.955        3.9179        .24116E-07    .37534E-05
   4  Prefactor     .10000E-03    2.5423        .33781E-07** at limit **
   5  norm          .10000E-03    4.0426        .60707E-08** at limit **
   6  Prefactor     .10000E-03    6.0249       -.11069E-07** at limit **
   7  Prefactor     .10000E-03    35.056       -.20640E-05** at limit **
   8  Prefactor     7.8898        6.2797        .66251E-07   -.14655E-04
   9  Prefactor     .10000E-03    11.844        .42532E-06** at limit **
  10  norm          .10000E-03    1.0871       -.16354E-07** at limit **
  11  Prefactor     7.2045        12.076        .15089E-05   -.21136E-03
  12  Prefactor     18.875        19.799       -.10754E-05   -.18552E-04
  13  Prefactor     17.479        5.2202        .66023E-07    .13545E-03
  14  norm          .10000E-03    8.2833       -.22218E-06** at limit **
  15  Prefactor     .10000E-03    15.083       -.14634E-05** at limit **
  16  norm          6.7788        7.8079        .27202E-05   -.75421E-03
  17  Prefactor     .10000E-03    23.550       -.65431E-06** at limit **
  18  Prefactor     .10000E-03    17.995        .17482E-05** at limit **
  19  norm          3.3413        7.4504       -.81765E-07   -.53894E-04
  20  Prefactor     17.097        17.327       -.32675E-06   -.28420E-04
  21  Prefactor     .10000E-03    7.3624       -.89283E-07** at limit **
  22  norm          1.9445        1.9472        .12279E-06   -.26517E-03
  23  Prefactor     .10000E-03    3.6064        .10726E-07** at limit **
  24  Prefactor     .10004E-03    105.56        .94896E-05** at limit **
  25  Normalizat    1.0035        .19648       -.65278E-06   -.13203E-04
  26  Prefactor     1.0814        .21599       -.22900E-06   -.28666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100053
  Prefactor  = 0.000100001
  norm       = 26.9555
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.88984
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.20448
  Prefactor  = 18.875
  Prefactor  = 17.4788
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.77878
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.34134
  Prefactor  = 17.0975
  Prefactor  = 0.0001
  norm       = 1.94448
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Normalizat = 1.00353
  Prefactor  = 1.08136
 **********
 **   18 **HESSE 
 **********

 FCN=   6183.084     FROM HESSE     STATUS=OK           452 CALLS     3508 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    131.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.955        3.9223        .57092E-04   -1.4669    
   4  Prefactor     .10000E-03    2.5808        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0438        .15441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.8898        6.2804        .14275E-03   -1.5146    
   9  Prefactor     .10000E-03    11.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0900        .80060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2045        12.122        .74716E-03   -1.5171    
  12  Prefactor     18.875        19.867        .92191E-04   -1.4839    
  13  Prefactor     17.479        5.2231        .94146E-04   -1.4872    
  14  norm          .10000E-03    8.3027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.7788        8.1970        .77054E-03   -1.5187    
  17  Prefactor     .10000E-03    23.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3413        7.4300        .22142E-03   -1.5342    
  20  Prefactor     17.097        17.288        .96862E-04   -1.4881    
  21  Prefactor     .10000E-03    7.4235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9445        1.9272        .10190E-03   -1.5429    
  23  Prefactor     .10000E-03    3.6105        .14584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10004E-03    112.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0035        .23801        .26598E-03   -.92912    
  26  Prefactor     1.0814        .26163        .29043E-03   -.90065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59887e-09
Minuit parameter uncertainties:
  1  0.00528849
  2  0.000474891
  3  3.92232
  4  2.45695e-06
  5  6.01816e-07
  6  8.9864e-07
  7  0.000506379
  8  6.28096
  9  6.16837e-05
  10  8.31132e-07
  11  12.1263
  12  19.8742
  13  5.22327
  14  2.58438e-05
  15  0.000230667
  16  8.19836
  17  0.000129515
  18  0.000304126
  19  7.43201
  20  17.2933
  21  1.04414e-05
  22  1.92725
  23  9.16212e-07
  24  0.00411245
  25  0.23826
  26  0.261937
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.204e+00  1.213e+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.081e+00  2.619e-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:  1.004e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344620/likelihoodResults_571881601_572140801_4FGL_J1419.5+3821_daily_bin1283.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) = 6182.08474111
delta logL = 0.999322854838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6182.08199503
delta logL = 1.00206893757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7468       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2564       1.0000          .0000       10.000    
     3 'Normalizat'    1.0204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0686       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=   6182.082     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7468        8.6691        .36018E-02   -.16628E-02
   2  Index         1.2563        .46739        .27957       -.58263E-04
   3  Normalizat    1.0204        .18969        .43291E-01    .10890E-04
   4  Prefactor     1.0686        .21497        .65961E-01    .11783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.74677
  Index      = 1.25632
  Normalizat = 1.02041
  Prefactor  = 1.06863
 **********
 **   18 **HESSE 
 **********

 FCN=   6182.082     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7468        11.124        .14407E-03   -1.5151    
   2  Index         1.2563        .68182        .10845E-01   -.84615    
   3  Normalizat    1.0204        .22834        .26396E-03   -.92350    
   4  Prefactor     1.0686        .25860        .29178E-03   -.90476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42216e-09
Minuit parameter uncertainties:
  1  11.127
  2  0.686719
  3  0.228557
  4  0.258905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344620': 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) = 6182.08199502
delta logL = 1.0020689455

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  7.747e+00  1.113e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.256e+00  6.867e-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.069e+00  2.589e-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:  1.020e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 214.894 38.366
Photon Index (Free Index): 1.26 +/- 0.69
Photon Flux (Free Index): 5.04e-09 +/- 7.04e-09
Energy Flux (Free Index): 3.55e-05 +/- 6.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/344620/cmap_HighResolution_571881601_572140801_4FGL_J1419.5+3821_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', comment='SUCCESS', energy_flux2='3.55e-05', dlogl='1.00e+00', photon_flux2='5.04e-09', job_status='DONE', time_completed='2021-09-09 09:50:43.123246', photon_index_error2='0.69', photon_index2='1.26', ts='0.67', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='6.09e-05', EG='1.00', time_epoch_completed='1631206243.12', return_code='0', job_id='344620', GAL2='1.07', EG2='1.02', return_code2='0', photon_flux_error2='7.04e-09', ts2='2.68', photon_index='2.47' WHERE bin_id='1283' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 344620: <4FGL_J1419.5+3821_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1283> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 09:35:39 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:35:41 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:35:41 2021
Terminated at Thu Sep  9 09:50:43 2021
Results reported at Thu Sep  9 09:50:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1283 214.894 38.3657 571881601 572140801 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 :                                   717.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

