/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 4 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 = 7265
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0904.0+2724_daily_bin561
RA = 136.009, Dec = 27.4041
tmin = 384739201, tmax = 384998401
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='951614', job_status='RUN', time_executed='2021-08-30 21:40:55.662026', time_epoch_executed='1630384855.66' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951614/ft1_4FGL_J0904.0+2724_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951614/ft2_4FGL_J0904.0+2724_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951614/ft1_4FGL_J0904.0+2724_daily_bin561.fits outfile=/scratch/kocevski/951614/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin561.fits ra=136.009 dec=27.4041 rad=12.0 tmin=384739201.0 tmax=384998401.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.64
user 4.31
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951614/ft1_filtered_4FGL_J0904.0+2724_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/951614/ft2_4FGL_J0904.0+2724_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/951614/ltcube_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.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/951614/ft2_4FGL_J0904.0+2724_daily_bin561.fits
.....................!
real 12.06
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951614/ft1_filtered_4FGL_J0904.0+2724_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/951614/ft2_4FGL_J0904.0+2724_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/951614/ltcube_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.fits outfile=/scratch/kocevski/951614/expmap_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.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/951614/ltcube_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.fits
.....................!
real 192.01
user 186.57
sys 4.87

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/951614/ft1_filtered_4FGL_J0904.0+2724_daily_bin561.fits scfile=/scratch/kocevski/951614/ft2_4FGL_J0904.0+2724_daily_bin561.fits outfile=/scratch/kocevski/951614/cmap_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951614/ft1_filtered_4FGL_J0904.0+2724_daily_bin561.fits scfile=/scratch/kocevski/951614/ft2_4FGL_J0904.0+2724_daily_bin561.fits outfile=/scratch/kocevski/951614/cmap_HighResolution_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.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.63
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12314E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .78148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12749E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6598       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8405       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.200       1.0000         .10000E-03   10000.    
    11 'norm      '    41.810       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48435       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80091E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11700E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34175       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10864E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .84915E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97971       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1057       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=   5783.042     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2929 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.523        35.339        .31513E-06    .38070E-04
   2  Prefactor     .10000E-03    13.237        .10959E-06** at limit **
   3  Prefactor     16.198        20.510        .69211E-07   -.52964E-04
   4  Prefactor     .10000E-03    8.1201       -.45554E-07** at limit **
   5  norm          .78197        1.1378        .12062E-06   -.17586E-04
   6  Prefactor     .10000E-03    10.808       -.28255E-06** at limit **
   7  Prefactor     6.6584        9.0249        .38902E-05   -.58778E-04
   8  norm          1.8403        .97392       -.42837E-08   -.19280E-03
   9  Prefactor     22.109        14.713        .28741E-07   -.17666E-04
  10  Prefactor     13.208        18.601        .22320E-06   -.25509E-04
  11  norm          41.887        48.076        .11123E-05    .12678E-03
  12  Prefactor     .48876        3.8128        .22077E-05   -.67852E-04
  13  Prefactor     .10000E-03    54.645       -.43672E-06** at limit **
  14  norm          3.8833        2.2217       -.91699E-08   -.18226E-03
  15  Prefactor     .10000E-03    13.169       -.20410E-06** at limit **
  16  Prefactor     .10000E-03    21.850        .74344E-06** at limit **
  17  Prefactor     .34134        2.6534        .29703E-06   -.23039E-03
  18  Prefactor     .10000E-03    47.982       -.26356E-06** at limit **
  19  Prefactor     .10000E-03    19.745        .19643E-07** at limit **
  20  Prefactor     .10000E-03    3.9942       -.52027E-07** at limit **
  21  Normalizat    .97970        .19004        .16167E-06   -.16389E-03
  22  Prefactor     1.1056        .17902       -.12383E-05   -.83215E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5233
  Prefactor  = 0.0001
  Prefactor  = 16.198
  Prefactor  = 0.0001
  norm       = 0.781973
  Prefactor  = 0.0001
  Prefactor  = 6.65844
  norm       = 1.84026
  Prefactor  = 22.109
  Prefactor  = 13.2076
  norm       = 41.8865
  Prefactor  = 0.488756
  Prefactor  = 0.0001
  norm       = 3.88333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.341335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.979704
  Prefactor  = 1.10563
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.042     FROM HESSE     STATUS=OK           344 CALLS     3273 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.523        35.344        .63770E-04   -1.4450    
   2  Prefactor     .10000E-03    13.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.198        20.514        .99450E-04   -1.4903    
   4  Prefactor     .10000E-03    8.1328        .21160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .78197        1.1367        .49483E-04   -1.5531    
   6  Prefactor     .10000E-03    11.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6584        9.0496        .77746E-03   -1.5192    
   8  norm          1.8403        .96867        .51199E-04   -1.5437    
   9  Prefactor     22.109        14.708        .85188E-04   -1.4767    
  10  Prefactor     13.208        18.628        .11025E-03   -1.4981    
  11  norm          41.887        48.126        .61996E-04   -1.4413    
  12  Prefactor     .48876        3.8880        .28398E-03   -1.5568    
  13  Prefactor     .10000E-03    54.930        .20901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8833        2.2253        .81888E-04   -1.5314    
  15  Prefactor     .10000E-03    13.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.871        .20656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34134        18.971        .22216E-02   -1.5591    
  18  Prefactor     .10000E-03    48.424        .20707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.751        .20866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0043        .14842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97970        .21782        .25742E-03   -.93714    
  22  Prefactor     1.1056        .20424        .23587E-03   -.89287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42614e-10
Minuit parameter uncertainties:
  1  35.3631
  2  1.19608e-05
  3  20.5229
  4  2.51713e-06
  5  1.13678
  6  3.3926e-05
  7  9.05151
  8  0.96868
  9  14.7105
  10  18.6358
  11  48.1711
  12  2.75698
  13  2.40284e-05
  14  2.22537
  15  1.36669e-05
  16  7.54458e-05
  17  5.09031
  18  0.000133988
  19  2.33858e-05
  20  1.76013e-06
  21  0.218013
  22  0.20438
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.321e+01  1.864e+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.106e+00  2.044e-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.797e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/951614/likelihoodResults_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.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) = 5782.77622161
delta logL = 0.266111383033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5782.77354349
delta logL = 0.268789508509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8850       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8994       1.0000          .0000       10.000    
     3 'Normalizat'    .94642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1282       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5782.774     FROM MIGRAD    STATUS=FAILED       101 CALLS      306 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8644        96.267        .71397E-03   -.29474E-04
   2  Index         3.9025        6.9480        .10826E-01    .31106E-03
   3  Normalizat    .94656        .21572        .26128E-03   -.13576E-04
   4  Prefactor     1.1281        .20882        .23390E-03   -.43744E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5782.774     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      385 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8644        96.267        .24263E-03   -1.5147    
   2  Index         3.9025        6.9480        .13921E-02   -.22130    
   3  Normalizat    .94656        .21572        .25964E-03   -.94843    
   4  Prefactor     1.1281        .20882        .26404E-03   -.88572    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5782.774     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      419 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8644        18.720        .28559E-04   -.35827E-04
   2  Index         3.9025        2.0809        .21652E-02   -.63636E-05
   3  Normalizat    .94656        .21515        .10451E-04   -.13489E-04
   4  Prefactor     1.1281        .20376        .93561E-05   -.48604E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.86436
  Index      = 3.90253
  Normalizat = 0.946565
  Prefactor  = 1.12813
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.774     FROM HESSE     STATUS=OK            23 CALLS      442 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8644        17.451        .11424E-05   -1.5147    
   2  Index         3.9025        1.9479        .86610E-04   -.22130    
   3  Normalizat    .94656        .21491        .20902E-05   -.94843    
   4  Prefactor     1.1281        .20345        .18712E-05   -.88572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01219e-12
Minuit parameter uncertainties:
  1  17.4623
  2  2.00376
  3  0.215104
  4  0.203588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951614': 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) = 5782.77354116
delta logL = 0.268791836524

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  7.864e+00  1.746e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  3.903e+00  2.004e+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.128e+00  2.036e-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.466e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 136.009 27.404
Photon Index (Free Index): 3.90 +/- 2.00
Photon Flux (Free Index): 5.89e-08 +/- 6.11e-08
Energy Flux (Free Index): 8.97e-06 +/- 9.55e-06

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/951614/cmap_HighResolution_384739201_384998401_4FGL_J0904.0+2724_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='8.97e-06', dlogl='2.69e-01', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-08-30 21:51:43.451960', photon_index_error2='2.00', photon_index2='3.90', ts='0.61', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='9.55e-06', EG='0.98', time_epoch_completed='1630385503.45', return_code='0', job_id='951614', GAL2='1.13', EG2='0.95', return_code2='0', photon_flux_error2='6.11e-08', ts2='1.20', photon_index='2.79' WHERE bin_id='561' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:51:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 951614: <4FGL_J0904.0+2724_daily_bin561> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin561> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 21:40:39 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:40:41 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:40:41 2021
Terminated at Mon Aug 30 21:51:44 2021
Results reported at Mon Aug 30 21:51:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin561 136.009 27.4041 384739201 384998401 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 :                                   641.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            665 sec.

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

