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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1760
RA = 136.154, Dec = 52.0096
tmin = 695520001, tmax = 695779201
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='733467', job_status='RUN', time_executed='2023-01-19 00:42:21.891228', time_epoch_executed='1674117741.89' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733467

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733467/ft1_4FGL_J0904.6+5200_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733467/ft2_4FGL_J0904.6+5200_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733467/ft1_4FGL_J0904.6+5200_daily_bin1760.fits outfile=/scratch/kocevski/733467/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1760.fits ra=136.154 dec=52.0096 rad=12.0 tmin=695520001.0 tmax=695779201.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.48
user 2.21
sys 0.22

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

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

Number of photons that the gtmktime cut: 137

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733467/ft1_filtered_4FGL_J0904.6+5200_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733467/ft2_4FGL_J0904.6+5200_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733467/ltcube_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.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/733467/ft2_4FGL_J0904.6+5200_daily_bin1760.fits
.....................!
real 17.71
user 17.17
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733467/ft1_filtered_4FGL_J0904.6+5200_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733467/ft2_4FGL_J0904.6+5200_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733467/ltcube_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.fits outfile=/scratch/kocevski/733467/expmap_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.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/733467/ltcube_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.fits
.....................!
real 193.75
user 187.43
sys 4.97

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/733467/ft1_filtered_4FGL_J0904.6+5200_daily_bin1760.fits scfile=/scratch/kocevski/733467/ft2_4FGL_J0904.6+5200_daily_bin1760.fits outfile=/scratch/kocevski/733467/cmap_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733467/ft1_filtered_4FGL_J0904.6+5200_daily_bin1760.fits scfile=/scratch/kocevski/733467/ft2_4FGL_J0904.6+5200_daily_bin1760.fits outfile=/scratch/kocevski/733467/cmap_HighResolution_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.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.66
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26981E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    905.67       1.0000          .0000       .10000E+07
     3 'norm      '    .11500       1.0000          .0000       .10000E+07
     4 'norm      '    11.514       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11323       1.0000          .0000       .10000E+07
     6 'Prefactor '    .48231E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33971       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32051E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12097E-02   1.0000          .0000       .10000E+07
    10 'norm      '    36.444       1.0000          .0000       .10000E+07
    11 'norm      '    2.7454       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40401E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11331E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    19.225       1.0000          .0000       .10000E+07
    15 'norm      '    .10381E-07   1.0000          .0000       .10000E+07
    16 'norm      '    3.1002       1.0000          .0000       .10000E+07
    17 'Prefactor '    .36034E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .43589E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    25.407       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.3316       1.0000          .0000       .10000E+07
    21 'Prefactor '    49.017       1.0000          .0000       .10000E+07
    22 'Prefactor '    .60394E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .44001E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    42.735       1.0000          .0000       .10000E+07
    25 'norm      '    .36355E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    56.365       1.0000          .0000       .10000E+07
    27 'norm      '    1.5741       1.0000          .0000       .10000E+07
    28 'norm      '    .76185E-03   1.0000          .0000       .10000E+07
    29 'Prefactor '    .42983E-03   1.0000          .0000       .10000E+07
    30 'norm      '    9.0228       1.0000          .0000       .10000E+07
    31 'Prefactor '    83.725       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96488       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=   1622.394     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     3307 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        51.520       -.13958E-06** at limit **
   2  Prefactor     905.65        1.3856        .17409E-08    .30568E-01
   3  norm          .18432E-04    5.0385       -.20467E-07** at limit **
   4  norm          11.547        12.914        .37740E-07    .17462E-02
   5  Prefactor     .33307E-09    43.419        .61854E-06** at limit **
   6  Prefactor     .26201E-07    13.518        .42210E-08** at limit **
   7  Prefactor     .12086E-04    49.725       -.12153E-05** at limit **
   8  Prefactor     .55006E-06    36.472       -.34202E-06** at limit **
   9  Prefactor     .19762E-07    10.062       -.34827E-07** at limit **
  10  norm          34.031        29.827        .28500E-06   -.12841    
  11  norm          3.3876        12.402       -.38284E-06   -.66593E-02
  12  Prefactor     .63983E-05    9.7725       -.23104E-06** at limit **
  13  Prefactor     .12657E-07    30.772       -.74527E-06** at limit **
  14  Prefactor     19.562        17.749        .16292E-06    .10518    
  15  norm           .0000        .71204        .12480E-06** at limit **
  16  norm          3.1010        1.8477       -.75656E-07   -.30989E-02
  17  Prefactor      .0000        7.9912        .79521E-06** at limit **
  18  Prefactor     .19951E-06    24.378        .33516E-08** at limit **
  19  Prefactor     25.406        1.7510       -.27662E-07   -.35695E-02
  20  Prefactor     8.3487        2.6259       -.12302E-06   -.79211E-02
  21  Prefactor     49.060        4.3253       -.39018E-07    .40951E-02
  22  Prefactor     .13010E-04    40.466       -.86683E-06** at limit **
  23  Prefactor     .29421E-08    9.0869        .12943E-06** at limit **
  24  Prefactor     43.069        10.311        .70657E-07    .38902E-01
  25  norm          .16143E-06    5.6642        .80824E-07** at limit **
  26  Prefactor     57.860        60.659       -.69201E-06   -.25243E-01
  27  norm          1.5693        1.0300        .49326E-07    .36941E-02
  28  norm          .48063E-05    10.740       -.18965E-06** at limit **
  29  Prefactor     .45408E-07    4.2929        .71228E-07** at limit **
  30  norm          9.1041        7.2393       -.75247E-07   -.24597E-03
  31  Prefactor     85.315        62.275       -.58272E-06   -.27663E-01
  32  Normalizat    1.1406        .56885        .18033E-04    .39713E-04
  33  Prefactor     .96898        .46325       -.92074E-05    .18796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 905.649
  norm       = 1.84323e-05
  norm       = 11.547
  Prefactor  = 3.33067e-10
  Prefactor  = 2.62013e-08
  Prefactor  = 1.20859e-05
  Prefactor  = 5.5006e-07
  Prefactor  = 1.9762e-08
  norm       = 34.0313
  norm       = 3.38759
  Prefactor  = 6.39833e-06
  Prefactor  = 1.26565e-08
  Prefactor  = 19.5615
  norm       = 0
  norm       = 3.10101
  Prefactor  = 0
  Prefactor  = 1.99507e-07
  Prefactor  = 25.4063
  Prefactor  = 8.34868
  Prefactor  = 49.0596
  Prefactor  = 1.30096e-05
  Prefactor  = 2.94209e-09
  Prefactor  = 43.0692
  norm       = 1.61426e-07
  Prefactor  = 57.8605
  norm       = 1.56931
  norm       = 4.80632e-06
  Prefactor  = 4.54081e-08
  norm       = 9.10408
  Prefactor  = 85.3149
  Normalizat = 1.14062
  Prefactor  = 0.968982
 **********
 **   18 **HESSE 
 **********

 FCN=   1622.394     FROM HESSE     STATUS=OK           761 CALLS     4068 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        51.526        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     905.65        2118.6        .33244E-04   -1.5106    
   3  norm          .18432E-04    59.602        .88513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.547        16.051        .29499E-03   -1.5640    
   5  Prefactor     .33307E-09    43.356        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .26201E-07    13.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12086E-04    386.70        .96832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55006E-06    83.433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19762E-07    10.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          34.031        43.693        .16567E-03   -1.5591    
  11  norm          3.3876        55.281        .61417E-03   -1.5671    
  12  Prefactor     .63983E-05    18.549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12657E-07    31.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.562        31.387        .22815E-03   -1.5620    
  15  norm           .0000        .71257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1010        1.8508        .57569E-03   -1.5673    
  17  Prefactor      .0000        8.0758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .19951E-06    25.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.406        26.377        .19843E-03   -1.5607    
  20  Prefactor     8.3487        15.381        .34708E-03   -1.5650    
  21  Prefactor     49.060        50.619        .14284E-03   -1.5568    
  22  Prefactor     .13010E-04    80.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .29421E-08    9.0864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     43.069        33.000        .15298E-03   -1.5577    
  25  norm          .16143E-06    9.7241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     57.860        90.348        .13321E-03   -1.5556    
  27  norm          1.5693        1.0341        .71137E-03   -1.5683    
  28  norm          .48063E-05    18.097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .45408E-07    9.8859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          9.1041        7.2413        .33343E-03   -1.5648    
  31  Prefactor     85.315        90.260        .10929E-03   -1.5523    
  32  Normalizat    1.1406        .50813        .75396E-01   -.88458    
  33  Prefactor     .96898        .40520        .74624E-01   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20797e-06
Minuit parameter uncertainties:
  1  1.84744e-05
  2  2120.34
  3  0.066291
  4  16.0515
  5  0.000238543
  6  0.0011913
  7  0.136737
  8  0.0135493
  9  0.000898719
  10  43.6938
  11  27.3695
  12  0.0217885
  13  0.00126068
  14  31.3868
  15  3.65802e-06
  16  1.8508
  17  1.32752e-05
  18  0.00449798
  19  26.3772
  20  15.3813
  21  50.6197
  22  0.0645665
  23  0.000326813
  24  32.9997
  25  0.00250578
  26  90.35
  27  1.03413
  28  0.0186526
  29  0.00134036
  30  7.24126
  31  90.2611
  32  0.510343
  33  0.406483
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.266e-08  1.261e-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:  9.690e-01  4.065e-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.141e+00  5.103e-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: 2.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733467/likelihoodResults_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.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) = 1622.40905068
delta logL = -0.0151909754154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1622.25211508
delta logL = 0.141744622649

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1622.394     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      456 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    29.326        .42118E-03** at limit **
   2  Index         2.6819        7.3994        .50000       -.79581E-11
   3  Normalizat    1.1406        .46940        .75402E-01   -.15476E-04
   4  Prefactor     .96898        .43417        .74617E-01    .18847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 2.68186
  Normalizat = 1.14062
  Prefactor  = 0.968983
 **********
 **   18 **HESSE 
 **********

 FCN=   1622.394     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    29.259        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6819        7.3969        .51000       -128.32    
   3  Normalizat    1.1406        .47167        .33370E-03   -2.2570    
   4  Prefactor     .96898        .43631        .33017E-03   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03197e-12
Minuit parameter uncertainties:
  1  0.000134497
  2  4.43041
  3  0.473438
  4  0.43791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733467': 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) = 1622.3938597
delta logL = 2.05773176276e-10

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.665e-10  1.345e-04  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  2.682e+00  4.430e+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:  9.690e-01  4.379e-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.141e+00  4.734e-01  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/733467/cmap_HighResolution_695520001_695779201_4FGL_J0904.6+5200_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-02', job_status='DONE', photon_flux_upper_limit='2.63e-07', time_completed='2023-01-19 00:50:37.444779', job_id='733467', GAL2='0.97', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1674118237.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.06e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1760' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:50:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 733467: <4FGL_J0904.6+5200_daily_bin1760> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:18 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:41:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:41:31 2023
Terminated at Thu Jan 19 00:50:38 2023
Results reported at Thu Jan 19 00:50:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1760 136.154 52.0096 695520001 695779201 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 :                                   495.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            620 sec.

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

