/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 84 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 = 7646
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1106
RA = 136.009, Dec = 27.4041
tmin = 526003201, tmax = 526262401
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='954906', job_status='RUN', time_executed='2021-08-30 21:52:43.421813', time_epoch_executed='1630385563.42' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954906/ft1_4FGL_J0904.0+2724_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954906/ft1_4FGL_J0904.0+2724_daily_bin1106.fits outfile=/scratch/kocevski/954906/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1106.fits ra=136.009 dec=27.4041 rad=12.0 tmin=526003201.0 tmax=526262401.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.89
user 3.48
sys 1.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.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/954906/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1106.fits evtable="EVENTS" outfile="/scratch/kocevski/954906/ft1_filtered_4FGL_J0904.0+2724_daily_bin1106.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 1.73
user 0.32
sys 1.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954906/ft1_filtered_4FGL_J0904.0+2724_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/954906/ltcube_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.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/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.fits
.....................!
real 13.50
user 11.83
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954906/ft1_filtered_4FGL_J0904.0+2724_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/954906/ltcube_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.fits outfile=/scratch/kocevski/954906/expmap_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.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/954906/ltcube_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.fits
.....................!
real 193.77
user 187.04
sys 6.12

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/954906/ft1_filtered_4FGL_J0904.0+2724_daily_bin1106.fits scfile=/scratch/kocevski/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.fits outfile=/scratch/kocevski/954906/cmap_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.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 1.67
user 0.36
sys 1.28

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954906/ft1_filtered_4FGL_J0904.0+2724_daily_bin1106.fits scfile=/scratch/kocevski/954906/ft2_4FGL_J0904.0+2724_daily_bin1106.fits outfile=/scratch/kocevski/954906/cmap_HighResolution_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.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 1.67
user 0.37
sys 1.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.605       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.460       1.0000         .10000E-03   10000.    
     5 'norm      '    .10420E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.729       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .51932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.742       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.988       1.0000         .10000E-03   10000.    
    11 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1891       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4194       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8167       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1434       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87762       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=   5894.981     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     2757 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.279        .18142E-02** at limit **
   2  Prefactor     13.615        32.848        .10859E-03    .41876E-06
   3  Prefactor     .10000E-03    15.878        .18142E-02** at limit **
   4  Prefactor     34.493        22.692        .68265E-04   -.68280E-05
   5  norm          .10000E-03    .46595        .10098E-03** at limit **
   6  Prefactor     10.736        10.948        .12232E-03    .14889E-03
   7  Prefactor     .10000E-03    5.6170        .17629E-02** at limit **
   8  norm          .51938        .46990        .45291E-03   -.15801E-03
   9  Prefactor     10.740        11.304        .12224E-03   -.36271E-05
  10  Prefactor     23.980        21.252        .81787E-04    .42952E-04
  11  norm          .10000E-03    39.808        .18142E-02** at limit **
  12  Prefactor     2.1893        2.7723        .13999E-03   -.42473E-04
  13  Prefactor     .10000E-03    11.702        .18142E-02** at limit **
  14  norm          1.4199        1.4209        .87755E-04   -.37829E-04
  15  Prefactor     6.4825        13.640        .78836E-03   -.69493E-04
  16  Prefactor     39.394        50.681        .63882E-04    .21889E-04
  17  Prefactor     3.3456        3.8410        .15078E-03   -.25938E-04
  18  Prefactor     .10667        15.254        .94572E-01    .14921E-03
  19  Prefactor     2.8605        269.07        .24235E-03    .88191E-05
  20  Prefactor     .10000E-03    9.7227        .18142E-02** at limit **
  21  Normalizat    1.1432        .20797        .22949E-03   -.22986E-04
  22  Prefactor     .87787        .18815        .24794E-03    .21060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.6155
  Prefactor  = 0.0001
  Prefactor  = 34.4927
  norm       = 0.0001
  Prefactor  = 10.7364
  Prefactor  = 0.0001
  norm       = 0.519384
  Prefactor  = 10.7398
  Prefactor  = 23.9804
  norm       = 0.0001
  Prefactor  = 2.18935
  Prefactor  = 0.0001
  norm       = 1.41989
  Prefactor  = 6.48248
  Prefactor  = 39.3942
  Prefactor  = 3.34558
  Prefactor  = 0.106674
  Prefactor  = 2.86046
  Prefactor  = 0.0001
  Normalizat = 1.14323
  Prefactor  = 0.877869
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.981     FROM HESSE     STATUS=OK           332 CALLS     3089 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.615        32.846        .43437E-05   -1.4970    
   3  Prefactor     .10000E-03    15.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.493        22.694        .27306E-05   -1.4533    
   5  norm          .10000E-03    .46595        .20196E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.736        10.948        .48928E-05   -1.5053    
   7  Prefactor     .10000E-03    5.6203        .35258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .51938        .46981        .18116E-04   -1.5564    
   9  Prefactor     10.740        11.303        .48897E-05   -1.5052    
  10  Prefactor     23.980        21.251        .32715E-05   -1.4728    
  11  norm          .10000E-03    39.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1893        2.7722        .55997E-05   -1.5412    
  13  Prefactor     .10000E-03    11.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4199        1.4208        .35102E-05   -1.5470    
  15  Prefactor     6.4825        13.639        .31534E-04   -1.5199    
  16  Prefactor     39.394        50.719        .25553E-05   -1.4452    
  17  Prefactor     3.3456        3.8407        .60311E-05   -1.5342    
  18  Prefactor     .10667        15.149        .95129E-01   -1.5643    
  19  Prefactor     2.8605        269.22        .96940E-05   -1.5370    
  20  Prefactor     .10000E-03    9.7293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1432        .20816        .91794E-05   -.88376    
  22  Prefactor     .87787        .18834        .99176E-05   -.96919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71688e-10
Minuit parameter uncertainties:
  1  3.70325e-06
  2  32.8894
  3  1.75559e-05
  4  22.6994
  5  1.0141e-06
  6  10.9498
  7  3.62923e-05
  8  0.46981
  9  11.3054
  10  21.258
  11  8.56074e-05
  12  2.77237
  13  6.41165e-06
  14  1.42087
  15  13.6451
  16  50.7746
  17  3.84094
  18  2.54194
  19  55.7605
  20  7.68971e-05
  21  0.208306
  22  0.188476
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.398e+01  2.126e+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:  8.779e-01  1.885e-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:  1.143e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 5.57e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/954906/likelihoodResults_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.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) = 5894.96162944
delta logL = 0.0190102280258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5894.9533028
delta logL = 0.0273368662829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.133       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0780       1.0000          .0000       10.000    
     3 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88878       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=   5894.953     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      239 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.126        27.727        .87128E-04    .29385E-03
   2  Index         3.0781        1.4750        .10955E-01    .64473E-04
   3  Normalizat    1.1290        .20965        .23072E-03   -.14117E-02
   4  Prefactor     .88878        .19495        .24661E-03   -.15930E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1264
  Index      = 3.0781
  Normalizat = 1.12899
  Prefactor  = 0.888779
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.953     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.126        24.947        .34851E-05   -1.4788    
   2  Index         3.0781        1.3270        .43821E-03   -.39454    
   3  Normalizat    1.1290        .20877        .46144E-04   -.88826    
   4  Prefactor     .88878        .19382        .49322E-04   -.96534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39095e-09
Minuit parameter uncertainties:
  1  24.9597
  2  1.34598
  3  0.20892
  4  0.193969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954906': 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) = 5894.95330275
delta logL = 0.0273369193865

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.113e+01  2.496e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  3.078e+00  1.346e+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:  8.888e-01  1.940e-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:  1.129e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 136.009 27.404
Photon Index (Free Index): 3.08 +/- 1.35
Photon Flux (Free Index): 7.09e-08 +/- 6.67e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.20e-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/954906/cmap_HighResolution_526003201_526262401_4FGL_J0904.0+2724_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='1.36e-05', photon_flux_error='5.57e-08', dlogl='2.73e-02', energy_flux='1.41e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-08-30 22:03:41.690334', photon_index_error2='1.35', photon_index2='3.08', ts='1.60', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.20e-05', EG='1.14', time_epoch_completed='1630386221.69', return_code='0', job_id='954906', GAL2='0.89', EG2='1.13', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.67e-08', ts2='1.68', photon_index='2.79' WHERE bin_id='1106' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 22:03:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 954906: <4FGL_J0904.0+2724_daily_bin1106> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin1106> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 21:50:39 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:50:40 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:50:40 2021
Terminated at Mon Aug 30 22:03:42 2021
Results reported at Mon Aug 30 22:03:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1106 136.009 27.4041 526003201 526262401 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

