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


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1111
RA = 214.894, Dec = 38.3657
tmin = 527299201, tmax = 527558401
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='344374', job_status='RUN', time_executed='2021-09-09 09:37:37.775806', time_epoch_executed='1631205457.78' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344374/ft1_4FGL_J1419.5+3821_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344374/ft2_4FGL_J1419.5+3821_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344374/ft1_4FGL_J1419.5+3821_daily_bin1111.fits outfile=/scratch/kocevski/344374/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1111.fits ra=214.894 dec=38.3657 rad=12.0 tmin=527299201.0 tmax=527558401.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 4.88
user 4.63
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344374/ft2_4FGL_J1419.5+3821_daily_bin1111.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/344374/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1111.fits evtable="EVENTS" outfile="/scratch/kocevski/344374/ft1_filtered_4FGL_J1419.5+3821_daily_bin1111.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.51
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344374/ft1_filtered_4FGL_J1419.5+3821_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/344374/ft2_4FGL_J1419.5+3821_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/344374/ltcube_527299201_527558401_4FGL_J1419.5+3821_daily_bin1111.fits outfile=/scratch/kocevski/344374/expmap_527299201_527558401_4FGL_J1419.5+3821_daily_bin1111.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/344374/ltcube_527299201_527558401_4FGL_J1419.5+3821_daily_bin1111.fits
.....................!
real 190.77
user 184.97
sys 5.40

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344374/ft1_filtered_4FGL_J1419.5+3821_daily_bin1111.fits scfile=/scratch/kocevski/344374/ft2_4FGL_J1419.5+3821_daily_bin1111.fits outfile=/scratch/kocevski/344374/cmap_HighResolution_527299201_527558401_4FGL_J1419.5+3821_daily_bin1111.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/344374/ft1_filtered_4FGL_J1419.5+3821_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/344374/ft2_4FGL_J1419.5+3821_daily_bin1111.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/344374/Model_4FGL_J1419.5+3821_daily_bin1111.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/344374/ft1_filtered_4FGL_J1419.5+3821_daily_bin1111.fits.....................!
real 38.90
user 37.59
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6744       1.0000         .10000E-03   10000.    
     2 'Prefactor '    89.752       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34685E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0623       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.191       1.0000         .10000E-03   10000.    
    16 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.57       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.463       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3847       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5282       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88714       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90763       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=   4466.245     FROM MIGRAD    STATUS=CONVERGED   1088 CALLS     4026 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6375        149.17        .14476E-03   -.10995E-04
   2  Prefactor     89.773        87.627        .42413E-04    .71300E-05
   3  norm          4.3081        1.8785        .58168E-04   -.43975E-04
   4  Prefactor     .10000E-03    2.5613        .10371E-02** at limit **
   5  norm          .10000E-03    6.1352        .16157E-02** at limit **
   6  Prefactor     8.0920        21.501        .14094E-03   -.46059E-04
   7  Prefactor     .10211E-03    65.063        .15943    ** at limit **
   8  Prefactor     2.6987        3.4067        .13441E-03    .37555E-04
   9  Prefactor     .10000E-03    8.7908        .18142E-02** at limit **
  10  norm          .10002E-03    11.309        .25703E-02** at limit **
  11  Prefactor     .10000E-03    31.794        .18142E-02** at limit **
  12  Prefactor     .10000E-03    50.663        .18142E-02** at limit **
  13  Prefactor     6.0625        6.2725        .15558E-03   -.29938E-03
  14  norm          .10000E-03    11.045        .18142E-02** at limit **
  15  Prefactor     28.183        34.274        .75455E-04   -.41283E-04
  16  norm          .10000E-03    8.5846        .36285E-03** at limit **
  17  Prefactor     110.61        70.177        .19126E-03    .57717E-04
  18  Prefactor     .10000E-03    16.935        .18142E-02** at limit **
  19  norm          .10018E-03    42.229        .31641E-02** at limit **
  20  Prefactor     24.466        17.808        .80989E-04    .14206E-03
  21  Prefactor     9.3844        8.4523        .65410E-03    .98878E-04
  22  norm          .10000E-03    .82193        .11665E-03** at limit **
  23  Prefactor     4.5283        14.153        .94595E-03   -.73696E-04
  24  Prefactor     .10000E-03    74.689        .18142E-02** at limit **
  25  Normalizat    .88717        .24553        .23577E-03   -.85831E-04
  26  Prefactor     .90759        .26016        .26175E-03   -.67800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.63747
  Prefactor  = 89.7727
  norm       = 4.30815
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.09202
  Prefactor  = 0.000102111
  Prefactor  = 2.69873
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.06248
  norm       = 0.0001
  Prefactor  = 28.1834
  norm       = 0.0001
  Prefactor  = 110.61
  Prefactor  = 0.0001
  norm       = 0.000100184
  Prefactor  = 24.4656
  Prefactor  = 9.38444
  norm       = 0.0001
  Prefactor  = 4.5283
  Prefactor  = 0.0001
  Normalizat = 0.887166
  Prefactor  = 0.907591
 **********
 **   18 **HESSE 
 **********

 FCN=   4466.245     FROM HESSE     STATUS=OK           440 CALLS     4466 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6375        149.01        .57902E-05   -1.5155    
   2  Prefactor     89.773        87.629        .84827E-05   -1.3810    
   3  norm          4.3081        1.8785        .23267E-05   -1.5293    
   4  Prefactor     .10000E-03    2.5618        .20742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.1354        .32315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0920        21.494        .56375E-05   -1.5139    
   7  Prefactor     .10211E-03    64.832        .15986       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6987        3.4066        .53764E-05   -1.5379    
   9  Prefactor     .10000E-03    8.7912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    11.424        .51407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0625        6.2713        .62232E-05   -1.5215    
  14  norm          .10000E-03    11.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.183        34.272        .30182E-05   -1.4646    
  16  norm          .10000E-03    8.5850        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     110.61        70.169        .76504E-05   -1.3601    
  18  Prefactor     .10000E-03    16.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10018E-03    42.887        .63283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.466        17.804        .32395E-05   -1.4718    
  21  Prefactor     9.3844        8.4511        .26164E-04   -1.5095    
  22  norm          .10000E-03    .82193        .23331E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5283        14.147        .37838E-04   -1.5282    
  24  Prefactor     .10000E-03    74.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .88717        .24576        .94307E-05   -.96913    
  26  Prefactor     .90759        .26040        .10470E-04   -.95876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94783e-09
Minuit parameter uncertainties:
  1  67.6642
  2  87.756
  3  1.8785
  4  7.22556e-06
  5  1.11983e-07
  6  21.5148
  7  0.0234255
  8  3.40686
  9  2.76027e-05
  10  0.000828644
  11  0.000108525
  12  8.98901e-05
  13  6.27194
  14  6.2207e-06
  15  34.2963
  16  5.62253e-05
  17  70.2219
  18  3.3887e-05
  19  0.00561472
  20  17.8083
  21  8.45215
  22  3.26998e-06
  23  14.1576
  24  0.000168437
  25  0.246066
  26  0.260756
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.085e-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:  9.076e-01  2.608e-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.872e-01  2.461e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/344374/likelihoodResults_527299201_527558401_4FGL_J1419.5+3821_daily_bin1111.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): 102
logL (Free Index) = 4466.24539407
delta logL = -0.000149859484736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4466.24524398
delta logL = 2.32231286645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7523       1.0000          .0000       10.000    
     3 'Normalizat'    .88716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90759       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=   4466.245     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16339        .90712E-01** at limit **
   2  Index         2.7624        8.3392        .50000       -.21083E-05
   3  Normalizat    .88717        .65840E-03    .44737E-01    .44237E-04
   4  Prefactor     .90759        .74269E-03    .45102E-01    .31312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.76244
  Normalizat = 0.887167
  Prefactor  = 0.907591
 **********
 **   18 **HESSE 
 **********

 FCN=   4466.245     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      282 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.888        .36576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7624        7.7659        .50000       -.46398    
   3  Normalizat    .88717        .60840E-02    .23577E-03   -.96913    
   4  Prefactor     .90759        .68632E-02    .26175E-03   -.95876    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.25013e-09
Minuit parameter uncertainties:
  1  0.000451321
  2  155.662
  3  0.00608399
  4  0.00686326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344374': 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) = 4466.2452439
delta logL = 3.15225406666e-07

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  4.513e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.762e+00  1.557e+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:  9.076e-01  6.863e-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:  8.872e-01  6.084e-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/344374/cmap_HighResolution_527299201_527558401_4FGL_J1419.5+3821_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-09 09:50:24.181268', job_id='344374', GAL2='0.91', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631206224.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1111' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 09:50:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 344374: <4FGL_J1419.5+3821_daily_bin1111> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1111 214.894 38.3657 527299201 527558401 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

