aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 1 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0904.0+2724_weekly_bin596
RA = 136.009, Dec = 27.4041
tmin = 599443201, tmax = 600048001
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='566737', job_status='RUN', time_executed='2021-07-14 21:48:27.747691', time_epoch_executed='1626324507.75' WHERE source_name='4FGL J0904.0+2724' and cadence='weekly' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566737

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566737/ft1_4FGL_J0904.0+2724_weekly_bin596.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566737/ft2_4FGL_J0904.0+2724_weekly_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566737/ft1_4FGL_J0904.0+2724_weekly_bin596.fits outfile=/scratch/kocevski/566737/ft1_filteredMKT_4FGL_J0904.0+2724_weekly_bin596.fits ra=136.009 dec=27.4041 rad=12.0 tmin=599443201.0 tmax=600048001.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 5.36
user 4.95
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566737/ft1_filtered_4FGL_J0904.0+2724_weekly_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/566737/ft2_4FGL_J0904.0+2724_weekly_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/566737/ltcube_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.fits outfile=/scratch/kocevski/566737/expmap_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.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/566737/ltcube_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.fits
.....................!
real 192.61
user 187.11
sys 5.02

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/566737/ft1_filtered_4FGL_J0904.0+2724_weekly_bin596.fits scfile=/scratch/kocevski/566737/ft2_4FGL_J0904.0+2724_weekly_bin596.fits outfile=/scratch/kocevski/566737/cmap_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/566737/ft1_filtered_4FGL_J0904.0+2724_weekly_bin596.fits scfile=/scratch/kocevski/566737/ft2_4FGL_J0904.0+2724_weekly_bin596.fits outfile=/scratch/kocevski/566737/cmap_HighResolution_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/566737/ft1_filtered_4FGL_J0904.0+2724_weekly_bin596.fits', '/scratch/kocevski/566737/ft2_4FGL_J0904.0+2724_weekly_bin596.fits', expMap='/scratch/kocevski/566737/expmap_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.fits', expCube='/scratch/kocevski/566737/ltcube_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/566737/Model_4FGL_J0904.0+2724_weekly_bin596.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  1.000e-04  1.000e+04 ( 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/566737/ft1_filtered_4FGL_J0904.0+2724_weekly_bin596.fits
Spacecraft file(s): /scratch/kocevski/566737/ft2_4FGL_J0904.0+2724_weekly_bin596.fits
Exposure map: /scratch/kocevski/566737/expmap_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.fits
Exposure cube: /scratch/kocevski/566737/ltcube_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/566737/Model_4FGL_J0904.0+2724_weekly_bin596.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) = 3956.03303514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0790       1.0000         .10000E-03   10000.    
     2 'Prefactor '    104.48       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14573E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    92.178       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3859       1.0000         .10000E-03   10000.    
     8 'norm      '    .67327E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.453       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8067       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4304       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1956       1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.762       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9958       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84372       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0535       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.

 FCN=   3956.008     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     3256 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1151        1451.4       -.93573E-05   -.47512E-05
   2  Prefactor     104.42        166.71        .19053E-05   -.10946E-03
   3  Prefactor     .10000E-03    53.568       -.13189E-06** at limit **
   4  Prefactor     92.162        96.066        .51216E-05    .27355E-03
   5  norm          .10000E-03    3.4677       -.27310E-05** at limit **
   6  Prefactor     .10000E-03    14.037       -.13525E-06** at limit **
   7  Prefactor     3.3843        11.310        .19369E-05   -.18431E-03
   8  norm          .65477E-01    1.0119       -.37953E-07   -.48198E-04
   9  Prefactor     14.836        14.549       -.85723E-08    .21587E-04
  10  Prefactor     56.450        37.681       -.32289E-07   -.18058E-04
  11  norm          2.8036        85.662        .21001E-06   -.15689E-04
  12  Prefactor     1.4307        3.3502        .81941E-07   -.34540E-04
  13  Prefactor     .10000E-03    15.379        .78250E-07** at limit **
  14  norm          .10000E-03    1.5867       -.10455E-07** at limit **
  15  Prefactor     .10000E-03    10.174        .32060E-08** at limit **
  16  Prefactor     .10000E-03    18.346       -.27470E-07** at limit **
  17  Prefactor     4.1908        5.5114        .89508E-06   -.54149E-03
  18  Prefactor     77.501        46.455       -.35880E-06    .15317E-03
  19  Prefactor     42.757        45.550       -.11454E-07   -.76845E-04
  20  Prefactor     4.9940        10.017        .13499E-05   -.25674E-03
  21  Normalizat    .84317        .24549       -.15865E-05    .16419E-03
  22  Prefactor     1.0539        .21708        .61171E-06    .22045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.11506
  Prefactor  = 104.421
  Prefactor  = 0.0001
  Prefactor  = 92.1617
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38431
  norm       = 0.0654771
  Prefactor  = 14.8362
  Prefactor  = 56.4503
  norm       = 2.80365
  Prefactor  = 1.43066
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19085
  Prefactor  = 77.5009
  Prefactor  = 42.7565
  Prefactor  = 4.99396
  Normalizat = 0.843169
  Prefactor  = 1.05394
 **********
 **   18 **HESSE 
 **********

 FCN=   3956.008     FROM HESSE     STATUS=OK           346 CALLS     3602 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1151        1410.8        .13302E-03   -1.5104    
   2  Prefactor     104.42        163.76        .19670E-03   -1.3661    
   3  Prefactor     .10000E-03    53.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     92.162        101.11        .41857E-04   -1.3785    
   5  norm          .10000E-03    5.0224        .20302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3843        11.450        .10994E-02   -1.5340    
   8  norm          .65477E-01    2.6831        .11785E-02   -1.5657    
   9  Prefactor     14.836        14.489        .10398E-03   -1.4937    
  10  Prefactor     56.450        37.721        .53390E-04   -1.4204    
  11  norm          2.8036        86.115        .24281E-03   -1.5373    
  12  Prefactor     1.4307        3.3082        .16997E-03   -1.5469    
  13  Prefactor     .10000E-03    15.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5575        .15218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1908        5.5602        .78195E-03   -1.5299    
  18  Prefactor     77.501        46.839        .45617E-04   -1.3945    
  19  Prefactor     42.757        45.534        .30652E-03   -1.4399    
  20  Prefactor     4.9940        10.036        .89960E-03   -1.5261    
  21  Normalizat    .84317        .27959        .27758E-03   -.98487    
  22  Prefactor     1.0539        .25026        .23652E-03   -.90952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74003e-08
Minuit parameter uncertainties:
  1  232.622
  2  164.476
  3  1.77766e-05
  4  101.296
  5  2.41833e-05
  6  0.000102922
  7  11.4574
  8  0.837693
  9  14.4925
  10  37.7371
  11  31.1251
  12  3.30864
  13  0.0001459
  14  1.28523e-05
  15  9.13347e-07
  16  7.19379e-05
  17  5.56088
  18  46.861
  19  45.571
  20  10.0389
  21  0.28007
  22  0.250541
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  5.645e+01  3.774e+01  1.000e-04  1.000e+04 ( 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.054e+00  2.505e-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.432e-01  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 9.88e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.23e-05

TS (Fixed Index): 3.11
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 3.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/566737/likelihoodResults_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.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) = 3955.7363591
delta logL = 0.271188981943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3955.72857695
delta logL = 0.278971131317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.496       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4085       1.0000          .0000       10.000    
     3 'Normalizat'    .80725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0832       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=   3955.729     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      295 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.535        40.786        .62229E-04    .68418E-04
   2  Index         3.4096        .94633        .67365E-02    .21688E-04
   3  Normalizat    .80700        .26261        .28320E-03    .18882E-03
   4  Prefactor     1.0832        .24406        .23370E-03   -.10842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.5347
  Index      = 3.40965
  Normalizat = 0.807003
  Prefactor  = 1.08319
 **********
 **   18 **HESSE 
 **********

 FCN=   3955.729     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.535        38.364        .24892E-05   -1.4418    
   2  Index         3.4096        .89032        .26946E-03   -.32369    
   3  Normalizat    .80700        .26290        .11328E-04   -.99809    
   4  Prefactor     1.0832        .24411        .46739E-04   -.90006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65581e-10
Minuit parameter uncertainties:
  1  38.3871
  2  0.895637
  3  0.263315
  4  0.244366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566737': 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) = 3955.72857083
delta logL = 0.278977249068

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.153e+01  3.839e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  3.410e+00  8.956e-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.083e+00  2.444e-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.070e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 136.009 27.404
Photon Index (Free Index): 3.41 +/- 0.90
Photon Flux (Free Index): 1.90e-07 +/- 1.21e-07
Energy Flux (Free Index): 3.24e-05 +/- 2.02e-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/566737/cmap_HighResolution_599443201_600048001_4FGL_J0904.0+2724_weekly_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-02', comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='3.24e-05', photon_flux_error='9.88e-08', dlogl='2.79e-01', energy_flux='3.33e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-07-14 21:58:52.004954', photon_index_error2='0.90', photon_index2='3.41', ts='3.11', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='3.36e-07', energy_flux_error2='2.02e-05', EG='0.84', time_epoch_completed='1626325132.01', return_code='0', job_id='566737', GAL2='1.08', EG2='0.81', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='1.21e-07', ts2='3.74', photon_index='2.79' WHERE bin_id='596' AND source_name='4FGL J0904.0+2724' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 14 21:58:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 566737: <4FGL_J0904.0+2724_weekly_bin596> in cluster <slac> Done

Job <4FGL_J0904.0+2724_weekly_bin596> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Jul 14 21:45:29 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 14 21:48:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 14 21:48:15 2021
Terminated at Wed Jul 14 21:58:52 2021
Results reported at Wed Jul 14 21:58:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_weekly_bin596 136.009 27.4041 599443201 600048001 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 :                                   578.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            803 sec.

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

