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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1770
RA = 136.154, Dec = 52.0096
tmin = 698112001, tmax = 698371201
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='481747', job_status='RUN', time_executed='2023-02-18 00:31:00.627168', time_epoch_executed='1676709060.63' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481747/ft1_4FGL_J0904.6+5200_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481747/ft1_4FGL_J0904.6+5200_daily_bin1770.fits outfile=/scratch/kocevski/481747/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1770.fits ra=136.154 dec=52.0096 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.33
user 4.10
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.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/481747/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/481747/ft1_filtered_4FGL_J0904.6+5200_daily_bin1770.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.33
sys 0.15

Number of photons that the gtmktime cut: 456

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481747/ft1_filtered_4FGL_J0904.6+5200_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/481747/ltcube_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.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/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.fits
.....................!
real 11.88
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481747/ft1_filtered_4FGL_J0904.6+5200_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/481747/ltcube_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.fits outfile=/scratch/kocevski/481747/expmap_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.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/481747/ltcube_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.fits
.....................!
real 189.56
user 185.15
sys 4.07

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/481747/ft1_filtered_4FGL_J0904.6+5200_daily_bin1770.fits scfile=/scratch/kocevski/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.fits outfile=/scratch/kocevski/481747/cmap_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.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.53
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481747/ft1_filtered_4FGL_J0904.6+5200_daily_bin1770.fits scfile=/scratch/kocevski/481747/ft2_4FGL_J0904.6+5200_daily_bin1770.fits outfile=/scratch/kocevski/481747/cmap_HighResolution_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37379E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69711E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .78753E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .31863E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    11.680       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8410       1.0000          .0000       .10000E+07
     7 'Prefactor '    .71028E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2852       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.3092       1.0000          .0000       .10000E+07
    10 'norm      '    .29204E-06   1.0000          .0000       .10000E+07
    11 'norm      '    5.0487       1.0000          .0000       .10000E+07
    12 'Prefactor '    .63468E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69489E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    15.132       1.0000          .0000       .10000E+07
    15 'norm      '    .70255E-06   1.0000          .0000       .10000E+07
    16 'norm      '    2.9006       1.0000          .0000       .10000E+07
    17 'Prefactor '    .94608       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23506E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.6450       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.0459       1.0000          .0000       .10000E+07
    21 'Prefactor '    .27823E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .23171E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .58939E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15762E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .30400E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    .34419E-03   1.0000          .0000       .10000E+07
    27 'norm      '    1.3498       1.0000          .0000       .10000E+07
    28 'norm      '    19.967       1.0000          .0000       .10000E+07
    29 'Prefactor '    .19179E-03   1.0000          .0000       .10000E+07
    30 'norm      '    4.2527       1.0000          .0000       .10000E+07
    31 'Prefactor '    18.600       1.0000          .0000       .10000E+07
    32 'Normalizat'    .65110       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1906       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=   4991.250     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2610 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0431        .11011E-07** at limit **
   2  Prefactor     .96345E-06    10.963        .43948E-07** at limit **
   3  norm          .17914E-05    2.8349       -.40744E-07** at limit **
   4  norm           .0000        .77963        .10470E-07** at limit **
   5  Prefactor     11.672        6.3101        .38673E-07   -.40331E-01
   6  Prefactor     2.8141        6.6765        .28088E-06    .71329E-02
   7  Prefactor     .85487E-08    77.609       -.61402E-06** at limit **
   8  Prefactor     3.3078        3.5553       -.47634E-07    .18119E-01
   9  Prefactor     6.3131        7.6441        .19427E-07   -.18495E-01
  10  norm           .0000        2.5661        .44957E-10** at limit **
  11  norm          5.0703        5.4333        .13406E-07    .14743E-02
  12  Prefactor     .16653E-09    3.3912        .24530E-07** at limit **
  13  Prefactor     .26923E-07    14.837       -.59742E-07** at limit **
  14  Prefactor     15.192        6.4724        .15136E-08   -.47613E-02
  15  norm           .0000        .77682        .17749E-07** at limit **
  16  norm          2.9018        1.1084       -.36304E-08   -.17408E-02
  17  Prefactor     .96875        3.2144        .64692E-07    .19986E-02
  18  Prefactor      .0000        1.4218       -.32271E-07** at limit **
  19  Prefactor     7.6456        3.1374       -.58448E-08   -.54161E-01
  20  Prefactor     3.0489        3.5256       -.86107E-08    .61729E-03
  21  Prefactor     .55511E-10    7.0249        .26524E-06** at limit **
  22  Prefactor     .52180E-08    11.073       -.95094E-07** at limit **
  23  Prefactor     .19559E-05    13.282        .17122E-06** at limit **
  24  Prefactor     .31197E-07    4.6295        .31859E-07** at limit **
  25  norm          .29809E-07    4.7792        .31266E-07** at limit **
  26  Prefactor     .20073E-06    31.000        .42226E-06** at limit **
  27  norm          1.3507        .63714        .63652E-08    .73222E-05
  28  norm          19.900        2.1288       -.73077E-08    .27979E-01
  29  Prefactor      .0000        2.1171       -.31801E-07** at limit **
  30  norm          4.2525        2.8879        .13000E-07    .17472E-03
  31  Prefactor     18.847        1.6550       -.10979E-07    .18395E-02
  32  Normalizat    .65041        .21804       -.38691E-05   -.10357E-03
  33  Prefactor     1.1908        .20321       -.63946E-06   -.12714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.63452e-07
  norm       = 1.7914e-06
  norm       = 0
  Prefactor  = 11.6724
  Prefactor  = 2.81409
  Prefactor  = 8.54872e-09
  Prefactor  = 3.30778
  Prefactor  = 6.31314
  norm       = 0
  norm       = 5.07032
  Prefactor  = 1.66533e-10
  Prefactor  = 2.69229e-08
  Prefactor  = 15.1919
  norm       = 0
  norm       = 2.90181
  Prefactor  = 0.968747
  Prefactor  = 0
  Prefactor  = 7.64564
  Prefactor  = 3.04886
  Prefactor  = 5.55112e-11
  Prefactor  = 5.21805e-09
  Prefactor  = 1.95588e-06
  Prefactor  = 3.11973e-08
  norm       = 2.98095e-08
  Prefactor  = 2.00728e-07
  norm       = 1.3507
  norm       = 19.9
  Prefactor  = 0
  norm       = 4.25247
  Prefactor  = 18.8468
  Normalizat = 0.650414
  Prefactor  = 1.19081
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.250     FROM HESSE     STATUS=OK           769 CALLS     3379 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .96345E-06    19.470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .17914E-05    3.8173        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .78163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.672        10.238        .29288E-03   -1.5640    
   6  Prefactor     2.8141        7.3166        .60301E-03   -1.5674    
   7  Prefactor     .85487E-08    79.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3078        18.938        .55838E-03   -1.5672    
   9  Prefactor     6.3131        7.9445        .39939E-03   -1.5658    
  10  norm           .0000        2.5658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0703        5.4444        .44727E-03   -1.5663    
  12  Prefactor     .16653E-09    3.3974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26923E-07    16.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.192        6.5152        .25721E-03   -1.5630    
  15  norm           .0000        .59382        .15595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9018        1.1106        .59637E-03   -1.5674    
  17  Prefactor     .96875        3.8390        .42625E-03   -1.5688    
  18  Prefactor      .0000        1.4240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.6456        8.4554        .36245E-03   -1.5653    
  20  Prefactor     3.0489        3.5474        .58109E-03   -1.5673    
  21  Prefactor     .55511E-10    7.0594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .52180E-08    11.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19559E-05    25.026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .31197E-07    5.9312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .29809E-07    5.7297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .20073E-06    32.112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.3507        .64120        .84197E-03   -1.5685    
  28  norm          19.900        15.254        .22387E-03   -1.5619    
  29  Prefactor      .0000        2.1160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          4.2525        2.8790        .48835E-03   -1.5667    
  31  Prefactor     18.847        27.970        .23196E-03   -1.5621    
  32  Normalizat    .65041        .19868        .67420E-01   -1.0588    
  33  Prefactor     1.1908        .17849        .50301E-01   -.86615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36791e-07
Minuit parameter uncertainties:
  1  7.58188e-07
  2  0.0086621
  3  0.00523006
  4  3.8169e-07
  5  10.2381
  6  7.31658
  7  0.00164461
  8  15.8297
  9  7.94454
  10  9.20447e-06
  11  5.44436
  12  4.67528e-05
  13  0.00133892
  14  6.5152
  15  6.42595e-07
  16  1.11063
  17  3.83905
  18  3.96245e-06
  19  8.45537
  20  3.54744
  21  3.1612e-05
  22  0.0004821
  23  0.0139924
  24  0.000860554
  25  0.000826465
  26  0.0050774
  27  0.641198
  28  15.2538
  29  7.12056e-06
  30  2.87903
  31  27.9702
  32  0.198903
  33  0.178577
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  2.692e-08  1.339e-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:  1.191e+00  1.786e-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:  6.504e-01  1.989e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481747/likelihoodResults_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.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) = 4991.27896255
delta logL = -0.0290804689448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4991.24988342
delta logL = -1.33765934152e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52114E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.5276       1.0000          .0000       10.000    
     3 'Normalizat'    .65038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1908       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4991.206     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      334 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18651E-01    .32948        .25667E-04** at limit **
   2  Index         5.9793        3.6803        .12924E-01    .26330E-03
   3  Normalizat    .62888        .21448        .30328E-03   -.33588E-04
   4  Prefactor     1.2039        .20457        .22136E-03   -.23398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0186505
  Index      = 5.97929
  Normalizat = 0.628879
  Prefactor  = 1.20388
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.206     FROM HESSE     STATUS=OK            27 CALLS      361 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18651E-01    .53776        .51335E-05   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.9793        7.4169        .25848E-02    .19713    
   3  Normalizat    .62888        .21416        .12131E-04   -1.0677    
   4  Prefactor     1.2039        .20448        .44273E-04   -.86212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51287e-12
Minuit parameter uncertainties:
  1  0.200296
  2  5.28274
  3  0.214447
  4  0.204614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481747': 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) = 4991.20597331
delta logL = 0.0439087671821

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.865e-02  2.003e-01  0.000e+00  1.000e+06 ( 1.000e-13)
354        Index:  5.979e+00  5.283e+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:  1.204e+00  2.046e-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:  6.289e-01  2.144e-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/481747/cmap_HighResolution_698112001_698371201_4FGL_J0904.6+5200_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2023-02-18 00:43:34.844978', job_id='481747', GAL2='1.20', fit_tolerance='1e-08', EG2='0.63', EG='0.65', time_epoch_completed='1676709814.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='4.39e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1770' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:43:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0182>
Subject: Job 481747: <4FGL_J0904.6+5200_daily_bin1770> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1770> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Feb 18 00:30:35 2023
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:30:36 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:30:36 2023
Terminated at Sat Feb 18 00:43:35 2023
Results reported at Sat Feb 18 00:43:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1770 136.154 52.0096 698112001 698371201 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

