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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin394
RA = 214.894, Dec = 38.3657
tmin = 341452801, tmax = 341712001
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='340349', job_status='RUN', time_executed='2021-09-09 09:21:03.047863', time_epoch_executed='1631204463.05' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340349/ft1_4FGL_J1419.5+3821_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340349/ft1_4FGL_J1419.5+3821_daily_bin394.fits outfile=/scratch/kocevski/340349/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin394.fits ra=214.894 dec=38.3657 rad=12.0 tmin=341452801.0 tmax=341712001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.49
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.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/340349/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin394.fits evtable="EVENTS" outfile="/scratch/kocevski/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.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/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/340349/ltcube_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.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/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits
.....................!
real 11.99
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/340349/ltcube_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.fits outfile=/scratch/kocevski/340349/expmap_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.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/340349/ltcube_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.fits
.....................!
real 192.83
user 187.50
sys 4.98

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/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.fits scfile=/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits outfile=/scratch/kocevski/340349/cmap_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.fits scfile=/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits outfile=/scratch/kocevski/340349/cmap_HighResolution_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.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/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/340349/ft2_4FGL_J1419.5+3821_daily_bin394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/340349/Model_4FGL_J1419.5+3821_daily_bin394.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/340349/ft1_filtered_4FGL_J1419.5+3821_daily_bin394.fits.....................!
real 47.43
user 46.10
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.6777       1.0000         .10000E-03   10000.    
     3 'norm      '    10.468       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 '    2.6959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43069E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8365       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.633       1.0000         .10000E-03   10000.    
    16 'norm      '    7.3250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.529       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.293       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1257       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.320       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26327E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3823       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98378       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98045       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=   5908.330     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3134 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.040       -.29806E-06** at limit **
   2  Prefactor     9.6754        89.851       -.52655E-06    .15966E-04
   3  norm          10.468        2.3263       -.31083E-07   -.13652E-04
   4  Prefactor     .10000E-03    3.8922       -.86802E-07** at limit **
   5  norm          .10000E-03    3.3763        .69574E-07** at limit **
   6  Prefactor     2.6956        9.6261       -.16839E-05    .33524E-04
   7  Prefactor     30.473        54.279        .11651E-05    .10579E-03
   8  Prefactor     .10000E-03    1.9944        .51234E-06** at limit **
   9  Prefactor     .10000E-03    9.7346        .33386E-06** at limit **
  10  norm          .10000E-03    1.4295        .45225E-07** at limit **
  11  Prefactor     .10003E-03    123.82        .19640E-04** at limit **
  12  Prefactor     3.8164        14.950       -.64960E-05   -.98839E-04
  13  Prefactor     .10000E-03    1.0994       -.13213E-07** at limit **
  14  norm          .10000E-03    16.386        .49122E-06** at limit **
  15  Prefactor     12.633        20.805        .81826E-07    .34123E-04
  16  norm          7.3256        6.1859       -.26156E-06   -.45005E-04
  17  Prefactor     59.532        37.516       -.79841E-07   -.52630E-04
  18  Prefactor     12.287        31.568       -.14475E-06    .43927E-04
  19  norm          4.1260        5.6823       -.29507E-06   -.86523E-04
  20  Prefactor     11.325        10.898       -.83925E-07   -.76227E-04
  21  Prefactor     .10007E-03    6.9293       -.20567E-05** at limit **
  22  norm          .10000E-03    .42543        .22400E-07** at limit **
  23  Prefactor     1.3824        9.8583       -.52453E-05    .12230E-03
  24  Prefactor     .10004E-03    142.60        .79684E-05** at limit **
  25  Normalizat    .98378        .16901        .52048E-06    .57972E-05
  26  Prefactor     .98049        .19319        .18090E-06    .78916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.6754
  norm       = 10.4675
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.6956
  Prefactor  = 30.4733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 3.81639
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6334
  norm       = 7.32558
  Prefactor  = 59.5321
  Prefactor  = 12.2869
  norm       = 4.12603
  Prefactor  = 11.3246
  Prefactor  = 0.000100068
  norm       = 0.0001
  Prefactor  = 1.38238
  Prefactor  = 0.000100039
  Normalizat = 0.983775
  Prefactor  = 0.980485
 **********
 **   18 **HESSE 
 **********

 FCN=   5908.330     FROM HESSE     STATUS=OK           462 CALLS     3596 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6754        90.617        .12882E-03   -1.5086    
   3  norm          10.468        2.3281        .53001E-04   -1.5061    
   4  Prefactor     .10000E-03    4.0251        .29599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3784        .13794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6956        9.5807        .24812E-03   -1.5380    
   7  Prefactor     30.473        54.613        .72564E-04   -1.4603    
   8  Prefactor     .10000E-03    1.9949        .10577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4411        .89692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    132.06        .44916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8164        15.187        .20605E-03   -1.5317    
  13  Prefactor     .10000E-03    1.1072        .78704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.633        20.814        .11270E-03   -1.4997    
  16  norm          7.3256        6.1780        .14820E-03   -1.5167    
  17  Prefactor     59.532        37.517        .52001E-04   -1.4163    
  18  Prefactor     12.287        31.635        .11425E-03   -1.5007    
  19  norm          4.1260        5.6751        .19846E-03   -1.5302    
  20  Prefactor     11.325        10.850        .11907E-03   -1.5035    
  21  Prefactor     .10007E-03    36.127        .30780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .43502        .97731E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3824        10.023        .37012E-03   -1.5473    
  24  Prefactor     .10004E-03    148.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98378        .20150        .22393E-03   -.93576    
  26  Prefactor     .98049        .22983        .26624E-03   -.93383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51986e-09
Minuit parameter uncertainties:
  1  0.00010299
  2  59.3384
  3  2.32808
  4  3.17343e-05
  5  6.45037e-07
  6  9.58615
  7  54.7024
  8  1.45163e-05
  9  4.92892e-05
  10  1.17702e-06
  11  0.00409135
  12  15.2021
  13  6.32775e-06
  14  6.09227e-05
  15  20.8263
  16  6.17851
  17  37.5323
  18  31.6778
  19  5.67579
  20  10.852
  21  0.00313945
  22  1.97942e-06
  23  7.44612
  24  0.00480098
  25  0.20166
  26  0.230058
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.091e-03  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.805e-01  2.301e-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.838e-01  2.017e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340349/likelihoodResults_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.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) = 5908.32968669
delta logL = -3.59461455446e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5908.32968668
delta logL = -3.59364194082e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96344E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4722       1.0000          .0000       10.000    
     3 'Normalizat'    .98375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98050       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=   5908.330     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      220 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34274E-03    3.3779        .90714E-01** at limit **
   2  Index         2.6196        2.7323        .50000       -.49648E-04
   3  Normalizat    .98377        .26485E-02    .45963E-01    .21902E-03
   4  Prefactor     .98049        .31598E-02    .46023E-01    .43867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000342742
  Index      = 2.61964
  Normalizat = 0.983773
  Prefactor  = 0.980489
 **********
 **   18 **HESSE 
 **********

 FCN=   5908.330     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      259 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34274E-03    8.5052        .59109E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6196        2.9991        .50000       -.49618    
   3  Normalizat    .98377        .29630E-02    .22393E-03   -.93576    
   4  Prefactor     .98049        .35350E-02    .26624E-03   -.93383    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10562e-10
Minuit parameter uncertainties:
  1  0.090888
  2  3.30045
  3  0.00296297
  4  0.00353503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340349': 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) = 5908.32965016
delta logL = 5.83623659622e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  3.427e-04  9.089e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.620e+00  3.300e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.805e-01  3.535e-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.838e-01  2.963e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/340349/cmap_HighResolution_341452801_341712001_4FGL_J1419.5+3821_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-09 09:33:03.771839', job_id='340349', GAL2='0.98', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631205183.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.84e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='394' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:33:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 340349: <4FGL_J1419.5+3821_daily_bin394> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin394> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 09:20:45 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 09:20:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 09:20:46 2021
Terminated at Thu Sep  9 09:33:04 2021
Results reported at Thu Sep  9 09:33:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin394 214.894 38.3657 341452801 341712001 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

