/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 163 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0904.0+2724_daily_bin49
RA = 136.009, Dec = 27.4041
tmin = 252028801, tmax = 252288001
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='947979', job_status='RUN', time_executed='2021-08-30 21:33:30.770429', time_epoch_executed='1630384410.77' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947979/ft1_4FGL_J0904.0+2724_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947979/ft2_4FGL_J0904.0+2724_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947979/ft1_4FGL_J0904.0+2724_daily_bin49.fits outfile=/scratch/kocevski/947979/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin49.fits ra=136.009 dec=27.4041 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.41
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947979/ft1_filtered_4FGL_J0904.0+2724_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/947979/ft2_4FGL_J0904.0+2724_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/947979/ltcube_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.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/947979/ft2_4FGL_J0904.0+2724_daily_bin49.fits
.....................!
real 12.77
user 12.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947979/ft1_filtered_4FGL_J0904.0+2724_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/947979/ft2_4FGL_J0904.0+2724_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/947979/ltcube_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.fits outfile=/scratch/kocevski/947979/expmap_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.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/947979/ltcube_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.fits
.....................!
real 192.91
user 187.11
sys 4.71

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/947979/ft1_filtered_4FGL_J0904.0+2724_daily_bin49.fits scfile=/scratch/kocevski/947979/ft2_4FGL_J0904.0+2724_daily_bin49.fits outfile=/scratch/kocevski/947979/cmap_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947979/ft1_filtered_4FGL_J0904.0+2724_daily_bin49.fits scfile=/scratch/kocevski/947979/ft2_4FGL_J0904.0+2724_daily_bin49.fits outfile=/scratch/kocevski/947979/cmap_HighResolution_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.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.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.889       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5254       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .41207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    141.16       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.996       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46790E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5658       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81791       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2426       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=   9088.229     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2103 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3763       -.23152E-05** at limit **
   2  Prefactor     .10000E-03    6.5454        .17464E-05** at limit **
   3  Prefactor     6.0145        25.549       -.16350E-04    .68146E-04
   4  Prefactor     10.934        15.270       -.28170E-05    .75294E-04
   5  norm          2.1661        1.2686        .21930E-06   -.16671E-03
   6  Prefactor     3.5223        7.4578       -.43164E-05   -.18734E-03
   7  Prefactor     .10000E-03    1.5261        .10481E-07** at limit **
   8  norm          .41254        .44403        .92141E-07   -.11120E-03
   9  Prefactor     2.5399        5.1268       -.72717E-05   -.73223E-05
  10  Prefactor     .10000E-03    22.662       -.39456E-05** at limit **
  11  norm          141.12        41.164       -.72655E-05    .48715E-03
  12  Prefactor     .10000E-03    1.6222       -.14679E-06** at limit **
  13  Prefactor     21.008        21.458       -.60642E-05    .15711E-03
  14  norm          1.5509        1.2775       -.11304E-06   -.17724E-03
  15  Prefactor     .10000E-03    23.749        .67208E-05** at limit **
  16  Prefactor     .10001E-03    238.86       -.10807E-04** at limit **
  17  Prefactor     7.3482        3.6902       -.17036E-06   -.98769E-05
  18  Prefactor     3.5764        20.566       -.81854E-05   -.11823E-04
  19  Prefactor     .10000E-03    28.837       -.41026E-05** at limit **
  20  Prefactor     .10000E-03    4.2694       -.75347E-07** at limit **
  21  Normalizat    .81786        .14671        .23555E-05    .25954E-03
  22  Prefactor     1.2425        .14033        .18362E-05    .21146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01454
  Prefactor  = 10.9342
  norm       = 2.16615
  Prefactor  = 3.52235
  Prefactor  = 0.0001
  norm       = 0.412539
  Prefactor  = 2.53993
  Prefactor  = 0.0001
  norm       = 141.122
  Prefactor  = 0.000100002
  Prefactor  = 21.0077
  norm       = 1.55094
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  Prefactor  = 7.34824
  Prefactor  = 3.57636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.817864
  Prefactor  = 1.24253
 **********
 **   18 **HESSE 
 **********

 FCN=   9088.229     FROM HESSE     STATUS=OK           344 CALLS     2447 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0145        25.637        .16396E-03   -1.5217    
   4  Prefactor     10.934        15.238        .12141E-03   -1.5047    
   5  norm          2.1661        1.2520        .71213E-04   -1.5414    
   6  Prefactor     3.5223        7.4470        .21530E-03   -1.5333    
   7  Prefactor     .10000E-03    1.5311        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .41254        .41198        .62943E-03   -1.5580    
   9  Prefactor     2.5399        5.1714        .25619E-03   -1.5389    
  10  Prefactor     .10000E-03    23.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          141.12        40.854        .16954E-03   -1.3326    
  12  Prefactor     .10000E-03    5.9412        .23509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.008        21.438        .87413E-04   -1.4791    
  14  norm          1.5509        1.2664        .94263E-04   -1.5459    
  15  Prefactor     .10000E-03    23.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    246.42        .38585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3482        3.6905        .12138E-03   -1.5166    
  18  Prefactor     3.5764        20.647        .21403E-03   -1.5330    
  19  Prefactor     .10000E-03    28.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81786        .17019        .27616E-03   -.99409    
  22  Prefactor     1.2425        .16407        .22327E-03   -.85032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42825e-09
Minuit parameter uncertainties:
  1  3.95253e-05
  2  2.61998e-05
  3  24.8529
  4  15.2435
  5  1.252
  6  7.449
  7  5.23059e-07
  8  0.411983
  9  5.17232
  10  0.000103801
  11  40.8625
  12  0.000231071
  13  21.4459
  14  1.26643
  15  0.000256151
  16  0.00275721
  17  3.69066
  18  17.1948
  19  0.000111507
  20  7.07694e-06
  21  0.170299
  22  0.164139
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  1.038e-04  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.243e+00  1.641e-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.179e-01  1.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947979/likelihoodResults_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.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): 102
logL (Free Index) = 9088.22956824
delta logL = -0.000205345881113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9088.22936305
delta logL = -1.63807271747e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12324E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8501       1.0000          .0000       10.000    
     3 'Normalizat'    .81792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2425       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=   9088.229     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    7352.0        .36285E-02** at limit **
   2  Index         2.9279        5.0454        .50000       -.29876E-04
   3  Normalizat    .81786        .60603E-01    .27616E-03   -.23136E-04
   4  Prefactor     1.2425        .58557E-01    .22327E-03   -.36764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Index      = 2.92786
  Normalizat = 0.817863
  Prefactor  = 1.24253
 **********
 **   18 **HESSE 
 **********

 FCN=   9088.229     FROM HESSE     STATUS=OK            29 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    45.842        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9279        6.4633        .50000       -.42731    
   3  Normalizat    .81786        .16515        .11047E-04   -.99409    
   4  Prefactor     1.2425        .16180        .89307E-05   -.85032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27259e-09
Minuit parameter uncertainties:
  1  0.00256678
  2  5.09838
  3  0.165252
  4  0.161868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947979': 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) = 9088.22936209
delta logL = 8.0361860455e-07

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  2.567e-03  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.928e+00  5.098e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.243e+00  1.619e-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.179e-01  1.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/947979/cmap_HighResolution_252028801_252288001_4FGL_J0904.0+2724_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-08-30 21:45:36.032489', job_id='947979', GAL2='1.24', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630385136.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='8.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='49' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 947979: <4FGL_J0904.0+2724_daily_bin49> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin49 136.009 27.4041 252028801 252288001 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

