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 122 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_bin1758
RA = 136.154, Dec = 52.0096
tmin = 695001601, tmax = 695260801
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='362190', job_status='RUN', time_executed='2023-01-13 00:33:19.893375', time_epoch_executed='1673598799.89' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362190/ft1_4FGL_J0904.6+5200_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362190/ft1_4FGL_J0904.6+5200_daily_bin1758.fits outfile=/scratch/kocevski/362190/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1758.fits ra=136.154 dec=52.0096 rad=12.0 tmin=695001601.0 tmax=695260801.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.81
user 2.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.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/362190/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/362190/ft1_filtered_4FGL_J0904.6+5200_daily_bin1758.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.52
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 235

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362190/ft1_filtered_4FGL_J0904.6+5200_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/362190/ltcube_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.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/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.fits
.....................!
real 16.02
user 15.59
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362190/ft1_filtered_4FGL_J0904.6+5200_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/362190/ltcube_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.fits outfile=/scratch/kocevski/362190/expmap_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.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/362190/ltcube_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.fits
.....................!
real 192.82
user 186.67
sys 5.40

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/362190/ft1_filtered_4FGL_J0904.6+5200_daily_bin1758.fits scfile=/scratch/kocevski/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.fits outfile=/scratch/kocevski/362190/cmap_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362190/ft1_filtered_4FGL_J0904.6+5200_daily_bin1758.fits scfile=/scratch/kocevski/362190/ft2_4FGL_J0904.6+5200_daily_bin1758.fits outfile=/scratch/kocevski/362190/cmap_HighResolution_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.362       1.0000          .0000       .10000E+07
     2 'Prefactor '    1501.8       1.0000          .0000       .10000E+07
     3 'norm      '    3.9202       1.0000          .0000       .10000E+07
     4 'norm      '    .19169E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .27051E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.9484       1.0000          .0000       .10000E+07
     7 'Prefactor '    .63953E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18107E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .26257E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .36281E-02   1.0000          .0000       .10000E+07
    11 'norm      '    17.897       1.0000          .0000       .10000E+07
    12 'Prefactor '    29.751       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13967E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    21.410       1.0000          .0000       .10000E+07
    15 'norm      '    .78880       1.0000          .0000       .10000E+07
    16 'norm      '    1.4020       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.6809       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.9984       1.0000          .0000       .10000E+07
    19 'Prefactor '    .90031E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .30418E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    29.641       1.0000          .0000       .10000E+07
    22 'Prefactor '    .43544E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .90012E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    .11530E-03   1.0000          .0000       .10000E+07
    25 'norm      '    16.344       1.0000          .0000       .10000E+07
    26 'Prefactor '    20.186       1.0000          .0000       .10000E+07
    27 'norm      '    1.2780       1.0000          .0000       .10000E+07
    28 'norm      '    28.312       1.0000          .0000       .10000E+07
    29 'Prefactor '    .34893E-03   1.0000          .0000       .10000E+07
    30 'norm      '    3.9328       1.0000          .0000       .10000E+07
    31 'Prefactor '    .70265E-03   1.0000          .0000       .10000E+07
    32 'Normalizat'    .57119       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95223       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=   2718.896     FROM MIGRAD    STATUS=CONVERGED    317 CALLS     3634 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.351        109.69        .78105E-05    .75942E-03
   2  Prefactor     1316.0        1618.5       -.69324E-05    .82397E-04
   3  norm          3.9359        14.456        .12462E-06    .39964E-03
   4  norm           .0000        5.4166        .32567E-06** at limit **
   5  Prefactor      .0000        16.208        .28871E-06** at limit **
   6  Prefactor     8.9979        16.514       -.57730E-06    .74621E-03
   7  Prefactor     .38858E-09    77.621       -.13636E-05** at limit **
   8  Prefactor      .0000        17.206        .22330E-06** at limit **
   9  Prefactor      .0000        12.247        .26574E-06** at limit **
  10  norm          .11102E-09    15.333       -.67283E-06** at limit **
  11  norm          18.183        17.192        .96311E-07   -.71784E-03
  12  Prefactor     29.516        40.574        .20821E-06    .69586E-03
  13  Prefactor     .33307E-09    29.348       -.83351E-06** at limit **
  14  Prefactor     21.366        13.089        .18098E-08   -.16829E-03
  15  norm          .79894        1.6409        .63771E-07   -.41009E-03
  16  norm          1.3993        .93344        .52586E-08    .95285E-03
  17  Prefactor     4.6046        10.777       -.16363E-06   -.15681E-03
  18  Prefactor     4.9113        6.7460        .31461E-07   -.22431E-03
  19  Prefactor     .77716E-09    29.313       -.15392E-05** at limit **
  20  Prefactor      .0000        8.2374        .50427E-06** at limit **
  21  Prefactor     29.706        24.320        .57719E-06   -.10052E-02
  22  Prefactor      .0000        34.600        .41985E-06** at limit **
  23  Prefactor      .0000        17.304       -.63447E-06** at limit **
  24  Prefactor      .0000        3.0887       -.77795E-07** at limit **
  25  norm          16.635        14.523       -.18012E-06   -.50983E-03
  26  Prefactor     17.781        59.969        .22093E-05   -.46177E-03
  27  norm          1.2781        .62952       -.25374E-07   -.63708E-03
  28  norm          28.135        7.3954        .68793E-07   -.19269E-02
  29  Prefactor      .0000        3.2375       -.23308E-07** at limit **
  30  norm          3.9252        2.9246        .19274E-07   -.15414E-04
  31  Prefactor      .0000        25.211       -.15528E-07** at limit **
  32  Normalizat    .57948        .30431       -.58000E-06    .86588E-05
  33  Prefactor     .94910        .27758       -.32492E-05    .16613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.3508
  Prefactor  = 1315.98
  norm       = 3.93587
  norm       = 0
  Prefactor  = 0
  Prefactor  = 8.9979
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.11022e-10
  norm       = 18.1829
  Prefactor  = 29.5157
  Prefactor  = 3.33067e-10
  Prefactor  = 21.3655
  norm       = 0.798937
  norm       = 1.39932
  Prefactor  = 4.60459
  Prefactor  = 4.91129
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 29.7055
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 16.6346
  Prefactor  = 17.7806
  norm       = 1.27809
  norm       = 28.1354
  Prefactor  = 0
  norm       = 3.92516
  Prefactor  = 0
  Normalizat = 0.579476
  Prefactor  = 0.9491
 **********
 **   18 **HESSE 
 **********

 FCN=   2718.896     FROM HESSE     STATUS=OK           761 CALLS     4395 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.351        109.77        .13091E-03   -1.5553    
   2  Prefactor     1316.0        1626.1        .25824E-04   -1.4982    
   3  norm          3.9359        14.412        .50930E-03   -1.5668    
   4  norm           .0000        5.4370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        16.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9979        16.736        .33482E-03   -1.5648    
   7  Prefactor     .38858E-09    79.180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        17.427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        12.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-09    15.523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.183        18.587        .23647E-03   -1.5623    
  12  Prefactor     29.516        40.325        .18336E-03   -1.5599    
  13  Prefactor     .33307E-09    29.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.366        13.112        .21618E-03   -1.5616    
  15  norm          .79894        1.6751        .53774E-03   -1.5690    
  16  norm          1.3993        .93528        .87930E-03   -1.5684    
  17  Prefactor     4.6046        10.892        .46490E-03   -1.5665    
  18  Prefactor     4.9113        6.7774        .44956E-03   -1.5664    
  19  Prefactor     .77716E-09    29.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        8.0900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.706        24.362        .18371E-03   -1.5599    
  22  Prefactor      .0000        34.492        .15808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        17.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        3.0856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.635        14.447        .24748E-03   -1.5626    
  26  Prefactor     17.781        59.143        .22264E-03   -1.5624    
  27  norm          1.2781        .63078        .61607E-03   -1.5685    
  28  norm          28.135        19.096        .18797E-03   -1.5602    
  29  Prefactor      .0000        3.2215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          3.9252        2.9229        .50845E-03   -1.5668    
  31  Prefactor      .0000        25.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .57948        .27593        .69271E-01   -1.0886    
  33  Prefactor     .94910        .24841        .45667E-01   -.94446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91097e-10
Minuit parameter uncertainties:
  1  109.769
  2  1626.62
  3  14.4121
  4  1.39845e-05
  5  2.40687e-05
  6  16.7358
  7  0.000361182
  8  2.31966e-05
  9  1.68682e-05
  10  8.52527e-05
  11  18.5867
  12  40.3251
  13  0.000200044
  14  13.1118
  15  1.67512
  16  0.935278
  17  10.892
  18  6.77737
  19  0.000298896
  20  2.74889e-05
  21  24.3624
  22  3.43533e-05
  23  3.83694e-05
  24  3.44769e-06
  25  14.4468
  26  59.1446
  27  0.630784
  28  19.0957
  29  2.30185e-06
  30  2.92294
  31  3.67772e-06
  32  0.276587
  33  0.248713
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  3.331e-10  2.000e-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:  9.491e-01  2.487e-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:  5.795e-01  2.766e-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: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362190/likelihoodResults_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.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) = 2718.91244729
delta logL = -0.0164083409418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2718.10047113
delta logL = 0.795567825201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43100E-03   1.0000          .0000       .10000E+07
     2 'Index     '    8.7365       1.0000          .0000       10.000    
     3 'Normalizat'    .50944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99107       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2718.896     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      337 TOTAL
                     EDM=   .55E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        23.109        .42118E-03** at limit **
   2  Index         1.6544        1.2139       -.14518E-06     .0000    
   3  Normalizat    .57948        .89525        .56450E-05   -.47608E-05
   4  Prefactor     .94910        1.3052        .66162E-05    .38613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.6544
  Normalizat = 0.579476
  Prefactor  = 0.9491
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2718.896     FROM HESSE     STATUS=FAILED         9 CALLS      346 TOTAL
                     EDM=   .55E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26619        1.5718       -.14518E-06   -258.34    
   3  Normalizat    .57948        .89525        .56450E-05   -1.0886    
   4  Prefactor     .94910        1.3052        .66162E-05   -2.1971    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.54072e-14
Minuit parameter uncertainties:
  1  3.3193e-06
  2  1.23656
  3  0.919193
  4  1.35277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362190': 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) = 2718.89603895
delta logL = 6.36646291241e-12

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  0.000e+00  3.319e-06  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  1.654e+00  1.237e+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.491e-01  1.353e+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:  5.795e-01  9.192e-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/362190/cmap_HighResolution_695001601_695260801_4FGL_J0904.6+5200_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2023-01-13 00:43:28.885295', job_id='362190', GAL2='0.95', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1673599408.89', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='6.37e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1758' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:43:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 362190: <4FGL_J0904.6+5200_daily_bin1758> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:30:18 2023
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:31:08 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:31:08 2023
Terminated at Fri Jan 13 00:43:29 2023
Results reported at Fri Jan 13 00:43:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1758 136.154 52.0096 695001601 695260801 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 :                                   611.00 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             306.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            791 sec.

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

