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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1055
RA = 136.009, Dec = 27.4041
tmin = 512784001, tmax = 513043201
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='954822', job_status='RUN', time_executed='2021-08-30 21:53:58.098788', time_epoch_executed='1630385638.1' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954822/ft1_4FGL_J0904.0+2724_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954822/ft2_4FGL_J0904.0+2724_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954822/ft1_4FGL_J0904.0+2724_daily_bin1055.fits outfile=/scratch/kocevski/954822/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1055.fits ra=136.009 dec=27.4041 rad=12.0 tmin=512784001.0 tmax=513043201.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.75
user 4.14
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954822/ft1_filtered_4FGL_J0904.0+2724_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/954822/ft2_4FGL_J0904.0+2724_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/954822/ltcube_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.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/954822/ft2_4FGL_J0904.0+2724_daily_bin1055.fits
.....................!
real 12.62
user 11.94
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954822/ft1_filtered_4FGL_J0904.0+2724_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/954822/ft2_4FGL_J0904.0+2724_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/954822/ltcube_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.fits outfile=/scratch/kocevski/954822/expmap_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.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/954822/ltcube_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.fits
.....................!
real 192.01
user 186.00
sys 5.45

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/954822/ft1_filtered_4FGL_J0904.0+2724_daily_bin1055.fits scfile=/scratch/kocevski/954822/ft2_4FGL_J0904.0+2724_daily_bin1055.fits outfile=/scratch/kocevski/954822/cmap_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.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.90
user 0.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954822/ft1_filtered_4FGL_J0904.0+2724_daily_bin1055.fits scfile=/scratch/kocevski/954822/ft2_4FGL_J0904.0+2724_daily_bin1055.fits outfile=/scratch/kocevski/954822/cmap_HighResolution_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.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.01
user 0.37
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .76779       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.734       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0679       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.232       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9414       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97922       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81882       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=   6427.124     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2355 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6710        .52822E-05** at limit **
   2  Prefactor     .10000E-03    8.4645        .20961E-05** at limit **
   3  Prefactor     .10000E-03    20.398        .20948E-04** at limit **
   4  Prefactor     .10000E-03    28.823       -.14539E-04** at limit **
   5  norm          .10000E-03    .48616        .35873E-07** at limit **
   6  Prefactor     .10000E-03    7.9434       -.60353E-05** at limit **
   7  Prefactor     .10000E-03    4.5705       -.27922E-06** at limit **
   8  norm          .76779        .47501       -.22225E-07    .32604E-03
   9  Prefactor     7.5789        9.7671       -.14044E-06   -.55833E-04
  10  Prefactor     23.735        16.247        .99186E-07    .11219E-04
  11  norm          .10000E-03    10.381        .11837E-05** at limit **
  12  Prefactor     2.0884        2.8819       -.23592E-06   -.56231E-03
  13  Prefactor     .10000E-03    14.242       -.11686E-04** at limit **
  14  norm          2.5367        1.5205       -.18384E-07    .76059E-04
  15  Prefactor     .10000E-03    15.774       -.27266E-05** at limit **
  16  Prefactor     74.333        47.867        .29736E-05    .19425E-05
  17  Prefactor     6.9597        3.3896       -.55143E-06   -.32306E-02
  18  Prefactor     7.0677        14.723       -.38629E-06   -.36970E-04
  19  Prefactor     32.232        43.223       -.24928E-06   -.31808E-04
  20  Prefactor     5.9416        7.1702       -.16745E-06   -.16849E-03
  21  Normalizat    .97916        .15496        .26089E-06    .16047E-03
  22  Prefactor     .81885        .14250       -.24854E-07    .17977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.76779
  Prefactor  = 7.57885
  Prefactor  = 23.7353
  norm       = 0.0001
  Prefactor  = 2.08843
  Prefactor  = 0.0001
  norm       = 2.53667
  Prefactor  = 0.0001
  Prefactor  = 74.3334
  Prefactor  = 6.95975
  Prefactor  = 7.06773
  Prefactor  = 32.2317
  Prefactor  = 5.94161
  Normalizat = 0.979164
  Prefactor  = 0.818852
 **********
 **   18 **HESSE 
 **********

 FCN=   6427.124     FROM HESSE     STATUS=OK           344 CALLS     2699 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .82660        .10800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7223        .33468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .76779        .48341        .41510E-04   -1.5533    
   9  Prefactor     7.5789        9.7466        .14568E-03   -1.5157    
  10  Prefactor     23.735        16.357        .82221E-04   -1.4733    
  11  norm          .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0884        2.8692        .15395E-03   -1.5419    
  13  Prefactor     .10000E-03    14.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5367        1.5207        .73912E-04   -1.5389    
  15  Prefactor     .10000E-03    15.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     74.333        47.858        .46570E-04   -1.3981    
  17  Prefactor     6.9597        3.4669        .49849E-03   -1.5180    
  18  Prefactor     7.0677        14.723        .15089E-03   -1.5176    
  19  Prefactor     32.232        43.224        .35289E-03   -1.4572    
  20  Prefactor     5.9416        7.1744        .16474E-03   -1.5220    
  21  Normalizat    .97916        .18277        .22365E-03   -.93732    
  22  Prefactor     .81885        .16726        .23096E-03   -.99037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19464e-09
Minuit parameter uncertainties:
  1  1.05259e-06
  2  9.7335e-07
  3  3.36509e-05
  4  0.000160427
  5  1.44541e-05
  6  6.4401e-05
  7  3.24159e-06
  8  0.483414
  9  9.74864
  10  16.3596
  11  5.77623e-06
  12  2.8694
  13  3.12592e-06
  14  1.5207
  15  1.0789e-05
  16  47.8833
  17  3.46703
  18  14.7301
  19  43.2657
  20  7.17539
  21  0.182888
  22  0.167366
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.374e+01  1.636e+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.189e-01  1.674e-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.792e-01  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.91
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.22e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 9.65e-06

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

Saving results to:
/scratch/kocevski/954822/likelihoodResults_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.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) = 6424.26075394
delta logL = 2.86322153203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6424.21662354
delta logL = 2.90735193222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5463       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5734       1.0000          .0000       10.000    
     3 'Normalizat'    .90048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87648       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=   6424.217     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5398        16.906        .63975E-02   -.12744E-03
   2  Index         5.5758        3.6187        .12419        .63594E-04
   3  Normalizat    .90032        .60249E-01    .44908E-01   -.76125E-05
   4  Prefactor     .87661        .57842E-01    .44705E-01   -.78968E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53977
  Index      = 5.57579
  Normalizat = 0.90032
  Prefactor  = 0.876606
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.217     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5398        24.478        .52752E-04   -1.5389    
   2  Index         5.5758        7.2684        .52336E-02    .11541    
   3  Normalizat    .90032        .16977        .23136E-03   -.96449    
   4  Prefactor     .87661        .15839        .22401E-03   -.96963    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.98946e-10
Minuit parameter uncertainties:
  1  15.7777
  2  5.11474
  3  0.169868
  4  0.158476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954822': 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) = 6424.21662217
delta logL = 2.90735330429

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.540e+00  1.578e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  5.576e+00  5.115e+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.766e-01  1.585e-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.003e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.20
Ra Dec: 136.009 27.404
Photon Index (Free Index): 5.58 +/- 5.11
Photon Flux (Free Index): 1.22e-07 +/- 6.15e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.12e-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/954822/cmap_HighResolution_512784001_513043201_4FGL_J0904.0+2724_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='6.22e-08', energy_flux2='1.55e-05', photon_flux_error='4.28e-08', dlogl='2.91e+00', energy_flux='1.40e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-08-30 22:05:44.142366', photon_index_error2='5.11', photon_index2='5.58', ts='2.91', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.12e-05', EG='0.98', time_epoch_completed='1630386344.14', return_code='0', job_id='954822', GAL2='0.88', EG2='0.90', return_code2='102', energy_flux_error='9.65e-06', photon_flux_error2='6.15e-08', ts2='9.20', photon_index='2.79' WHERE bin_id='1055' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 22:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 954822: <4FGL_J0904.0+2724_daily_bin1055> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1055 136.009 27.4041 512784001 513043201 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            915 sec.

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

