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


Performing analysis on: 4FGL_J0904.0+2724_weekly_bin756
RA = 136.009, Dec = 27.4041
tmin = 696211201, 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='473685', job_status='RUN', time_executed='2023-01-31 02:33:03.602301', time_epoch_executed='1675161183.6' WHERE source_name='4FGL J0904.0+2724' and cadence='weekly' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473685

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=696211201.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>=696211201.0 && nMetStart<696816001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473685/ft1_4FGL_J0904.0+2724_weekly_bin756.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473685/ft1_4FGL_J0904.0+2724_weekly_bin756.fits outfile=/scratch/kocevski/473685/ft1_filteredMKT_4FGL_J0904.0+2724_weekly_bin756.fits ra=136.009 dec=27.4041 rad=12.0 tmin=696211201.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 7.93
user 7.52
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.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/473685/ft1_filteredMKT_4FGL_J0904.0+2724_weekly_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.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.56
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 1231

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/473685/ltcube_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.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/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits
.....................!
real 34.75
user 34.13
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/473685/ltcube_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.fits outfile=/scratch/kocevski/473685/expmap_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.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/473685/ltcube_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.fits
.....................!
real 194.72
user 188.11
sys 5.88

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/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.fits scfile=/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits outfile=/scratch/kocevski/473685/cmap_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.fits scfile=/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits outfile=/scratch/kocevski/473685/cmap_HighResolution_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.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.60
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.fits', '/scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits', expMap='/scratch/kocevski/473685/expmap_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.fits', expCube='/scratch/kocevski/473685/ltcube_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473685/Model_4FGL_J0904.0+2724_weekly_bin756.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/473685/ft1_filtered_4FGL_J0904.0+2724_weekly_bin756.fits
Spacecraft file(s): /scratch/kocevski/473685/ft2_4FGL_J0904.0+2724_weekly_bin756.fits
Exposure map: /scratch/kocevski/473685/expmap_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.fits
Exposure cube: /scratch/kocevski/473685/ltcube_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473685/Model_4FGL_J0904.0+2724_weekly_bin756.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) = 14166.4778892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.345       1.0000          .0000       .10000E+07
     2 'Prefactor '    .53158E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    19.529       1.0000          .0000       .10000E+07
     4 'norm      '    .30349       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18730E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .62297       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11082E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    20.073       1.0000          .0000       .10000E+07
     9 'norm      '    18.684       1.0000          .0000       .10000E+07
    10 'Prefactor '    12.610       1.0000          .0000       .10000E+07
    11 'norm      '    1.0326       1.0000          .0000       .10000E+07
    12 'Prefactor '    .93175E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.0376       1.0000          .0000       .10000E+07
    14 'Prefactor '    .59210E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0882       1.0000          .0000       .10000E+07
    16 'Normalizat'    .90062       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1698       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=   14165.84     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      959 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.416        1.6673        .60682E-07   -.22959E-01
   2  Prefactor     .62172E-08    10.003        .17930E-06** at limit **
   3  Prefactor     19.460        1.1744        .66916E-07    .65340E-02
   4  norm          .30486        .77827       -.14588E-06   -.11161E-01
   5  Prefactor     .20095E-07    17.680        .87939E-06** at limit **
   6  norm          .62293        .41823       -.95707E-07   -.60902E-02
   7  Prefactor     .94369E-09    7.1158       -.83627E-06** at limit **
   8  Prefactor     20.021        2.9913       -.23778E-06   -.88386E-01
   9  norm          18.539        1.1545        .74782E-07   -.15725E-02
  10  Prefactor     12.764        1.4642       -.17751E-06   -.78119E-02
  11  norm          1.0334        .83854        .16189E-06    .88833E-02
  12  Prefactor     .11102E-09    3.5592        .13710E-05** at limit **
  13  Prefactor     4.0381        2.8814        .15696E-06   -.16122E-03
  14  Prefactor     .15821E-07    13.490        .55271E-05** at limit **
  15  Prefactor     2.0579        7.2713        .22621E-05   -.43493E-02
  16  Normalizat    .90081        .13629       -.10834E-04   -.67623E-03
  17  Prefactor     1.1697        .12672        .79059E-05   -.64565E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.416
  Prefactor  = 6.21725e-09
  Prefactor  = 19.4601
  norm       = 0.304857
  Prefactor  = 2.0095e-08
  norm       = 0.622933
  Prefactor  = 9.4369e-10
  Prefactor  = 20.0213
  norm       = 18.5392
  Prefactor  = 12.764
  norm       = 1.03344
  Prefactor  = 1.11022e-10
  Prefactor  = 4.0381
  Prefactor  = 1.58207e-08
  Prefactor  = 2.0579
  Normalizat = 0.900814
  Prefactor  = 1.16974
 **********
 **   18 **HESSE 
 **********

 FCN=   14165.84     FROM HESSE     STATUS=OK           261 CALLS     1220 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.416        26.019        .16366E-03   -1.5586    
   2  Prefactor     .62172E-08    10.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.460        17.955        .22636E-03   -1.5620    
   4  norm          .30486        .90981        .10165E-02   -1.5697    
   5  Prefactor     .20095E-07    17.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62293        .42170        .67195E-03   -1.5692    
   7  Prefactor     .94369E-09    7.1734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.021        12.870        .22327E-03   -1.5618    
   9  norm          18.539        17.618        .23143E-03   -1.5622    
  10  Prefactor     12.764        15.929        .28183E-03   -1.5637    
  11  norm          1.0334        .85512        .12451E-02   -1.5688    
  12  Prefactor     .11102E-09    3.5702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0381        2.9078        .50159E-03   -1.5668    
  14  Prefactor     .15821E-07    13.790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0579        7.3382        .71416E-03   -1.5679    
  16  Normalizat    .90081        .11946        .44909E-01   -.96432    
  17  Prefactor     1.1697        .10886        .50989E-01   -.87268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79513e-07
Minuit parameter uncertainties:
  1  26.019
  2  0.000500322
  3  17.955
  4  0.909814
  5  0.00119765
  6  0.421699
  7  0.000166068
  8  12.8698
  9  17.6184
  10  15.9291
  11  0.855118
  12  3.97436e-05
  13  2.90777
  14  0.000934253
  15  7.33819
  16  0.119498
  17  0.108886
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.002e+01  1.287e+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.170e+00  1.089e-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:  9.008e-01  1.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 7.59e-06

TS (Fixed Index): 3.16
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473685/likelihoodResults_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.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) = 14165.2656544
delta logL = 0.571808959217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14165.2542151
delta logL = 0.583248356197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.234       1.0000          .0000       .10000E+07
     2 'Index     '    3.8556       1.0000          .0000       10.000    
     3 'Normalizat'    .86168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1987       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.

 FCN=   14165.25     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      250 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.227        93.136        .29866E-03    .42067E-02
   2  Index         3.8564        3.9512        .20718        .23161E-03
   3  Normalizat    .86167        .42223E-01    .44410E-01    .50463E-03
   4  Prefactor     1.1988        .38670E-01    .50460E-01    .23156E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2269
  Index      = 3.85637
  Normalizat = 0.861672
  Prefactor  = 1.19877
 **********
 **   18 **HESSE 
 **********

 FCN=   14165.25     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.227        29.573        .11946E-04   -1.5641    
   2  Index         3.8564        2.5018        .98530E-02   -.23077    
   3  Normalizat    .86167        .14254        .27298E-03   -.97820    
   4  Prefactor     1.1988        .13352        .22308E-03   -.86369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30019e-10
Minuit parameter uncertainties:
  1  29.5729
  2  2.62757
  3  0.142607
  4  0.133558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473685': 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) = 14165.2542149
delta logL = 0.583248537503

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.123e+01  2.957e+01  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  3.856e+00  2.628e+00  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.199e+00  1.336e-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:  8.617e-01  1.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 136.009 27.404
Photon Index (Free Index): 3.86 +/- 2.63
Photon Flux (Free Index): 8.02e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.23e-05 +/- 8.16e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/473685/cmap_HighResolution_696211201_696816001_4FGL_J0904.0+2724_weekly_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='1.23e-05', photon_flux_error='3.37e-08', dlogl='5.83e-01', energy_flux='1.18e-05', photon_flux2='8.02e-08', job_status='DONE', time_completed='2023-01-31 02:45:48.656509', photon_index_error2='2.63', photon_index2='3.86', ts='3.16', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='8.16e-06', EG='0.90', time_epoch_completed='1675161948.66', return_code='0', job_id='473685', GAL2='1.20', EG2='0.86', return_code2='0', energy_flux_error='7.59e-06', photon_flux_error2='4.51e-08', ts2='4.55', photon_index='2.79' WHERE bin_id='756' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 31 02:45:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 473685: <4FGL_J0904.0+2724_weekly_bin756> in cluster <slac> Done

Job <4FGL_J0904.0+2724_weekly_bin756> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Jan 31 02:30:21 2023
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 02:32:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 02:32:13 2023
Terminated at Tue Jan 31 02:45:49 2023
Results reported at Tue Jan 31 02:45:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_weekly_bin756 136.009 27.4041 696211201 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            928 sec.

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

