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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1324
RA = 136.009, Dec = 27.4041
tmin = 582508801, tmax = 582768001
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='956475', job_status='RUN', time_executed='2021-08-30 21:58:49.374685', time_epoch_executed='1630385929.37' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956475

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956475/ft1_4FGL_J0904.0+2724_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956475/ft1_4FGL_J0904.0+2724_daily_bin1324.fits outfile=/scratch/kocevski/956475/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1324.fits ra=136.009 dec=27.4041 rad=12.0 tmin=582508801.0 tmax=582768001.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.13
user 3.44
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.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/956475/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/956475/ft1_filtered_4FGL_J0904.0+2724_daily_bin1324.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.90
user 0.33
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956475/ft1_filtered_4FGL_J0904.0+2724_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/956475/ltcube_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.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/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.fits
.....................!
real 12.35
user 11.49
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956475/ft1_filtered_4FGL_J0904.0+2724_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/956475/ltcube_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.fits outfile=/scratch/kocevski/956475/expmap_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.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/956475/ltcube_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.fits
.....................!
real 191.03
user 184.85
sys 5.56

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/956475/ft1_filtered_4FGL_J0904.0+2724_daily_bin1324.fits scfile=/scratch/kocevski/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.fits outfile=/scratch/kocevski/956475/cmap_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.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.03
user 0.37
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956475/ft1_filtered_4FGL_J0904.0+2724_daily_bin1324.fits scfile=/scratch/kocevski/956475/ft2_4FGL_J0904.0+2724_daily_bin1324.fits outfile=/scratch/kocevski/956475/cmap_HighResolution_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.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.96
user 0.37
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.714       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.240       1.0000         .10000E-03   10000.    
     5 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8298       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4576       1.0000         .10000E-03   10000.    
     8 'norm      '    .42699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.813       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1708       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0923       1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.800       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86015       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0623       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=   5815.251     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2384 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.997        .29584E-05** at limit **
   2  Prefactor     .10000E-03    9.9959        .26693E-05** at limit **
   3  Prefactor     62.712        39.233       -.79089E-06   -.77474E-04
   4  Prefactor     21.242        18.469        .56992E-06    .39000E-04
   5  norm          .10000E-03    .89217        .69962E-07** at limit **
   6  Prefactor     7.8289        12.034       -.83622E-06   -.10736E-03
   7  Prefactor     3.4578        4.8024        .24269E-05   -.21145E-02
   8  norm          .42675        .58681       -.26944E-07   -.36114E-03
   9  Prefactor     .10000E-03    5.2154        .45699E-07** at limit **
  10  Prefactor     25.814        17.195        .20292E-06    .21901E-04
  11  norm          .10000E-03    9.6849       -.27968E-05** at limit **
  12  Prefactor     4.1708        3.4498        .21552E-07    .23573E-06
  13  Prefactor     .10001E-03    17.092       -.98364E-05** at limit **
  14  norm          1.0925        1.1740       -.79536E-08   -.78854E-05
  15  Prefactor     51.910        32.293       -.36052E-06   -.89635E-05
  16  Prefactor     .10001E-03    21.768        .96743E-05** at limit **
  17  Prefactor     .10000E-03    2.1137        .17636E-07** at limit **
  18  Prefactor     27.799        37.204       -.12324E-06   -.11240E-04
  19  Prefactor     .10000E-03    46.569       -.37529E-05** at limit **
  20  Prefactor     .10000E-03    4.5466       -.61308E-08** at limit **
  21  Normalizat    .86020        .18977       -.31895E-07   -.35746E-04
  22  Prefactor     1.0623        .16639       -.15520E-06   -.35686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 62.7118
  Prefactor  = 21.2425
  norm       = 0.0001
  Prefactor  = 7.82891
  Prefactor  = 3.45775
  norm       = 0.426754
  Prefactor  = 0.0001
  Prefactor  = 25.8144
  norm       = 0.000100001
  Prefactor  = 4.17077
  Prefactor  = 0.000100009
  norm       = 1.09249
  Prefactor  = 51.9097
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 27.7989
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.860201
  Prefactor  = 1.06228
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.251     FROM HESSE     STATUS=OK           346 CALLS     2730 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.712        39.305        .50671E-04   -1.4122    
   4  Prefactor     21.242        18.035        .86908E-04   -1.4786    
   5  norm          .10000E-03    1.5376        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8289        11.637        .14330E-03   -1.5148    
   7  Prefactor     3.4578        7.1175        .10875E-02   -1.5336    
   8  norm          .42675        .54800        .65301E-03   -1.5577    
   9  Prefactor     .10000E-03    5.2245        .17005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.814        17.225        .78847E-04   -1.4691    
  11  norm          .10000E-03    9.7354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1708        3.4516        .12422E-03   -1.5299    
  13  Prefactor     .10001E-03    17.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0925        1.1665        .83252E-04   -1.5499    
  15  Prefactor     51.910        32.406        .55665E-04   -1.4266    
  16  Prefactor     .10001E-03    22.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1379        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.799        37.510        .75983E-04   -1.4653    
  19  Prefactor     .10000E-03    46.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5579        .15878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .86020        .21931        .26615E-03   -.97873    
  22  Prefactor     1.0623        .19225        .22525E-03   -.90681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58932e-09
Minuit parameter uncertainties:
  1  0.000209412
  2  0.000165849
  3  39.3215
  4  18.0401
  5  1.91833e-06
  6  11.6401
  7  7.11923
  8  0.548002
  9  2.07457e-06
  10  17.2287
  11  0.00017146
  12  3.45177
  13  0.000805979
  14  1.1665
  15  32.4169
  16  0.000889825
  17  1.75154e-07
  18  37.5416
  19  0.000502615
  20  6.34274e-08
  21  0.219538
  22  0.192376
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.581e+01  1.723e+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.062e+00  1.924e-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.602e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.02
Ra Dec: 136.009 27.404
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.77e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.02e-05

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) = 5815.0222928
delta logL = 0.229067055628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.012897
delta logL = 0.238462855251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3972       1.0000          .0000       10.000    
     3 'Normalizat'    .87621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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=   5815.013     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.958        18.776        .75764E-04    .15756E-04
   2  Index         2.3968        .53931        .81004E-02    .13757E-04
   3  Normalizat    .87629        .20348        .26392E-03    .20595E-03
   4  Prefactor     1.0512        .18857        .22623E-03    .23131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9576
  Index      = 2.39676
  Normalizat = 0.876294
  Prefactor  = 1.0512
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.013     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.958        18.819        .30305E-05   -1.4650    
   2  Index         2.3968        .54059        .32402E-03   -.54761    
   3  Normalizat    .87629        .20368        .10557E-04   -.97298    
   4  Prefactor     1.0512        .18872        .45246E-04   -.91042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78033e-11
Minuit parameter uncertainties:
  1  18.8233
  2  0.542047
  3  0.20386
  4  0.18884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956475': 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) = 5815.01289651
delta logL = 0.238463346033

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.796e+01  1.882e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.397e+00  5.420e-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:  1.051e+00  1.888e-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.763e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 136.009 27.404
Photon Index (Free Index): 2.40 +/- 0.54
Photon Flux (Free Index): 5.45e-08 +/- 4.33e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.31e-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/956475/cmap_HighResolution_582508801_582768001_4FGL_J0904.0+2724_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.77e-08', energy_flux2='1.79e-05', photon_flux_error='4.51e-08', dlogl='2.38e-01', energy_flux='1.52e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-08-30 22:09:18.019538', photon_index_error2='0.54', photon_index2='2.40', ts='4.02', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.86', time_epoch_completed='1630386558.02', return_code='0', job_id='956475', GAL2='1.05', EG2='0.88', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.33e-08', ts2='4.47', photon_index='2.79' WHERE bin_id='1324' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 22:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 956475: <4FGL_J0904.0+2724_daily_bin1324> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin1324> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 21:55:26 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:55:28 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:55:28 2021
Terminated at Mon Aug 30 22:09:19 2021
Results reported at Mon Aug 30 22:09:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1324 136.009 27.4041 582508801 582768001 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 :                                   545.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

