aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 101 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1419.5+3821_daily_bin1770
RA = 214.894, Dec = 38.3657
tmin = 698112001, tmax = 698371201
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='487851', job_status='RUN', time_executed='2023-02-18 00:57:19.262896', time_epoch_executed='1676710639.26' WHERE source_name='4FGL J1419.5+3821' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487851/ft1_4FGL_J1419.5+3821_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487851/ft1_4FGL_J1419.5+3821_daily_bin1770.fits outfile=/scratch/kocevski/487851/ft1_filteredMKT_4FGL_J1419.5+3821_daily_bin1770.fits ra=214.894 dec=38.3657 rad=12.0 tmin=698112001.0 tmax=698371201.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.34
user 4.09
sys 0.21

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

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

Number of photons that the gtmktime cut: 481

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487851/ft1_filtered_4FGL_J1419.5+3821_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/487851/ltcube_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.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/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits
.....................!
real 11.71
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487851/ft1_filtered_4FGL_J1419.5+3821_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/487851/ltcube_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.fits outfile=/scratch/kocevski/487851/expmap_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.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/487851/ltcube_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.fits
.....................!
real 190.35
user 186.04
sys 3.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/487851/ft1_filtered_4FGL_J1419.5+3821_daily_bin1770.fits scfile=/scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits outfile=/scratch/kocevski/487851/cmap_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.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/487851/ft1_filtered_4FGL_J1419.5+3821_daily_bin1770.fits scfile=/scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits outfile=/scratch/kocevski/487851/cmap_HighResolution_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/487851/ft1_filtered_4FGL_J1419.5+3821_daily_bin1770.fits', '/scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits', expMap='/scratch/kocevski/487851/expmap_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.fits', expCube='/scratch/kocevski/487851/ltcube_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/487851/Model_4FGL_J1419.5+3821_daily_bin1770.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  0.000e+00  1.000e+06 ( 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/487851/ft1_filtered_4FGL_J1419.5+3821_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/487851/ft2_4FGL_J1419.5+3821_daily_bin1770.fits
Exposure map: /scratch/kocevski/487851/expmap_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.fits
Exposure cube: /scratch/kocevski/487851/ltcube_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/487851/Model_4FGL_J1419.5+3821_daily_bin1770.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5191.03055168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40975E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .97727       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.5023       1.0000          .0000       .10000E+07
     4 'norm      '    5.3117       1.0000          .0000       .10000E+07
     5 'Prefactor '    34.098       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.6891       1.0000          .0000       .10000E+07
     7 'Prefactor '    .30785E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.4794       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10018E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .85468E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    34.389       1.0000          .0000       .10000E+07
    12 'norm      '    1.8000       1.0000          .0000       .10000E+07
    13 'norm      '    .20949       1.0000          .0000       .10000E+07
    14 'Prefactor '    173.94       1.0000          .0000       .10000E+07
    15 'norm      '    .23583E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15534E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.0499       1.0000          .0000       .10000E+07
    18 'norm      '    .92504       1.0000          .0000       .10000E+07
    19 'Prefactor '    .46647E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    81.747       1.0000          .0000       .10000E+07
    21 'Normalizat'    .92404       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5188.745     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1104 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    27.650        .33148E-05** at limit **
   2  norm          .97794        1.1428       -.43880E-06   -.98361E-03
   3  Prefactor     7.5152        5.3561        .18261E-05   -.54149E-03
   4  norm          5.5490        1.3147       -.30737E-06   -.11197E-01
   5  Prefactor     33.131        49.884       -.33286E-05   -.37006E-01
   6  Prefactor     7.7068        5.4722       -.21408E-06    .10881E-02
   7  Prefactor     .14663E-05    5.5092        .13013E-05** at limit **
   8  norm          1.4699        3.4040        .54411E-06   -.62990E-03
   9  Prefactor     .27811E-07    7.4291       -.37296E-05** at limit **
  10  Prefactor     .18391E-06    8.2181        .45291E-05** at limit **
  11  Prefactor     34.455        7.5347       -.37818E-06   -.62341E-03
  12  norm          1.8179        13.488       -.10293E-04   -.17692E-02
  13  norm          .47156        2.0463        .26827E-06    .14372E-01
  14  Prefactor     173.90        2.8660       -.88908E-07    .35731E-01
  15  norm          .77716E-09    5.9643        .30287E-05** at limit **
  16  Prefactor     .44409E-09    5.3372        .11817E-05** at limit **
  17  Prefactor     5.0600        5.8893       -.87846E-06   -.61890E-03
  18  norm          .92418        1.1031       -.14553E-06   -.94173E-03
  19  Prefactor     .14199E-05    6.6618       -.14344E-05** at limit **
  20  Prefactor     82.126        20.758        .97022E-06   -.15196    
  21  Normalizat    .92178        .23129       -.55131E-04   -.57223E-04
  22  Prefactor     1.0732        .26653        .77795E-04    .39887E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 0.977945
  Prefactor  = 7.51519
  norm       = 5.54896
  Prefactor  = 33.1309
  Prefactor  = 7.70675
  Prefactor  = 1.46633e-06
  norm       = 1.46987
  Prefactor  = 2.78111e-08
  Prefactor  = 1.83908e-07
  Prefactor  = 34.4552
  norm       = 1.81792
  norm       = 0.471556
  Prefactor  = 173.901
  norm       = 7.77156e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 5.06005
  norm       = 0.924184
  Prefactor  = 1.41992e-06
  Prefactor  = 82.1259
  Normalizat = 0.92178
  Prefactor  = 1.07319
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.745     FROM HESSE     STATUS=OK           394 CALLS     1498 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    27.630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97794        1.1475        .42959E-03   -1.5688    
   3  Prefactor     7.5152        5.3691        .36591E-03   -1.5653    
   4  norm          5.5490        13.584        .43585E-03   -1.5661    
   5  Prefactor     33.131        53.175        .17127E-03   -1.5593    
   6  Prefactor     7.7068        5.4805        .36140E-03   -1.5652    
   7  Prefactor     .14663E-05    10.820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4699        3.4546        .88221E-03   -1.5684    
   9  Prefactor     .27811E-07    7.7427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18391E-06    8.7804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.455        7.5483        .17055E-03   -1.5591    
  12  norm          1.8179        13.854        .77888E-03   -1.5681    
  13  norm          .47156        5.2052        .92474E-02   -1.5694    
  14  Prefactor     173.90        53.470        .75830E-04   -1.5444    
  15  norm          .77716E-09    6.0037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .44409E-09    5.3421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0600        5.9094        .44722E-03   -1.5663    
  18  norm          .92418        1.1135        .44044E-03   -1.5689    
  19  Prefactor     .14199E-05    11.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     82.126        63.620        .11061E-03   -1.5527    
  21  Normalizat    .92178        .20013        .45208E-01   -.95699    
  22  Prefactor     1.0732        .22360        .63174E-01   -.90328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77711e-06
Minuit parameter uncertainties:
  1  9.73048e-05
  2  1.14747
  3  5.36912
  4  13.5843
  5  53.1756
  6  5.48048
  7  0.00796639
  8  3.45461
  9  0.000928311
  10  0.00254145
  11  7.54829
  12  10.0369
  13  3.1334
  14  53.4706
  15  0.000138979
  16  9.54002e-05
  17  5.90936
  18  1.11347
  19  0.00805741
  20  63.621
  21  0.200294
  22  0.22379
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.781e-08  9.283e-04  0.000e+00  1.000e+06 ( 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.073e+00  2.238e-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.218e-01  2.003e-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.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487851/likelihoodResults_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.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) = 5188.80795995
delta logL = -0.0625079965348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5188.74545198
delta logL = -2.35204424825e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33679E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5533       1.0000          .0000       10.000    
     3 'Normalizat'    .92177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0732       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5187.591     FROM MIGRAD    STATUS=FAILED       377 CALLS      540 TOTAL
                     EDM=   .99E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28253E-05    .26529E-05    .74901E-06** at limit **
   2  Index        10.0000        .74311        .50000    ** at limit **
   3  Normalizat    .80913        .24247        .27159E-03   -.64799E-04
   4  Prefactor     1.1661        .27718        .26961E-03   -.33819E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5187.591     FROM SIMPLEX   STATUS=PROGRESS     110 CALLS      650 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28254E-05    .26529E-05    .26479E-10   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .74311        .22245E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80913        .24247        .25330E-05   -.99731    
   4  Prefactor     1.1661        .27718        .10471E-05   -.87381    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5187.591     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      697 TOTAL
                     EDM=   .40E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28254E-05    .23891E-05     .0000    ** at limit **
   2  Index        10.0000        .61008         .0000    ** at limit **
   3  Normalizat    .80913        .24422         .0000        .85603E-04
   4  Prefactor     1.1661        .27842         .0000        .41957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82535e-06
  Index      = 10
  Normalizat = 0.809125
  Prefactor  = 1.1661
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.591     FROM HESSE     STATUS=OK            31 CALLS      728 TOTAL
                     EDM=   .81E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28254E-05    .23891E-05    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .61010        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80913        .24438        .21727E-05   -.99731    
   4  Prefactor     1.1661        .27865        .21568E-05   -.87381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07284e-05
Minuit parameter uncertainties:
  1  2.38913e-06
  2  2.54465e-05
  3  0.244717
  4  0.279002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487851': 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) = 5187.59136384
delta logL = 1.15408811488

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  2.825e-06  2.389e-06  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  1.000e+01  2.545e-05  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.166e+00  2.790e-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.091e-01  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 214.894 38.366
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.67e-08 +/- 6.28e-08
Energy Flux (Free Index): 8.57e-06 +/- 7.07e-06

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/487851/cmap_HighResolution_698112001_698371201_4FGL_J1419.5+3821_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', comment='SUCCESS', energy_flux2='8.57e-06', dlogl='1.15e+00', photon_flux2='7.67e-08', job_status='DONE', time_completed='2023-02-18 01:05:59.962768', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='7.07e-06', EG='0.92', time_epoch_completed='1676711159.96', return_code='0', job_id='487851', GAL2='1.17', EG2='0.81', return_code2='0', photon_flux_error2='6.28e-08', ts2='2.51', photon_index='2.47' WHERE bin_id='1770' AND source_name='4FGL J1419.5+3821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:05:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 487851: <4FGL_J1419.5+3821_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1419.5+3821_daily_bin1770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 18 00:55:29 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:55:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:55:30 2023
Terminated at Sat Feb 18 01:06:00 2023
Results reported at Sat Feb 18 01:06:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.5+3821_daily_bin1770 214.894 38.3657 698112001 698371201 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 :                                   523.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            631 sec.

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

