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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1745
RA = 136.154, Dec = 52.0096
tmin = 691632001, tmax = 691891201
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='641644', job_status='RUN', time_executed='2022-12-05 00:21:51.911714', time_epoch_executed='1670228511.91' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641644/ft1_4FGL_J0904.6+5200_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641644/ft1_4FGL_J0904.6+5200_daily_bin1745.fits outfile=/scratch/kocevski/641644/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1745.fits ra=136.154 dec=52.0096 rad=12.0 tmin=691632001.0 tmax=691891201.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.37
user 2.13
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.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/641644/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/641644/ft1_filtered_4FGL_J0904.6+5200_daily_bin1745.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 446

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641644/ft1_filtered_4FGL_J0904.6+5200_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/641644/ltcube_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.fits outfile=/scratch/kocevski/641644/expmap_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.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/641644/ltcube_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.fits
.....................!
real 191.99
user 186.72
sys 4.87

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/641644/ft1_filtered_4FGL_J0904.6+5200_daily_bin1745.fits scfile=/scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.fits outfile=/scratch/kocevski/641644/cmap_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641644/ft1_filtered_4FGL_J0904.6+5200_daily_bin1745.fits scfile=/scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.fits outfile=/scratch/kocevski/641644/cmap_HighResolution_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641644/ft1_filtered_4FGL_J0904.6+5200_daily_bin1745.fits', '/scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.fits', expMap='/scratch/kocevski/641644/expmap_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.fits', expCube='/scratch/kocevski/641644/ltcube_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641644/Model_4FGL_J0904.6+5200_daily_bin1745.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/641644/ft1_filtered_4FGL_J0904.6+5200_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/641644/ft2_4FGL_J0904.6+5200_daily_bin1745.fits
Exposure map: /scratch/kocevski/641644/expmap_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.fits
Exposure cube: /scratch/kocevski/641644/ltcube_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641644/Model_4FGL_J0904.6+5200_daily_bin1745.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) = 4939.81141874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5832       1.0000          .0000       .10000E+07
     2 'Prefactor '    .47203E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .66665       1.0000          .0000       .10000E+07
     4 'norm      '    .26691E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .48533E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25236E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10406E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .95152E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    17.702       1.0000          .0000       .10000E+07
    10 'norm      '    .13480E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .27217E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .30427E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .15852E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1259       1.0000          .0000       .10000E+07
    15 'norm      '    .14160E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .28474       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.5829       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11011E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .12753E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .67457E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .19839E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .15518E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .46722E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    16.138       1.0000          .0000       .10000E+07
    25 'norm      '    .62506E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    8.7324       1.0000          .0000       .10000E+07
    27 'norm      '    2.1081       1.0000          .0000       .10000E+07
    28 'norm      '    20.409       1.0000          .0000       .10000E+07
    29 'Prefactor '    .74510E-04   1.0000          .0000       .10000E+07
    30 'norm      '    3.5576       1.0000          .0000       .10000E+07
    31 'Prefactor '    21.439       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.3629       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .65069       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=   4939.628     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     2633 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5824        7.2955        .38944E-07    .64197E-03
   2  Prefactor     .39169E-06    2.7154        .20967E-05** at limit **
   3  norm          .66135        2.3472        .55047E-06    .35979E-01
   4  norm           .0000        1.6756       -.32712E-06** at limit **
   5  Prefactor     .15548E-03    47.554       -.53260E-05** at limit **
   6  Prefactor     .55511E-09    2.7618        .26321E-06** at limit **
   7  Prefactor     .44502E-05    52.509        .48887E-06** at limit **
   8  Prefactor     .38303E-08    4.9526        .32080E-06** at limit **
   9  Prefactor     17.815        11.718        .22317E-05   -.11410E-02
  10  norm          .47184E-08    3.1313        .73609E-06** at limit **
  11  norm          .35527E-08    4.0635        .95634E-07** at limit **
  12  Prefactor     .26645E-08    3.8688       -.93564E-07** at limit **
  13  Prefactor     .44409E-09    13.840       -.94427E-06** at limit **
  14  Prefactor     8.0651        5.3239        .76167E-07    .27718E-02
  15  norm           .0000        1.1514       -.33409E-06** at limit **
  16  norm          .28503        .54374        .19829E-07   -.75678E-03
  17  Prefactor     6.6020        3.6826        .24517E-06    .12298E-02
  18  Prefactor      .0000        .86809       -.28050E-06** at limit **
  19  Prefactor     .28616E-03    78.310       -.99898E-05** at limit **
  20  Prefactor     .55511E-09    2.6551       -.24933E-06** at limit **
  21  Prefactor     .59508E-07    31.109       -.18061E-05** at limit **
  22  Prefactor     .16653E-09    18.382       -.56437E-06** at limit **
  23  Prefactor     .88263E-07    2.4474       -.12976E-05** at limit **
  24  Prefactor     16.114        4.6173        .19358E-06    .69911E-01
  25  norm          .63560E-07    2.6589        .16359E-05** at limit **
  26  Prefactor     8.5607        6.3384       -.61115E-06   -.29184E-01
  27  norm          2.1065        .70487        .10134E-06    .14566E-01
  28  norm          20.362        1.5939       -.23668E-06   -.36884E-02
  29  Prefactor     .73275E-08    5.3604       -.20325E-05** at limit **
  30  norm          3.5571        2.6749        .42025E-08   -.79082E-02
  31  Prefactor     22.106        3.9589       -.48244E-07    .85690E-02
  32  Normalizat    1.3629        .24079       -.25679E-04    .19147E-03
  33  Prefactor     .65073        .21777        .17551E-04    .19805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58236
  Prefactor  = 3.91687e-07
  norm       = 0.661353
  norm       = 0
  Prefactor  = 0.000155477
  Prefactor  = 5.55112e-10
  Prefactor  = 4.45016e-06
  Prefactor  = 3.83027e-09
  Prefactor  = 17.8153
  norm       = 4.71845e-09
  norm       = 3.55271e-09
  Prefactor  = 2.66454e-09
  Prefactor  = 4.44089e-10
  Prefactor  = 8.06511
  norm       = 0
  norm       = 0.285028
  Prefactor  = 6.60198
  Prefactor  = 0
  Prefactor  = 0.000286163
  Prefactor  = 5.55112e-10
  Prefactor  = 5.9508e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 8.82627e-08
  Prefactor  = 16.1142
  norm       = 6.35603e-08
  Prefactor  = 8.56071
  norm       = 2.10651
  norm       = 20.362
  Prefactor  = 7.32747e-09
  norm       = 3.55713
  Prefactor  = 22.1062
  Normalizat = 1.36285
  Prefactor  = 0.650731
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.628     FROM HESSE     STATUS=OK           775 CALLS     3408 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5824        7.2849        .46995E-03   -1.5665    
   2  Prefactor     .39169E-06    61.141        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .66135        8.0491        .63458E-03   -1.5692    
   4  norm           .0000        1.6737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15548E-03    92.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-09    2.7619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44502E-05    54.528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38303E-08    5.0705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.815        13.012        .23778E-03   -1.5624    
  10  norm          .47184E-08    6.7126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .35527E-08    4.1036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26645E-08    6.7395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .44409E-09    13.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0651        5.3488        .35147E-03   -1.5651    
  15  norm           .0000        .48276        .21642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .28503        .65758        .17296E-02   -1.5697    
  17  Prefactor     6.6020        4.4212        .39089E-03   -1.5657    
  18  Prefactor      .0000        .86595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28616E-03    11.077        .67538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-09    2.6574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .59508E-07    31.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .16653E-09    18.254        .17351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .88263E-07    2.9579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.114        8.8268        .24905E-03   -1.5628    
  25  norm          .63560E-07    2.9973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.5607        41.576        .33896E-03   -1.5649    
  27  norm          2.1065        .71576        .71032E-03   -1.5679    
  28  norm          20.362        14.765        .22142E-03   -1.5618    
  29  Prefactor     .73275E-08    5.6958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          3.5571        2.6798        .53560E-03   -1.5670    
  31  Prefactor     22.106        38.706        .21604E-03   -1.5614    
  32  Normalizat    1.3629        .22135        .53863E-01   -.81709    
  33  Prefactor     .65073        .19228        .69544E-01   -1.0549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06681e-06
Minuit parameter uncertainties:
  1  7.28495
  2  0.00978711
  3  4.61445
  4  5.66367e-06
  5  0.239225
  6  7.71861e-05
  7  0.0311554
  8  0.000279347
  9  13.012
  10  0.000354982
  11  0.000242157
  12  0.000267071
  13  0.000158514
  14  5.34881
  15  7.17307e-07
  16  0.657584
  17  4.42123
  18  3.51704e-06
  19  0.1126
  20  7.61449e-05
  21  0.00272702
  22  0.000118071
  23  0.00102205
  24  8.82678
  25  0.000873056
  26  37.7322
  27  0.715761
  28  14.7648
  29  0.000408611
  30  2.67978
  31  38.7059
  32  0.221505
  33  0.192475
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  4.441e-10  1.585e-04  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:  6.507e-01  1.925e-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.363e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/641644/likelihoodResults_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4939.66302601
delta logL = -0.0346910084554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4939.6283351
delta logL = -9.76306182565e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39202E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.2883       1.0000          .0000       10.000    
     3 'Normalizat'    1.3628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65076       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=   4939.628     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      203 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14988E-08    16.925       -.21665E-05** at limit **
   2  Index         2.2899        6.1446        .54763E-04    .79415E-10
   3  Normalizat    1.3629        .22767       -.76531E-05    .12940E-04
   4  Prefactor     .65073        .21127        .81304E-05    .14424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4988e-09
  Index      = 2.28991
  Normalizat = 1.36285
  Prefactor  = 0.65073
 **********
 **   18 **HESSE 
 **********

 FCN=   4939.628     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      242 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14988E-08    .34513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2899        6.1334        .50000       -.57284    
   3  Normalizat    1.3629        .75698E-03    .53863E-01   -.81709    
   4  Prefactor     .65073        .70590E-03    .69544E-01   -1.0549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05143e-12
Minuit parameter uncertainties:
  1  4.52362e-05
  2  5918.4
  3  0.000756977
  4  0.000705902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641644': 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) = 4939.628335
delta logL = 1.27329258248e-11

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.499e-09  4.524e-05  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.290e+00  5.918e+03  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:  6.507e-01  7.059e-04  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.363e+00  7.570e-04  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/641644/cmap_HighResolution_691632001_691891201_4FGL_J0904.6+5200_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2022-12-05 00:34:07.600860', job_id='641644', GAL2='0.65', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1670229247.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.27e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1745' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:34:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 641644: <4FGL_J0904.6+5200_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:20:23 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:20:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:20:24 2022
Terminated at Mon Dec  5 00:34:08 2022
Results reported at Mon Dec  5 00:34:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1745 136.154 52.0096 691632001 691891201 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 :                                   737.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

