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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin37
RA = 136.009, Dec = 27.4041
tmin = 248918401, tmax = 249177601
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='947960', job_status='RUN', time_executed='2021-08-30 21:34:27.608095', time_epoch_executed='1630384467.61' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947960

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947960/ft1_4FGL_J0904.0+2724_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947960/ft2_4FGL_J0904.0+2724_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947960/ft1_4FGL_J0904.0+2724_daily_bin37.fits outfile=/scratch/kocevski/947960/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin37.fits ra=136.009 dec=27.4041 rad=12.0 tmin=248918401.0 tmax=249177601.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 7.35
user 1.75
sys 5.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947960/ft1_filtered_4FGL_J0904.0+2724_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/947960/ft2_4FGL_J0904.0+2724_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/947960/ltcube_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.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/947960/ft2_4FGL_J0904.0+2724_daily_bin37.fits
.....................!
real 22.11
user 15.72
sys 6.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947960/ft1_filtered_4FGL_J0904.0+2724_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/947960/ft2_4FGL_J0904.0+2724_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/947960/ltcube_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.fits outfile=/scratch/kocevski/947960/expmap_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.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/947960/ltcube_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.fits
.....................!
real 197.76
user 185.36
sys 11.77

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/947960/ft1_filtered_4FGL_J0904.0+2724_daily_bin37.fits scfile=/scratch/kocevski/947960/ft2_4FGL_J0904.0+2724_daily_bin37.fits outfile=/scratch/kocevski/947960/cmap_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.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 5.71
user 0.37
sys 5.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947960/ft1_filtered_4FGL_J0904.0+2724_daily_bin37.fits scfile=/scratch/kocevski/947960/ft2_4FGL_J0904.0+2724_daily_bin37.fits outfile=/scratch/kocevski/947960/cmap_HighResolution_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.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 5.74
user 0.39
sys 5.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.962       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.944       1.0000         .10000E-03   10000.    
     5 'norm      '    .10657E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    86.763       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19793E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.897       1.0000         .10000E-03   10000.    
    14 'norm      '    .36318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .38286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71386       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2120       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=   6334.583     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2395 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.956        26.408       -.11108E-06   -.29432E-03
   2  Prefactor     .10000E-03    22.581        .57739E-06** at limit **
   3  Prefactor     .10000E-03    8.6335        .50162E-07** at limit **
   4  Prefactor     27.962        20.592       -.20302E-05   -.26598E-03
   5  norm          .10000E-03    .44761        .14836E-05** at limit **
   6  Prefactor     2.6301        6.5979        .45493E-05   -.60205E-03
   7  Prefactor     .10000E-03    3.1405       -.14401E-09** at limit **
   8  norm          2.1588        .88121       -.41917E-07   -.72458E-03
   9  Prefactor     26.745        16.583        .73179E-07   -.10700E-03
  10  Prefactor     .10000E-03    23.270       -.88361E-06** at limit **
  11  norm          86.751        51.354       -.31898E-06   -.37466E-03
  12  Prefactor     .10000E-03    1.9124        .10587E-06** at limit **
  13  Prefactor     56.898        40.609        .16812E-06    .36905E-04
  14  norm          .36323        1.0655        .54567E-08   -.19742E-03
  15  Prefactor     .10000E-03    10.475       -.10396E-06** at limit **
  16  Prefactor     11.567        44.346       -.24431E-06   -.11314E-03
  17  Prefactor     .37820        2.7376       -.74399E-06   -.11484E-03
  18  Prefactor     28.393        25.597        .18072E-06   -.15130E-03
  19  Prefactor     18.691        40.763       -.13729E-07   -.63050E-04
  20  Prefactor     .10000E-03    3.5992       -.92824E-07** at limit **
  21  Normalizat    .71379        .17195       -.84304E-06   -.51545E-03
  22  Prefactor     1.2121        .16436       -.28513E-06   -.64167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.9564
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 27.9624
  norm       = 0.0001
  Prefactor  = 2.63005
  Prefactor  = 0.0001
  norm       = 2.15879
  Prefactor  = 26.7448
  Prefactor  = 0.000100002
  norm       = 86.7514
  Prefactor  = 0.0001
  Prefactor  = 56.8982
  norm       = 0.36323
  Prefactor  = 0.0001
  Prefactor  = 11.5669
  Prefactor  = 0.378199
  Prefactor  = 28.3934
  Prefactor  = 18.6912
  Prefactor  = 0.0001
  Normalizat = 0.713792
  Prefactor  = 1.21208
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.583     FROM HESSE     STATUS=OK           338 CALLS     2733 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.956        26.451        .67774E-04   -1.4525    
   2  Prefactor     .10000E-03    22.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.962        21.353        .75787E-04   -1.4650    
   5  norm          .10000E-03    .60927        .95051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6301        7.1264        .12576E-02   -1.5384    
   7  Prefactor     .10000E-03    3.1673        .13772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1588        .87847        .43957E-04   -1.5414    
   9  Prefactor     26.745        16.594        .77464E-04   -1.4673    
  10  Prefactor     .10000E-03    23.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          86.751        51.503        .43131E-04   -1.3842    
  12  Prefactor     .10000E-03    5.4324        .21370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.898        40.617        .53183E-04   -1.4198    
  14  norm          .36323        .93944        .13467E-02   -1.5587    
  15  Prefactor     .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.567        44.379        .11775E-03   -1.5028    
  17  Prefactor     .37820        5.5556        .23923E-02   -1.5585    
  18  Prefactor     28.393        25.609        .75182E-04   -1.4642    
  19  Prefactor     18.691        40.776        .92634E-04   -1.4843    
  20  Prefactor     .10000E-03    3.6073        .14744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71379        .19624        .27863E-03   -1.0335    
  22  Prefactor     1.2121        .18931        .21605E-03   -.85960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51614e-08
Minuit parameter uncertainties:
  1  26.4599
  2  0.000401278
  3  2.97656e-05
  4  21.3591
  5  1.50278e-05
  6  7.12866
  7  5.79149e-06
  8  0.878471
  9  16.597
  10  0.000395636
  11  51.5298
  12  2.14916e-05
  13  40.6373
  14  0.93948
  15  6.64244e-05
  16  44.5065
  17  2.89899
  18  25.619
  19  40.8372
  20  4.80328e-06
  21  0.19643
  22  0.189417
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  3.956e-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.212e+00  1.894e-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:  7.138e-01  1.964e-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: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947960/likelihoodResults_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.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) = 6334.5831733
delta logL = -0.000200038987714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6334.58297333
delta logL = -7.55899236538e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2733       1.0000          .0000       10.000    
     3 'Normalizat'    .71380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2121       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=   6334.583     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    423.96        .36285E-02** at limit **
   2  Index         3.1841        7.5764        .50000        .32526E-05
   3  Normalizat    .71379        .17694E-01    .27863E-03    .58143E-04
   4  Prefactor     1.2121        .17541E-01    .21605E-03    .48307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101316
  Index      = 3.18413
  Normalizat = 0.713794
  Prefactor  = 1.21208
 **********
 **   18 **HESSE 
 **********

 FCN=   6334.583     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    1849.1        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1841        6.3692        .50000       -.37167    
   3  Normalizat    .71379        .41192E-01    .11145E-04   -1.0335    
   4  Prefactor     1.2121        .40840E-01    .43209E-04   -.85960    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55502e-08
Minuit parameter uncertainties:
  1  0.102004
  2  2865.95
  3  0.0411937
  4  0.0408413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947960': 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) = 6334.58297327
delta logL = -1.50557752931e-08

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.013e-04  1.020e-01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  3.184e+00  2.866e+03  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.212e+00  4.084e-02  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:  7.138e-01  4.119e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/947960/cmap_HighResolution_248918401_249177601_4FGL_J0904.0+2724_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-08-30 21:46:15.248395', job_id='947960', GAL2='1.21', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630385175.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-1.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='37' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:46:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 947960: <4FGL_J0904.0+2724_daily_bin37> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin37 136.009 27.4041 248918401 249177601 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 :                                   786.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            951 sec.

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

