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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1757
RA = 136.154, Dec = 52.0096
tmin = 694742401, tmax = 695001601
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='191713', job_status='RUN', time_executed='2023-01-10 00:39:23.261991', time_epoch_executed='1673339963.26' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191713/ft1_4FGL_J0904.6+5200_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191713/ft1_4FGL_J0904.6+5200_daily_bin1757.fits outfile=/scratch/kocevski/191713/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1757.fits ra=136.154 dec=52.0096 rad=12.0 tmin=694742401.0 tmax=695001601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.90
user 2.67
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.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/191713/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1757.fits evtable="EVENTS" outfile="/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 222

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/191713/ltcube_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.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/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits
.....................!
real 15.24
user 14.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/191713/ltcube_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.fits outfile=/scratch/kocevski/191713/expmap_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.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/191713/ltcube_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.fits
.....................!
real 195.03
user 189.26
sys 4.61

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

Setting source of interest to:
4FGL J0904.6+5200 @ 136.154 52.0096

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits scfile=/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits outfile=/scratch/kocevski/191713/cmap_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.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=136.154 yref=52.0096 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits scfile=/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits outfile=/scratch/kocevski/191713/cmap_HighResolution_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.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=136.154 yref=52.0096 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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191713/Model_4FGL_J0904.6+5200_daily_bin1757.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/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits.....................!
real 33.01
user 31.56
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits', '/scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits', expMap='/scratch/kocevski/191713/expmap_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.fits', expCube='/scratch/kocevski/191713/ltcube_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191713/Model_4FGL_J0904.6+5200_daily_bin1757.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.6+5200'

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.897e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.565e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191713/ft1_filtered_4FGL_J0904.6+5200_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/191713/ft2_4FGL_J0904.6+5200_daily_bin1757.fits
Exposure map: /scratch/kocevski/191713/expmap_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.fits
Exposure cube: /scratch/kocevski/191713/ltcube_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191713/Model_4FGL_J0904.6+5200_daily_bin1757.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) = 2447.70559017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37866.       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.0268       1.0000          .0000       .10000E+07
     3 'norm      '    14.437       1.0000          .0000       .10000E+07
     4 'norm      '    .18324E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .15383E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .69553E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .98027E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .92143E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17350E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .60495E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .13550E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18448E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .49443E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.051       1.0000          .0000       .10000E+07
    15 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
    16 'norm      '    3.5204       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.1988       1.0000          .0000       .10000E+07
    18 'Prefactor '    .12842E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34040E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.2251       1.0000          .0000       .10000E+07
    21 'Prefactor '    .10683E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    72.223       1.0000          .0000       .10000E+07
    23 'Prefactor '    .56889E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    2.8339       1.0000          .0000       .10000E+07
    25 'norm      '    4.3078       1.0000          .0000       .10000E+07
    26 'Prefactor '    63.754       1.0000          .0000       .10000E+07
    27 'norm      '    .87091       1.0000          .0000       .10000E+07
    28 'norm      '    67.445       1.0000          .0000       .10000E+07
    29 'Prefactor '    3.2343       1.0000          .0000       .10000E+07
    30 'norm      '    5.7425       1.0000          .0000       .10000E+07
    31 'Prefactor '    .23843E-01   1.0000          .0000       .10000E+07
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .86601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2447.555     FROM MIGRAD    STATUS=CONVERGED    293 CALLS     4320 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37866.        3.3131       -.25216E-09   -.46084    
   2  Prefactor     .16873E-05    1910.4        .34566E-05** at limit **
   3  norm          16.860        51.680       -.17812E-05    .42163E-02
   4  norm          .40694E-05    9.0578        .50970E-06** at limit **
   5  Prefactor      .0000        31.373       -.18002E-06** at limit **
   6  Prefactor      .0000        23.420       -.24486E-06** at limit **
   7  Prefactor     .47518E-06    159.35        .15733E-05** at limit **
   8  Prefactor     .66613E-08    28.249        .13362E-06** at limit **
   9  Prefactor     .17208E-08    10.282        .67559E-06** at limit **
  10  norm           .0000        6.1238       -.15750E-06** at limit **
  11  norm           .0000        5.2084       -.14518E-06** at limit **
  12  Prefactor     .11102E-09    8.6598        .12316E-06** at limit **
  13  Prefactor     .41189E-07    14.903       -.83297E-07** at limit **
  14  Prefactor     22.187        13.152       -.18425E-06    .77126E-03
  15  norm           .0000        .78566        .83889E-07** at limit **
  16  norm          3.5210        1.1203        .16315E-07   -.10284E-02
  17  Prefactor     2.2799        5.1511        .13526E-07   -.68347E-04
  18  Prefactor     .72164E-09    12.338       -.10029E-05** at limit **
  19  Prefactor     .56640E-05    7.2576        .48301E-06** at limit **
  20  Prefactor     3.2126        5.0841       -.42232E-07    .46439E-04
  21  Prefactor     .14877E-06    12.563       -.50372E-06** at limit **
  22  Prefactor     67.269        74.738        .48016E-06    .51111E-03
  23  Prefactor      .0000        6.1640       -.22469E-06** at limit **
  24  Prefactor     2.8683        8.6607       -.82401E-07    .53460E-03
  25  norm          4.2607        9.6133       -.11227E-06    .43443E-03
  26  Prefactor     65.476        42.314        .34291E-06   -.10689E-01
  27  norm          .86866        .47754        .60184E-08    .12241E-03
  28  norm          67.992        24.440       -.74264E-07    .11927    
  29  Prefactor     3.1918        8.1869       -.12479E-06   -.22448E-02
  30  norm          5.7417        3.7423        .13390E-07   -.42255E-03
  31  Prefactor      .0000        26.123        .49196E-06** at limit **
  32  Normalizat    .10000E-01    .33561       -.72505E-04** at limit **
  33  Prefactor     .86361        .16857        .30195E-05   -.98596E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 37866.5
  Prefactor  = 1.68726e-06
  norm       = 16.8604
  norm       = 4.06941e-06
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.75175e-07
  Prefactor  = 6.66134e-09
  Prefactor  = 1.72085e-09
  norm       = 0
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 4.11893e-08
  Prefactor  = 22.1872
  norm       = 0
  norm       = 3.52103
  Prefactor  = 2.27994
  Prefactor  = 7.21645e-10
  Prefactor  = 5.66402e-06
  Prefactor  = 3.21259
  Prefactor  = 1.4877e-07
  Prefactor  = 67.2687
  Prefactor  = 0
  Prefactor  = 2.86835
  norm       = 4.26067
  Prefactor  = 65.4757
  norm       = 0.868664
  norm       = 67.9923
  Prefactor  = 3.1918
  norm       = 5.74175
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.863609
 **********
 **   18 **HESSE 
 **********

 FCN=   2447.555     FROM HESSE     STATUS=OK           761 CALLS     5081 TOTAL
                     EDM=   .31E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37866.        7288.9        .56224E-05   -1.1791    
   2  Prefactor     .16873E-05    1913.7        .50228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.860        51.917        .26334E-03   -1.5626    
   4  norm          .40694E-05    13.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        31.226        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        23.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .47518E-06    160.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .66613E-08    28.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .17208E-08    10.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        6.1188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        5.2111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11102E-09    8.6627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .41189E-07    14.947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.187        13.236        .21301E-03   -1.5614    
  15  norm           .0000        .77986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5210        1.1174        .53855E-03   -1.5670    
  17  Prefactor     2.2799        5.2931        .69363E-03   -1.5678    
  18  Prefactor     .72164E-09    12.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .56640E-05    13.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2126        5.1773        .56383E-03   -1.5672    
  21  Prefactor     .14877E-06    12.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     67.269        75.601        .11768E-03   -1.5544    
  23  Prefactor      .0000        6.1410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.8683        8.9556        .60382E-03   -1.5674    
  25  norm          4.2607        9.6552        .48513E-03   -1.5667    
  26  Prefactor     65.476        43.462        .12525E-03   -1.5546    
  27  norm          .86866        .47986        .47792E-03   -1.5689    
  28  norm          67.992        27.147        .12177E-03   -1.5543    
  29  Prefactor     3.1918        8.5660        .56298E-03   -1.5672    
  30  norm          5.7417        3.7566        .41890E-03   -1.5660    
  31  Prefactor      .0000        25.634        .16796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .19459        .26202       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .86361        .19766        .44570E-01   -.97425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000310726
Minuit parameter uncertainties:
  1  7290.68
  2  0.113683
  3  51.9187
  4  0.0148541
  5  2.97109e-05
  6  1.87348e-05
  7  0.0174434
  8  0.000866718
  9  0.000264808
  10  1.75928e-05
  11  1.59725e-05
  12  6.507e-05
  13  0.00156901
  14  13.2358
  15  1.63688e-06
  16  1.11737
  17  5.29307
  18  0.000185357
  19  0.0175454
  20  5.17727
  21  0.00275175
  22  75.6024
  23  1.67262e-05
  24  8.95564
  25  9.65527
  26  43.4619
  27  0.479857
  28  27.1468
  29  8.56602
  30  3.75661
  31  1.84276e-05
  32  1.11181e-06
  33  0.197826
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  4.119e-08  1.569e-03  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.565e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  8.636e-01  1.978e-01  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  1.000e-02  1.112e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.154 52.010
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191713/likelihoodResults_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.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) = 2447.58718846
delta logL = -0.0319614319064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2447.55522714
delta logL = -1.10941982712e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50610E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.1315       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86367       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2447.555     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      217 TOTAL
                     EDM=   .58E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        17.076       -.13354E-06** at limit **
   2  Index         2.3927        6.0482        .69739E-05     .0000    
   3  Normalizat    .10000E-01    .33397       -.10268E-04** at limit **
   4  Prefactor     .86361        .14059        .31501E-05   -.62473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.39269
  Normalizat = 0.01
  Prefactor  = 0.863609
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2447.555     FROM HESSE     STATUS=FAILED        11 CALLS      228 TOTAL
                     EDM=   .58E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        17.319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64174        1.9227        .69739E-05   -.54856    
   3  Normalizat    .10000E-01    .25505       -.10268E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .86361        1.2102        .31501E-05   -.97425    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.79389e-12
Minuit parameter uncertainties:
  1  4.12594e-05
  2  1.55707
  3  2.8339e-07
  4  1.25112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191713': 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): 101
logL (Free Index) = 2447.55522703
delta logL = 1.37288225233e-09

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  0.000e+00  4.126e-05  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.393e+00  1.557e+00  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  8.636e-01  1.251e+00  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  1.000e-02  2.834e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.154 52.010

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/191713/cmap_HighResolution_694742401_695001601_4FGL_J0904.6+5200_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2023-01-10 00:49:41.612251', job_id='191713', GAL2='0.86', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1673340581.61', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.37e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1757' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 00:49:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 191713: <4FGL_J0904.6+5200_daily_bin1757> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 10 00:35:15 2023
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:36:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:36:12 2023
Terminated at Tue Jan 10 00:49:42 2023
Results reported at Tue Jan 10 00:49:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1757 136.154 52.0096 694742401 695001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0904.6+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   619.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            867 sec.

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

