/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 108 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0904.0+2724_daily_bin25
RA = 136.009, Dec = 27.4041
tmin = 245808001, tmax = 246067201
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='947943', job_status='RUN', time_executed='2021-08-30 21:32:57.251878', time_epoch_executed='1630384377.25' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947943

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947943/ft1_4FGL_J0904.0+2724_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947943/ft2_4FGL_J0904.0+2724_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947943/ft1_4FGL_J0904.0+2724_daily_bin25.fits outfile=/scratch/kocevski/947943/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin25.fits ra=136.009 dec=27.4041 rad=12.0 tmin=245808001.0 tmax=246067201.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.01
user 1.28
sys 2.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947943/ft2_4FGL_J0904.0+2724_daily_bin25.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/947943/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin25.fits evtable="EVENTS" outfile="/scratch/kocevski/947943/ft1_filtered_4FGL_J0904.0+2724_daily_bin25.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 2.58
user 0.34
sys 2.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947943/ft1_filtered_4FGL_J0904.0+2724_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/947943/ft2_4FGL_J0904.0+2724_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/947943/ltcube_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.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/947943/ft2_4FGL_J0904.0+2724_daily_bin25.fits
.....................!
real 15.75
user 13.04
sys 2.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947943/ft1_filtered_4FGL_J0904.0+2724_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/947943/ft2_4FGL_J0904.0+2724_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/947943/ltcube_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.fits outfile=/scratch/kocevski/947943/expmap_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.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/947943/ltcube_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.fits
.....................!
real 194.06
user 185.56
sys 6.74

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/947943/ft1_filtered_4FGL_J0904.0+2724_daily_bin25.fits scfile=/scratch/kocevski/947943/ft2_4FGL_J0904.0+2724_daily_bin25.fits outfile=/scratch/kocevski/947943/cmap_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.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 2.69
user 0.38
sys 2.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947943/ft1_filtered_4FGL_J0904.0+2724_daily_bin25.fits scfile=/scratch/kocevski/947943/ft2_4FGL_J0904.0+2724_daily_bin25.fits outfile=/scratch/kocevski/947943/cmap_HighResolution_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.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 2.50
user 0.38
sys 2.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7483       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6642       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59955E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    101.82       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14471E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66975       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2714       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=   5383.863     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2364 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8517       -.33905E-07** at limit **
   2  Prefactor     .10000E-03    11.846        .23722E-06** at limit **
   3  Prefactor     6.1654        23.065       -.31163E-05   -.67567E-05
   4  Prefactor     9.7516        17.472       -.10128E-06   -.66744E-05
   5  norm          .10000E-03    .55202        .18628E-07** at limit **
   6  Prefactor     23.222        11.652       -.12071E-06   -.39084E-04
   7  Prefactor     1.6640        6.6238       -.24865E-06   -.35307E-05
   8  norm          1.9240        .78880       -.12378E-07   -.79797E-04
   9  Prefactor     12.363        9.1044        .73088E-07   -.76738E-05
  10  Prefactor     .10000E-03    93.374       -.39603E-05** at limit **
  11  norm          101.80        48.217       -.20560E-05   -.48044E-05
  12  Prefactor     .10000E-03    1.4589        .24497E-07** at limit **
  13  Prefactor     .10000E-03    22.460       -.52164E-06** at limit **
  14  norm          .10000E-03    .72260        .22789E-07** at limit **
  15  Prefactor     .10000E-03    12.762       -.51478E-06** at limit **
  16  Prefactor     .10000E-03    64.488        .52760E-05** at limit **
  17  Prefactor     .10000E-03    2.5292        .11135E-06** at limit **
  18  Prefactor     .10000E-03    23.814       -.26861E-06** at limit **
  19  Prefactor     .10000E-03    17.968        .10043E-05** at limit **
  20  Prefactor     .10000E-03    5.8733        .15710E-06** at limit **
  21  Normalizat    .67001        .17414        .52781E-06   -.10166E-03
  22  Prefactor     1.2711        .17233       -.53029E-06   -.88717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.16545
  Prefactor  = 9.7516
  norm       = 0.0001
  Prefactor  = 23.2224
  Prefactor  = 1.664
  norm       = 1.92404
  Prefactor  = 12.363
  Prefactor  = 0.0001
  norm       = 101.799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.670011
  Prefactor  = 1.27108
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.863     FROM HESSE     STATUS=OK           342 CALLS     2706 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1654        23.148        .80847E-03   -1.5211    
   4  Prefactor     9.7516        17.316        .12835E-03   -1.5083    
   5  norm          .10000E-03    .56586        .10527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.222        11.611        .83118E-04   -1.4744    
   7  Prefactor     1.6640        6.6070        .32694E-03   -1.5450    
   8  norm          1.9240        .78683        .39973E-04   -1.5431    
   9  Prefactor     12.363        9.1050        .11393E-03   -1.5005    
  10  Prefactor     .10000E-03    90.186        .39418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          101.80        48.301        .19922E-03   -1.3687    
  12  Prefactor     .10000E-03    1.4680        .86539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .73025        .60898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.5963        .22775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.610        .34175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67001        .20057        .27798E-03   -1.0509    
  22  Prefactor     1.2711        .20263        .20978E-03   -.84171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8832e-11
Minuit parameter uncertainties:
  1  3.17549e-07
  2  1.14656e-06
  3  23.1817
  4  17.3248
  5  1.18856e-06
  6  11.6124
  7  6.60986
  8  0.786832
  9  9.106
  10  0.000114838
  11  48.3195
  12  3.99006e-07
  13  7.31948e-06
  14  2.6724e-07
  15  5.5707e-06
  16  8.05783e-06
  17  1.99529e-06
  18  1.7466e-05
  19  8.05795e-06
  20  0.000291685
  21  0.200786
  22  0.20275
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  1.148e-04  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.271e+00  2.028e-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:  6.700e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947943/likelihoodResults_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.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) = 5383.86308095
delta logL = -5.13099603268e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5383.86308094
delta logL = -5.12971600983e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96329E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7928       1.0000          .0000       10.000    
     3 'Normalizat'    .67000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2711       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=   5383.863     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      233 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.4940        .90715E-01** at limit **
   2  Index         2.7198        5.7888        .50000        .49465E-05
   3  Normalizat    .67001        .23513E-02    .62833E-01    .22813E-04
   4  Prefactor     1.2711        .23817E-02    .47455E-01    .30501E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.71975
  Normalizat = 0.670011
  Prefactor  = 1.27108
 **********
 **   18 **HESSE 
 **********

 FCN=   5383.863     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      270 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    845.04        .41424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7198        6.4412        .50000       -.47355    
   3  Normalizat    .67001        .12164E-01    .27798E-03   -1.0509    
   4  Prefactor     1.2711        .12339E-01    .20978E-03   -.84171    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54232e-07
Minuit parameter uncertainties:
  1  0.00561163
  2  584.489
  3  0.0121642
  4  0.0123392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947943': 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): 102
logL (Free Index) = 5383.86302954
delta logL = 1.00939359982e-07

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  5.612e-03  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.720e+00  5.845e+02  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.271e+00  1.234e-02  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:  6.700e-01  1.216e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

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/947943/cmap_HighResolution_245808001_246067201_4FGL_J0904.0+2724_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-08-30 21:43:06.628952', job_id='947943', GAL2='1.27', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630384986.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='25' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:43:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 947943: <4FGL_J0904.0+2724_daily_bin25> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin25> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 21:30:24 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 21:30:25 2021
Terminated at Mon Aug 30 21:43:07 2021
Results reported at Mon Aug 30 21:43:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin25 136.009 27.4041 245808001 246067201 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

