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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1764
RA = 136.009, Dec = 27.4041
tmin = 696556801, tmax = 696816001
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='440827', job_status='RUN', time_executed='2023-01-31 00:35:14.194837', time_epoch_executed='1675154114.19' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440827/ft1_4FGL_J0904.0+2724_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440827/ft1_4FGL_J0904.0+2724_daily_bin1764.fits outfile=/scratch/kocevski/440827/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1764.fits ra=136.009 dec=27.4041 rad=12.0 tmin=696556801.0 tmax=696816001.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 3.72
user 3.47
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.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/440827/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.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.17

Number of photons that the gtmktime cut: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/440827/ltcube_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.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/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits
.....................!
real 14.88
user 14.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/440827/ltcube_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.fits outfile=/scratch/kocevski/440827/expmap_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.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/440827/ltcube_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.fits
.....................!
real 192.79
user 186.66
sys 5.52

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

Setting source of interest to:
4FGL J0904.0+2724 @ 136.009 27.4041

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits scfile=/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits outfile=/scratch/kocevski/440827/cmap_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.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.009 yref=27.4041 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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits scfile=/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits outfile=/scratch/kocevski/440827/cmap_HighResolution_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.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.009 yref=27.4041 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/440827/Model_4FGL_J0904.0+2724_daily_bin1764.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/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits.....................!
real 61.14
user 59.60
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits', '/scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits', expMap='/scratch/kocevski/440827/expmap_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.fits', expCube='/scratch/kocevski/440827/ltcube_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/440827/Model_4FGL_J0904.0+2724_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/440827/ft1_filtered_4FGL_J0904.0+2724_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/440827/ft2_4FGL_J0904.0+2724_daily_bin1764.fits
Exposure map: /scratch/kocevski/440827/expmap_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.fits
Exposure cube: /scratch/kocevski/440827/ltcube_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/440827/Model_4FGL_J0904.0+2724_daily_bin1764.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) = 6492.71005708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.16       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18476       1.0000          .0000       .10000E+07
     3 'Prefactor '    17.252       1.0000          .0000       .10000E+07
     4 'norm      '    .59543       1.0000          .0000       .10000E+07
     5 'Prefactor '    .94670E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .30406       1.0000          .0000       .10000E+07
     7 'Prefactor '    .50390E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.954       1.0000          .0000       .10000E+07
     9 'norm      '    16.520       1.0000          .0000       .10000E+07
    10 'Prefactor '    27.235       1.0000          .0000       .10000E+07
    11 'norm      '    .96729       1.0000          .0000       .10000E+07
    12 'Prefactor '    .28918E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8250       1.0000          .0000       .10000E+07
    14 'Prefactor '    .94908E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12364E-01   1.0000          .0000       .10000E+07
    16 'Normalizat'    .78054       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6492.689     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     1191 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.34        13.440        .21808E-05   -.32300    
   2  Prefactor     .76761E-06    8.0961        .59315E-05** at limit **
   3  Prefactor     17.435        6.8298        .13477E-05    .93798E-01
   4  norm          .59735        1.2056        .13255E-05   -.48050E-02
   5  Prefactor     .71776E-07    21.761        .49289E-06** at limit **
   6  norm          .30496        .60080        .14374E-06    .45613E-02
   7  Prefactor     .13645E-06    9.2093        .77445E-05** at limit **
   8  Prefactor     42.476        4.2157        .40820E-06    .76954E-01
   9  norm          16.394        5.2600       -.16411E-05   -.21145E-01
  10  Prefactor     26.723        28.897       -.77767E-05   -.35878E-01
  11  norm          .95977        1.5241       -.16556E-06    .54011E-03
  12  Prefactor      .0000        12.831        .43330E-06** at limit **
  13  Prefactor     1.8221        3.6830        .16031E-06    .30070E-02
  14  Prefactor     .10991E-07    11.705       -.54621E-05** at limit **
  15  Prefactor     .98144E-07    9.5601       -.56915E-05** at limit **
  16  Normalizat    .77982        .21207       -.33410E-05    .23098E-03
  17  Prefactor     1.3704        .20311        .17996E-04    .26546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.341
  Prefactor  = 7.67608e-07
  Prefactor  = 17.4346
  norm       = 0.597354
  Prefactor  = 7.17759e-08
  norm       = 0.304962
  Prefactor  = 1.36446e-07
  Prefactor  = 42.4761
  norm       = 16.394
  Prefactor  = 26.7227
  norm       = 0.95977
  Prefactor  = 0
  Prefactor  = 1.82214
  Prefactor  = 1.09912e-08
  Prefactor  = 9.81437e-08
  Normalizat = 0.77982
  Prefactor  = 1.37036
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.689     FROM HESSE     STATUS=OK           263 CALLS     1454 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.34        53.975        .97990E-04   -1.5504    
   2  Prefactor     .76761E-06    86.144        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.435        26.244        .24086E-03   -1.5624    
   4  norm          .59735        1.3025        .69639E-03   -1.5693    
   5  Prefactor     .71776E-07    21.820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .30496        .63904        .19777E-02   -1.5697    
   7  Prefactor     .13645E-06    9.7281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.476        24.016        .15440E-03   -1.5578    
   9  norm          16.394        29.626        .24615E-03   -1.5627    
  10  Prefactor     26.723        32.146        .19165E-03   -1.5605    
  11  norm          .95977        1.5334        .42604E-03   -1.5688    
  12  Prefactor      .0000        12.928        .16508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8221        3.7515        .77248E-03   -1.5681    
  14  Prefactor     .10991E-07    11.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98144E-07    9.8405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .77982        .18594        .68140E-01   -1.0082    
  17  Prefactor     1.3704        .17279        .50794E-01   -.81238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56187e-06
Minuit parameter uncertainties:
  1  53.9748
  2  0.0162638
  3  26.2439
  4  1.30248
  5  0.0025033
  6  0.63904
  7  0.00230409
  8  24.0156
  9  29.6263
  10  32.1462
  11  1.5334
  12  3.51533e-06
  13  3.75154
  14  0.000720522
  15  0.00196524
  16  0.186092
  17  0.172865
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.248e+01  2.402e+01  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.370e+00  1.729e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  7.798e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.42e-05

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) = 6492.06682155
delta logL = 0.622240080867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6492.05880366
delta logL = 0.630257967707

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6492.059     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      300 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.937        32.237        .78530E-05    .35570E-02
   2  Index         3.6747        1.1815        .65696E-02    .11352E-03
   3  Normalizat    .71908        .22238        .31268E-03    .10119E-03
   4  Prefactor     1.4168        .20870        .22146E-03    .32166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9366
  Index      = 3.67466
  Normalizat = 0.719083
  Prefactor  = 1.41681
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.059     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.937        26.902        .31412E-06   -1.5606    
   2  Index         3.6747        .98793        .26278E-03   -.26827    
   3  Normalizat    .71908        .22233        .12507E-04   -1.0314    
   4  Prefactor     1.4168        .20806        .44293E-04   -.79897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01077e-10
Minuit parameter uncertainties:
  1  26.902
  2  0.994981
  3  0.222611
  4  0.208181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440827': 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) = 6492.05880309
delta logL = 0.630258541639

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.594e+01  2.690e+01  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.675e+00  9.950e-01  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.417e+00  2.082e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  7.191e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.02
Ra Dec: 136.009 27.404
Photon Index (Free Index): 3.67 +/- 0.99
Photon Flux (Free Index): 1.54e-07 +/- 7.89e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.28e-05

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/440827/cmap_HighResolution_696556801_696816001_4FGL_J0904.0+2724_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.45e-05', photon_flux_error='6.29e-08', dlogl='6.30e-01', energy_flux='2.51e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2023-01-31 00:43:25.807397', photon_index_error2='0.99', photon_index2='3.67', ts='4.46', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.78', time_epoch_completed='1675154605.81', return_code='0', job_id='440827', GAL2='1.42', EG2='0.72', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='7.89e-08', ts2='6.02', photon_index='2.79' WHERE bin_id='1764' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:43:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 440827: <4FGL_J0904.0+2724_daily_bin1764> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin1764> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jan 31 00:30:34 2023
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:31:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:31:56 2023
Terminated at Tue Jan 31 00:43:26 2023
Results reported at Tue Jan 31 00:43:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1764 136.009 27.4041 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0904.0+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   493.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             255.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            772 sec.

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

