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


Performing analysis on: 4FGL_J1404.8+6554_monthly_bin168
RA = 211.216, Dec = 65.9048
tmin = 672451201, tmax = 675043201
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='635391', job_status='RUN', time_executed='2022-05-24 03:17:42.976332', time_epoch_executed='1653387462.98' WHERE source_name='4FGL J1404.8+6554' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/635391

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/635391/ft1_4FGL_J1404.8+6554_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/635391/ft1_4FGL_J1404.8+6554_monthly_bin168.fits outfile=/scratch/kocevski/635391/ft1_filteredMKT_4FGL_J1404.8+6554_monthly_bin168.fits ra=211.216 dec=65.9048 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.72
user 27.93
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.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/635391/ft1_filteredMKT_4FGL_J1404.8+6554_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.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.88
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 8928

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/635391/ltcube_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.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/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits
.....................!
real 135.84
user 135.13
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/635391/ltcube_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.fits outfile=/scratch/kocevski/635391/expmap_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.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/635391/ltcube_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.fits
.....................!
real 192.80
user 186.53
sys 5.73

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1404.8+6554 @ 211.216 65.9048

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits scfile=/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits outfile=/scratch/kocevski/635391/cmap_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.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=211.216 yref=65.9048 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.81
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits scfile=/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits outfile=/scratch/kocevski/635391/cmap_HighResolution_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.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=211.216 yref=65.9048 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.80
user 0.61
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/635391/Model_4FGL_J1404.8+6554_monthly_bin168.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/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits.....................!
real 672.50
user 665.81
sys 2.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits', '/scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits', expMap='/scratch/kocevski/635391/expmap_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.fits', expCube='/scratch/kocevski/635391/ltcube_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/635391/Model_4FGL_J1404.8+6554_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1404.8+6554'

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  7.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/635391/ft1_filtered_4FGL_J1404.8+6554_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/635391/ft2_4FGL_J1404.8+6554_monthly_bin168.fits
Exposure map: /scratch/kocevski/635391/expmap_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.fits
Exposure cube: /scratch/kocevski/635391/ltcube_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/635391/Model_4FGL_J1404.8+6554_monthly_bin168.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) = 97334.1982258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8789       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6354       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3317       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41168       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85558E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7647       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0982       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .49729       1.0000         .10000E-03   10000.    
    16 'norm      '    .82464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9438       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0801       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5492       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8337       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8655       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.227       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.550       1.0000         .10000E-03   10000.    
    28 'norm      '    1.0690       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.1321       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91099       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   97334.05     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     3674 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8787        4.7065       -.10573E-05   -.64019E-05
   2  norm          1.6360        .75797       -.54943E-10    .13513E-04
   3  norm          3.6397        .61627       -.42138E-08   -.14940E-05
   4  Prefactor     19.682        7.6218        .96883E-06    .26241E-05
   5  Prefactor     1.3317        1.3053       -.12240E-07   -.22174E-03
   6  Prefactor     .10000E-03    3.0076        .11166E-07** at limit **
   7  Prefactor     6.8705        4.1999        .41331E-06    .25750E-04
   8  Prefactor     8.2751        10.695        .30211E-05    .28442E-04
   9  Prefactor     .41170        .85035        .14882E-06    .36510E-03
  10  Prefactor     .10028E-03    .49716       -.40067E-07** at limit **
  11  Prefactor     1.9365        7.5219       -.20496E-05   -.29908E-04
  12  Prefactor     6.1011        2.3349       -.18500E-06   -.21492E-03
  13  Prefactor     2.7648        1.8390       -.21590E-07    .50587E-04
  14  norm          4.0984        6.0858       -.85322E-06   -.25208E-05
  15  Prefactor     .49751        .97191        .17911E-07   -.15784E-03
  16  norm          .82446        .77786       -.27721E-07   -.10174E-03
  17  Prefactor     .10000E-03    2.4765        .45201E-08** at limit **
  18  Prefactor     27.580        31.954       -.10745E-05    .39455E-06
  19  Prefactor     5.9438        .90971       -.13917E-07    .34099E-04
  20  Prefactor     9.0800        5.1701        .19017E-06    .10857E-04
  21  Prefactor     1.5494        7.7026       -.68174E-06    .49557E-05
  22  Prefactor     2.8336        3.7809       -.25541E-07   -.15796E-04
  23  Prefactor     .10000E-03    .68652       -.71608E-08** at limit **
  24  Prefactor     1.8653        4.5855       -.12807E-05    .47819E-05
  25  Prefactor     10.227        2.2475        .16044E-07   -.17946E-04
  26  Prefactor     .10000E-03    .47017        .42426E-07** at limit **
  27  Prefactor     13.549        4.9530       -.18369E-06   -.37400E-04
  28  norm          1.0695        .41992       -.27621E-08   -.43159E-06
  29  Prefactor     3.0755        12.145       -.85365E-07   -.97636E-06
  30  Normalizat    .91100        .40111E-01   -.10903E-07    .12207E-03
  31  Prefactor     1.0382        .43156E-01    .46548E-07    .53298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.87867
  norm       = 1.63597
  norm       = 3.63966
  Prefactor  = 19.682
  Prefactor  = 1.33173
  Prefactor  = 0.0001
  Prefactor  = 6.87045
  Prefactor  = 8.27507
  Prefactor  = 0.411701
  Prefactor  = 0.000100281
  Prefactor  = 1.93646
  Prefactor  = 6.1011
  Prefactor  = 2.76479
  norm       = 4.09841
  Prefactor  = 0.497513
  norm       = 0.82446
  Prefactor  = 0.0001
  Prefactor  = 27.5803
  Prefactor  = 5.94385
  Prefactor  = 9.07998
  Prefactor  = 1.5494
  Prefactor  = 2.83359
  Prefactor  = 0.0001
  Prefactor  = 1.86532
  Prefactor  = 10.2271
  Prefactor  = 0.0001
  Prefactor  = 13.5493
  norm       = 1.06948
  Prefactor  = 3.07546
  Normalizat = 0.910997
  Prefactor  = 1.0382
 **********
 **   18 **HESSE 
 **********

 FCN=   97334.05     FROM HESSE     STATUS=OK           652 CALLS     4326 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8787        4.7019        .12749E-03   -1.5079    
   2  norm          1.6360        .75574        .17948E-03   -1.5452    
   3  norm          3.6397        .61653        .97217E-04   -1.5326    
   4  Prefactor     19.682        7.6108        .90280E-04   -1.4820    
   5  Prefactor     1.3317        1.5840        .19024E-02   -1.5477    
   6  Prefactor     .10000E-03    3.0221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8705        4.1993        .15307E-03   -1.5184    
   8  Prefactor     8.2751        10.679        .13936E-03   -1.5133    
   9  Prefactor     .41170        .75211        .32184E-03   -1.5580    
  10  Prefactor     .10028E-03    .70409        .75537E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9365        7.5202        .29831E-03   -1.5430    
  12  Prefactor     6.1011        2.1281        .16254E-03   -1.5214    
  13  Prefactor     2.7648        1.8316        .24478E-03   -1.5375    
  14  norm          4.0984        6.0684        .19914E-03   -1.5303    
  15  Prefactor     .49751        1.6554        .22519E-02   -1.5567    
  16  norm          .82446        .75537        .25164E-03   -1.5526    
  17  Prefactor     .10000E-03    2.5240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.580        31.949        .76292E-04   -1.4657    
  19  Prefactor     5.9438        .90625        .10954E-03   -1.5220    
  20  Prefactor     9.0800        5.1564        .13301E-03   -1.5105    
  21  Prefactor     1.5494        7.7296        .34225E-03   -1.5459    
  22  Prefactor     2.8336        3.7683        .12079E-02   -1.5371    
  23  Prefactor     .10000E-03    .69366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.8653        4.5814        .30502E-03   -1.5435    
  25  Prefactor     10.227        2.2514        .62647E-03   -1.5068    
  26  Prefactor     .10000E-03    2.8937        .40645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.549        4.8925        .10881E-03   -1.4972    
  28  norm          1.0695        .41613        .12280E-03   -1.5501    
  29  Prefactor     3.0755        12.122        .22907E-03   -1.5357    
  30  Normalizat    .91100        .47160E-01    .22204E-03   -.96075    
  31  Prefactor     1.0382        .51015E-01    .23742E-03   -.91467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12332e-08
Minuit parameter uncertainties:
  1  4.70207
  2  0.755744
  3  0.616535
  4  7.61117
  5  1.58408
  6  2.71323e-07
  7  4.19951
  8  10.681
  9  0.75213
  10  0.000889334
  11  7.52383
  12  2.12818
  13  1.83162
  14  6.06931
  15  1.65556
  16  0.755379
  17  7.99483e-07
  18  31.9692
  19  0.906251
  20  5.15663
  21  6.92257
  22  3.76859
  23  1.99468e-08
  24  4.58222
  25  2.25139
  26  8.74354e-06
  27  4.89269
  28  0.416133
  29  12.132
  30  0.0471619
  31  0.0510174
Done.

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

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.000e-04  7.995e-07  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.926e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.038e+00  5.102e-02  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.110e-01  4.716e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.216 65.905
Photon Flux Upper Limit: 4.39e-09 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/635391/likelihoodResults_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.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) = 97334.047986
delta logL = -0.00188919634093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 97334.0460967
delta logL = 1.07218511403e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9395       1.0000          .0000       10.000    
     3 'Normalizat'    .91100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7140E+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=   97334.05     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    19.179        .18142E-02** at limit **
   2  Index         1.9724        5.7027        .50000       -.33423E-04
   3  Normalizat    .91100        .25589E-02    .22204E-03    .20480E-03
   4  Prefactor     1.0382        .29173E-02    .23742E-03    .19613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100447
  Index      = 1.97241
  Normalizat = 0.910997
  Prefactor  = 1.0382
 **********
 **   18 **HESSE 
 **********

 FCN=   97334.05     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    111.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9724        5.4708        .50000       -.65042    
   3  Normalizat    .91100        .64477E-02    .88817E-05   -.96075    
   4  Prefactor     1.0382        .73475E-02    .94969E-05   -.91467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.42491e-08
Minuit parameter uncertainties:
  1  0.0141666
  2  306.285
  3  0.00644773
  4  0.00734747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/635391': 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) = 97334.0460965
delta logL = 3.47034074366e-07

Extracting fit parameters...

4FGL J1404.8+6554
   Spectrum: PowerLaw
366    Prefactor:  1.004e-04  1.417e-02  1.000e-04  1.000e+04 ( 1.000e-14)
367        Index:  1.972e+00  3.063e+02  0.000e+00  1.000e+01 (-1.000e+00)
368        Scale:  2.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
711    Prefactor:  1.038e+00  7.347e-03  0.000e+00  1.000e+01 ( 1.000e+00)
712        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
713        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
710   Normalization:  9.110e-01  6.448e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 211.216 65.905

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/635391/cmap_HighResolution_672451201_675043201_4FGL_J1404.8+6554_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-04', job_status='DONE', photon_flux_upper_limit='4.39e-09', time_completed='2022-05-24 06:24:23.435443', job_id='635391', GAL2='1.04', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1653398663.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='168' AND source_name='4FGL J1404.8+6554' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:24:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 635391: <4FGL_J1404.8+6554_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1404.8+6554_monthly_bin168> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue May 24 03:10:28 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:13:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:13:48 2022
Terminated at Tue May 24 06:24:24 2022
Results reported at Tue May 24 06:24:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1404.8+6554_monthly_bin168 211.216 65.9048 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1404.8+6554 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11138.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             450.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11439 sec.
    Turnaround time :                            11636 sec.

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

