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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin468
RA = 136.009, Dec = 27.4041
tmin = 360633601, tmax = 360892801
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='950188', job_status='RUN', time_executed='2021-08-30 21:36:49.720293', time_epoch_executed='1630384609.72' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950188/ft1_4FGL_J0904.0+2724_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950188/ft2_4FGL_J0904.0+2724_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950188/ft1_4FGL_J0904.0+2724_daily_bin468.fits outfile=/scratch/kocevski/950188/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin468.fits ra=136.009 dec=27.4041 rad=12.0 tmin=360633601.0 tmax=360892801.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 6.13
user 3.22
sys 2.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950188/ft1_filtered_4FGL_J0904.0+2724_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/950188/ft2_4FGL_J0904.0+2724_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/950188/ltcube_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.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/950188/ft2_4FGL_J0904.0+2724_daily_bin468.fits
.....................!
real 16.84
user 11.42
sys 3.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950188/ft1_filtered_4FGL_J0904.0+2724_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/950188/ft2_4FGL_J0904.0+2724_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/950188/ltcube_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.fits outfile=/scratch/kocevski/950188/expmap_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.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/950188/ltcube_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.fits
.....................!
real 195.99
user 187.23
sys 8.26

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/950188/ft1_filtered_4FGL_J0904.0+2724_daily_bin468.fits scfile=/scratch/kocevski/950188/ft2_4FGL_J0904.0+2724_daily_bin468.fits outfile=/scratch/kocevski/950188/cmap_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.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.97
user 0.37
sys 2.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950188/ft1_filtered_4FGL_J0904.0+2724_daily_bin468.fits scfile=/scratch/kocevski/950188/ft2_4FGL_J0904.0+2724_daily_bin468.fits outfile=/scratch/kocevski/950188/cmap_HighResolution_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.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 3.24
user 0.37
sys 2.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.273       1.0000         .10000E-03   10000.    
     5 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.344       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.535       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13738E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.025       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89038       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97674       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=   5740.729     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2320 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7274        19.719       -.83980E-06   -.25605E-04
   2  Prefactor     .10000E-03    11.830        .40944E-06** at limit **
   3  Prefactor     .10000E-03    23.574        .11793E-04** at limit **
   4  Prefactor     46.269        22.137       -.12907E-05   -.15595E-04
   5  norm          .10000E-03    .44841        .51114E-07** at limit **
   6  Prefactor     15.744        10.234        .41318E-07   -.61362E-04
   7  Prefactor     .10000E-03    2.1485        .86337E-08** at limit **
   8  norm          3.8393        1.0141       -.86690E-08    .14433E-05
   9  Prefactor     15.530        12.540        .95773E-07   -.60963E-05
  10  Prefactor     18.344        13.513       -.18498E-06   -.10930E-04
  11  norm          .10000E-03    8.6348       -.95606E-07** at limit **
  12  Prefactor     .10000E-03    1.6460        .88247E-08** at limit **
  13  Prefactor     .10000E-03    22.513       -.11101E-04** at limit **
  14  norm          .10000E-03    .38330       -.15751E-07** at limit **
  15  Prefactor     18.531        21.821       -.19217E-05    .36046E-04
  16  Prefactor     .10000E-03    58.704       -.15450E-05** at limit **
  17  Prefactor     .10000E-03    1.5232       -.65443E-07** at limit **
  18  Prefactor     29.525        23.870        .12485E-05    .48171E-05
  19  Prefactor     65.022        65.161       -.29853E-05    .81989E-06
  20  Prefactor     .10000E-03    3.1102        .37414E-08** at limit **
  21  Normalizat    .89053        .16932        .39248E-06   -.27964E-04
  22  Prefactor     .97661        .15942        .11786E-07   -.29307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.269
  norm       = 0.0001
  Prefactor  = 15.7435
  Prefactor  = 0.0001
  norm       = 3.83934
  Prefactor  = 15.5298
  Prefactor  = 18.344
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.525
  Prefactor  = 65.022
  Prefactor  = 0.0001
  Normalizat = 0.890532
  Prefactor  = 0.97661
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.729     FROM HESSE     STATUS=OK           342 CALLS     2662 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7274        19.722        .13566E-03   -1.5117    
   2  Prefactor     .10000E-03    11.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.269        22.095        .58942E-04   -1.4346    
   5  norm          .10000E-03    .45659        .98604E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.744        10.213        .10093E-03   -1.4914    
   7  Prefactor     .10000E-03    2.1588        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8393        1.0150        .36876E-04   -1.5316    
   9  Prefactor     15.530        12.551        .10163E-03   -1.4920    
  10  Prefactor     18.344        13.528        .93515E-04   -1.4851    
  11  norm          .10000E-03    8.6360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6702        .94884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .38399        .45800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.531        21.793        .93031E-04   -1.4847    
  16  Prefactor     .10000E-03    59.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3951        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.525        23.931        .73738E-04   -1.4621    
  19  Prefactor     65.022        65.189        .49768E-04   -1.4093    
  20  Prefactor     .10000E-03    3.1156        .13048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89053        .19460        .24510E-03   -.96794    
  22  Prefactor     .97661        .18389        .22949E-03   -.93513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24339e-11
Minuit parameter uncertainties:
  1  19.7368
  2  6.71632e-06
  3  5.89397e-05
  4  22.0994
  5  2.37413e-06
  6  10.2142
  7  3.00935e-07
  8  1.01497
  9  12.553
  10  13.5302
  11  6.26199e-07
  12  2.47037e-07
  13  3.6335e-05
  14  4.84744e-08
  15  21.8019
  16  5.52986e-06
  17  2.62565e-05
  18  23.9388
  19  65.2603
  20  7.48549e-07
  21  0.194755
  22  0.184008
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.834e+01  1.353e+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:  9.766e-01  1.840e-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.905e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 7.98e-06

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

Saving results to:
/scratch/kocevski/950188/likelihoodResults_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.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) = 5740.4732164
delta logL = 0.255574957375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.45368645
delta logL = 0.275104908463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.334       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2010       1.0000          .0000       10.000    
     3 'Normalizat'    .91315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95839       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=   5740.454     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.322        20.292        .21680E-02   -.20645E-04
   2  Index         2.1992        .62972        .24748       -.33143E-04
   3  Normalizat    .91331        .16323        .45069E-01   -.17017E-04
   4  Prefactor     .95826        .15986        .45745E-01   -.18297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3221
  Index      = 2.19916
  Normalizat = 0.913314
  Prefactor  = 0.958261
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.454     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.322        16.044        .86719E-04   -1.4784    
   2  Index         2.1992        .67266        .87689E-02   -.59459    
   3  Normalizat    .91331        .18875        .24235E-03   -.95994    
   4  Prefactor     .95826        .18376        .23133E-03   -.94134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15018e-10
Minuit parameter uncertainties:
  1  16.0475
  2  0.675654
  3  0.188886
  4  0.183879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950188': 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) = 5740.45368266
delta logL = 0.275108690878

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.132e+01  1.605e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.199e+00  6.757e-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:  9.583e-01  1.839e-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.133e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 136.009 27.404
Photon Index (Free Index): 2.20 +/- 0.68
Photon Flux (Free Index): 3.69e-08 +/- 3.23e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.81e-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/950188/cmap_HighResolution_360633601_360892801_4FGL_J0904.0+2724_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='1.66e-05', photon_flux_error='3.54e-08', dlogl='2.75e-01', energy_flux='1.08e-05', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-08-30 21:47:28.151393', photon_index_error2='0.68', photon_index2='2.20', ts='3.42', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.81e-05', EG='0.89', time_epoch_completed='1630385248.15', return_code='0', job_id='950188', GAL2='0.96', EG2='0.91', return_code2='0', energy_flux_error='7.98e-06', photon_flux_error2='3.23e-08', ts2='3.94', photon_index='2.79' WHERE bin_id='468' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:47:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 950188: <4FGL_J0904.0+2724_daily_bin468> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin468> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 21:35:51 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:35:53 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:35:53 2021
Terminated at Mon Aug 30 21:47:29 2021
Results reported at Mon Aug 30 21:47:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin468 136.009 27.4041 360633601 360892801 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 :                                   667.14 sec.
    Max Memory :                                 1174 MB
    Average Memory :                             259.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            698 sec.

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

